Phileep / rflink-to-mqtt

Bridge from RFLink to an mqtt broker using ESP8266 programmed with arduino IDE
38 stars 12 forks source link

Need to handle invalid wind directions #6

Closed matt2005 closed 7 years ago

matt2005 commented 7 years ago

When a invalid wind direction is received it currently converts it to north. Shouldn't it disregard it?

Phileep commented 7 years ago

hey Matt

do you have an example of invalid wind data from a raw dump?

I assume it is when you get escape characters interpreted from a transmission?

Would guess we use your non-ascii test, but testing character by character is a bit onerous as it is taking up cycles in the program that could be used for collecting the next signal.

Phil

matt2005 commented 7 years ago

I changed the sensors battery and now it's ok