dl9rdz / rdz_ttgo_sonde

280 stars 99 forks source link

API parameter/call for reset #476

Open jimjackii opened 1 week ago

jimjackii commented 1 week ago

Hello,

Is there an API parameter/call to reset the device externally?

I would like to perform an automatic reset once a day because there are still problems with the device and it remains in AP mode after a few days (presumably restarted?).

The firmware is devel20240521, the WiFi mode is 1.

Regards, Steffen

dl9rdz commented 1 week ago

You can do something like wget --post-data="reboot=1" http://[deviceip]/control.html

jimjackii commented 1 week ago

Thanks.

With

wget -q --tries=1 --timeout=1 --post-data="reboot=1" http://[IP-Addr]/control.html

it works with an attempt that is cancelled after 1s. The receiver is reset.

Regards, Steffen