cesanta / mDash

Arduino / ESP-IDF library for mdash.net IoT service
https://mdash.net
Other
35 stars 17 forks source link

Reboot Loop on Incorrect Password #26

Open slorbagorb opened 8 months ago

slorbagorb commented 8 months ago

When the device password is incorrect, a Reboot RPC command is received that results in a reboot loop. This occurs in the Minimal.ino example.

5759 2 mDash.c:656:dev_cb                    {"id":1,"result":{"fw_version":"1.2.16-a-10812-Adafruit ESP32 Feather","arch":"esp32","fw_id":"20240126-134300","app":"FIRMWARE","uptime":1706305428,"ram_free":84320,"reboot_reason":"power-on","id":"...","public_key":"..."}}
588b 2 mDash.c:646:dev_cb               RPC: {"id":40,"method":"Sys.Reboot"}

Is this expected behaviour? Is there a means to verify authorization without receiving the Reboot RPC?

The application for this is a device password that is entered manually in the field.

Thanks,