mirror of
https://github.com/MarekWo/mc-webui.git
synced 2026-11-10 02:32:21 +01:00
Restarting the node meant opening the Console and typing `reboot`, or reaching the hardware. Device > Info now carries the same action as a button, with a confirm that says what it costs: the device leaves the mesh for a few seconds and anything addressed to you in that window can be lost. POST /api/device/reboot wraps the DeviceManager.reboot_device() the console command already used. The firmware acknowledges nothing and the companion link goes down with it, so a 200 means "command written", not "device is back" - the reconnect is _on_disconnected()'s job, and it takes about five seconds over TCP. The button is rendered by loadDeviceInfo() rather than sitting in base.html, so it only exists on the branch where the device answered. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>