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

Improve connecting to WIFI, add UdpLogging, OTA Restart Command and Updates #93

Merged
merged 8 commits into from
Jan 26, 2025

Conversation

doingnz
Copy link
Contributor

@doingnz doingnz commented Jan 17, 2025

Fixes issues in develop branch that prevent Meadow connect to wifi and the the cloud.
Enable OTA updates in yaml and provide event handlers to download and apply the update.
Register OTA handler for a Restart command with a single parameter Delay that specifies the seconds to wait before restarting Meadow.
Refactor Sensor and Power Controllers to have StartUpdating(UpdateInterval) and StopUpdating() methods. Call StopUpdating() when starting an OTA Update.
Add UdpLogging to remotely monitor the Clima weather station. (In a future version this could be enabled via an OTA Command to avoid unnecessary CPU and network overhead)
Add sanity check to Anemometer to avoid reporting wind speed as Infinity which breaks the Sensor data collection.
Change GetPowerData() to use return Task.FromResult(new PowerData{...}) which appears with testing to improve connecting to the WIFI.

code flow needs the connected network event which may not be raised if the wifi automatically connects.
Call StopUpdating() when doing OTA download to avoid CPU overhead and other issues
This change appears to make it easier to connect to the wifi network in Clima. (previous code appears to block esp events during startup)
@ctacke ctacke merged commit 43cc832 into WildernessLabs:develop Jan 26, 2025
1 check passed
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.

2 participants