-
Notifications
You must be signed in to change notification settings - Fork 804
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
Trigger firmware update via MQTT. (ESP Only) #953
Trigger firmware update via MQTT. (ESP Only) #953
Conversation
2fcfe7a
to
21df632
Compare
Would be nice to update the docs also: |
I think defining 2 test environments (ESP32 & ESP8266) could help for the CI of this, here is an example: OpenMQTTGateway/platformio.ini Line 825 in 4706d75
Or we may update these ones so that they cover also OTA |
Yes that can be done as well, once the process is finalized. I think adding a port parameter to the JSON message should be added and therefore would need to be documented as well. |
Good plan, will do. |
d7426c1
to
c00aae9
Compare
If enabled in user_config.h this will trigger the OMG to update it's firmware from the link provided in the MQTT message. Example message: {\"version\":\"test\",\"password\":\"OMGPASSWORD\",\"url\":\"https://github.com/1technophile/OpenMQTTGateway/releases/download/v0.9.6/esp32dev-ble-cont-firmware.bin\"} If the firmware version in the message is not the same as the current OMG version the device will self update using the link in the url of the message.
If enabled in user_config.h this will trigger the OMG to update it's firmware from the link
provided in the MQTT message.
Example message:
If the firmware version in the message is not the same as the current OMG version the device will self update using the link in the url of the message.