-
Notifications
You must be signed in to change notification settings - Fork 117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OTA example issues due to callback defined inside loop? #191
Comments
Aformentioned issue is fixed in the linked Pull Request and has been fixed already because of #159. For now your fix with putting it into global scope will fix the issue. Once the PR has been merged it can be done like in the examples again. Sorry for any inconviences caused. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hiya folks!
The OTA examples seem to work fine for me, but when adapting them to larger programs, I kept having a series of issues.
I found that the
const OTA_Update_Callback callback
was being declared inloop()
(thingsboard-client-sdk/examples/0011-esp8266_esp32_subscribe_OTA_MQTT/0011-esp8266_esp32_subscribe_OTA_MQTT.ino
Line 338 in 22265f5
It might even be a cause of some of the issues like #183.
The text was updated successfully, but these errors were encountered: