This repository has been archived on 2024-08-02. You can view files and clone it, but cannot push or open issues or pull requests.
orion/example/updater
wpetit 6e9df8d386 Refactor reach package
- Rename reach package to emlid
- Create generic Reach websocket client
- Add 2 new subpackages 'updater' and 'reachview' to provides specific
API
2018-09-21 16:07:38 +02:00
..
README.md Add Updater CLI example 2018-09-20 11:22:03 +02:00
main.go Refactor reach package 2018-09-21 16:07:38 +02:00

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

  1. Boot your ReachRS module in "Updater" mode. You can see a documentation on how to reset your device here.

  2. 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>'
  1. The device will switch to the provided WiFi network, as you should do.
  2. Launch the example in update-then-reboot phase.
go run example/updater/main.go \
  -phase 'update-and-reboot'\
  -host '<DEVICE_IP_ADDRESS'