wpetit
ec2fd846cc
Allow to skip the update step and reboot to ReachView |
||
---|---|---|
.. | ||
README.md | ||
main.go |
README.md
Example: Updater
A simple example of an updater client wich can:
- Configure a ReachRS module to use the given WiFi network
- Check for updates then reboot to "ReachView" mode
Usage
-
Boot your ReachRS module in "Updater" mode. You can see a documentation on how to reset your device here.
-
Launch the example in
configure-wifi
phase and provides WiFi network informations.
go run example/updater/main.go \
-phase 'configure-wifi'\
-host '<DEVICE_IP_ADDRESS'\
-ssid '<WIFI_SSID>'\
-password '<WIFI_PASSWORD>'\
-security '<WIFI_SECURITY>'
- The device will switch to the provided WiFi network, as you should do.
- Launch the example in
update-then-reboot
phase.
go run example/updater/main.go \
-phase 'update-and-reboot'\
-host '<DEVICE_IP_ADDRESS'