srcfl / srcful-gateway

Sourceful Energy Gateway: Connect your solar inverter or Utility meters to earn tokens.
https://sourceful.energy/
MIT License
5 stars 2 forks source link

Improve WiFi-scanning... #305

Open davmoz opened 6 days ago

davmoz commented 6 days ago

Implement exponential backoff for the scanning frequency. Initially scan rapidly, like once every 5 seconds, then gradually reduce frequency until reaching a longer interval (like 2 minutes or something). Allow users to manually trigger a scan which resets back to rapid scanning.

h0bb3 commented 6 days ago

start the scan immediately in the app not after 45 seconds. Run with exponential backoff until you get a result.