Skip to content
This repository has been archived by the owner on Apr 27, 2023. It is now read-only.

Working example for HM-WDS10-TH-O? #10

Open
BJvDL opened this issue Dec 29, 2015 · 0 comments
Open

Working example for HM-WDS10-TH-O? #10

BJvDL opened this issue Dec 29, 2015 · 0 comments

Comments

@BJvDL
Copy link

BJvDL commented Dec 29, 2015

I'm trying to compile the examples with Arduino IDE 1.6.5 with hardware Arduino Pro Mini, Atmega328.
Some examples compile without errors and with some changes in hardware.h
(#define CC_GDO0_PIN PORTB2 -> PORTD4) I even got it pairing.
HM_LC_Dim1PWM_CV and HM_LC_Bl1_SM seem to work.
AskinNew_test is compiling with errors:

Build options changed, rebuilding all
NewAskSin\EEprom.cpp.o: In function EE::init()': C:\Users\Bas\Documents\Arduino\libraries\NewAskSin/EEprom.cpp:152: undefined reference tofirstTimeStart()'
C:\Users\Bas\Documents\Arduino\libraries\NewAskSin/EEprom.cpp:158: undefined reference to HMKEY' C:\Users\Bas\Documents\Arduino\libraries\NewAskSin/EEprom.cpp:158: undefined reference toHMKEY'
C:\Users\Bas\Documents\Arduino\libraries\NewAskSin/EEprom.cpp:158: undefined reference to HMKEY' C:\Users\Bas\Documents\Arduino\libraries\NewAskSin/EEprom.cpp:158: undefined reference toHMKEY'
C:\Users\Bas\Documents\Arduino\libraries\NewAskSin/EEprom.cpp:163: undefined reference to `everyTimeStart()'
collect2.exe: error: ld returned 1 exit status
Error compiling.

I got it compiling by adding
uint8_t HMKEY[16] = {0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10,}; and
void everyTimeStart(void) {} and void firstTimeStart(void) {} in register.h
Now it is pairing as HM-WDS10-TH-O, but how to get Temperature and Humidity out of the sensor?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant