Skip to content
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

Handle OTA actively when MQTT is not connected #1307

Merged
merged 5 commits into from Nov 13, 2022

Conversation

ssalonen
Copy link
Contributor

@ssalonen ssalonen commented Oct 30, 2022

Resolves #1292

Description:

Checklist:

  • The pull request is done against the latest development branch
  • Only one feature/fix was added per PR and the code change compiles without warnings
  • I accept the DCO.

Resolves 1technophile#1292

Signed-off-by: Sami Salonen <ssalonen@gmail.com>
Signed-off-by: Sami Salonen <ssalonen@gmail.com>
@ssalonen
Copy link
Contributor Author

Tested with ESP32, and it resolves the issue I was having with #1292.

Did not test with ESP8266, I would presume some sort of yield() might be needed there.

Signed-off-by: Sami Salonen <ssalonen@gmail.com>
Signed-off-by: Sami Salonen <ssalonen@gmail.com>
@1technophile
Copy link
Owner

Good idea, so it enables to have OTA if we are only connected to Wifi isn't it ?

@ssalonen
Copy link
Contributor Author

ssalonen commented Oct 30, 2022

Yes, let's say the system is connected via WiFi but not to mqtt (e.g. Wrong mqtt configured). With this patch, OTA updates still work

Signed-off-by: Sami Salonen <ssalonen@gmail.com>
@1technophile
Copy link
Owner

Thanks

@1technophile 1technophile merged commit 3d589ff into 1technophile:development Nov 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

OMG is not responding to OTA invite when MQTT configuration is invalid
2 participants