Humidity Sketch causes Vera App to crash
-
You did remove the number-of-decimal argument?
msgHum.set(humidity, 1) -> msgHum.set(humidity)
-
@jeylites said:
I have the same issue. Will work on the fix when I get back.
The fix is pretty simple, as @hek said the DHT sensors arent extremely accurate anyway (DHT11 is +/- 5% accurate), just change msgHum.set(humidity,1) to msgHum.set(humidity) in the sensor sketch to drop the decimal all together. Worked perfect for me and has been running flawless since yesterday now
-
@jeylites said:
I have the same issue. Will work on the fix when I get back.
The fix is pretty simple, as @hek said the DHT sensors arent extremely accurate anyway (DHT11 is +/- 5% accurate), just change msgHum.set(humidity,1) to msgHum.set(humidity) in the sensor sketch to drop the decimal all together. Worked perfect for me and has been running flawless since yesterday now
The fix seem pretty easy to follow. But when I exclude the "1" and recompile, I get a bunch of error messages.
Build options changed, rebuilding all HumiditySensor.ino: In function 'void loop()': HumiditySensor.ino:56:34: error: call of overloaded 'set(float&)' is ambiguous HumiditySensor.ino:56:34: note: candidates are: In file included from /Users/Jey/Documents/Arduino/libraries/MySensors/MySensor.h:17:0, from HumiditySensor.ino:2: /Users/Jey/Documents/Arduino/libraries/MySensors/MyMessage.h:161:13: note: MyMessage& MyMessage::set(uint8_t) MyMessage& set(uint8_t value); ^ /Users/Jey/Documents/Arduino/libraries/MySensors/MyMessage.h:163:13: note: MyMessage& MyMessage::set(long unsigned int) MyMessage& set(unsigned long value); ^ /Users/Jey/Documents/Arduino/libraries/MySensors/MyMessage.h:164:13: note: MyMessage& MyMessage::set(long int) MyMessage& set(long value); ^ /Users/Jey/Documents/Arduino/libraries/MySensors/MyMessage.h:165:13: note: MyMessage& MyMessage::set(unsigned int) MyMessage& set(unsigned int value); ^ /Users/Jey/Documents/Arduino/libraries/MySensors/MyMessage.h:166:13: note: MyMessage& MyMessage::set(int) MyMessage& set(int value); ^ Error compiling.``` -
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login