A Docker application to connect the ChillHub to a wireless network
Each ChillHub has a universally unique identifier, known as a UUID. The mobile application uses this identifier to differentiate between ChillHubs for a single user.
$ curl http://192.168.10.1
{ "uuid": "8a8fa07c-8d54-470c-8643-095ee1dba7b2" }
The ChillHub is capable of searching for wireless networks within range of the ChillHub.
$ curl http://192.168.10.1/networks
[
{ "ssid": "Network 1" },
{ "ssid": "Network 2" },
{ "ssid": "Network 3" }
]
In order to connect the ChillHub to a wireless network, it must be provided the SSID and passphrase of the wireless network.
$ curl -X POST -H "Content-Type: application/json" -d '{"ssid":"Network 1", "passphrase": "password"}' http://192.168.10.1/networks
{ "ssid": "Network 1" }
The ChillHub can be disconnected from a wireless network. Once this is done, the ChillHub will revert back to hosting a wireless access point.
$ curl -X DELETE http://192.168.10.1/networks