Author Options:

how to pass slider values to void loop()? Answered

when using MyFeed->onMessage(messageHandle) to receive data, is it possible to make messageHandle to return a value so that it can be used in void loop()?

I'm trying to use values from a slider in Adafruit IO dashboard to calibrate humidity sensor values, and to do that the value/integer needs to be passed to void loop() to be added or subtracted from sensor readings.

Thanks for your help!

1 Replies

bekathwiaBest Answer (author)2017-08-11

Sure, here's more about Arduino functions: https://www.arduino.cc/en/Reference/FunctionDeclar...

Additionally, here are a bunch more tutorials using the AIO library, perhaps some inspiration can be gleaned: https://learn.adafruit.com/category/adafruit-io

Select as Best AnswerUndo Best Answer