A Settings System for any Bluetooth Fleet

Originally published at: A Settings System for any Bluetooth Fleet - The Golioth Developer Blog

Last week we announced the open beta for Golioth Bluetooth support. It makes connecting your BLE IoT fleet to the Internet a snap, for bi-directional data and OTA firmware updates. Today I’ll show how easy it is to use this service to a control the fleet all at once, or to drill down to individual unit by using the built-in Settings service. Apply settings to all or one The Golioth Settings service delivers fleet control from the cloud down to devices. For example, let’s consider Bluetooth (BLE) devices that sleep most of the time but occasionally wakes up to upload sensor data via a gateway. The amount of time spent in the sleep state can be added as a setting that applies to the entire fleet, but the same setting may also be tweaked on a device-by-device basis. If you know your entire fleet is going to be collecting more sensor data than usual, you can make one change and all devices will update their sleep pattern the next time they check in. In the same way, the setting for a single device may be adjusted separately from the fleet-wide setting. Since this is built into the Golioth platform, its really easy to add it to your Bluetooth firmware. Let’s see what is involved in adding a new setting. Prerequisite: Run the sample application If you don’t already have a Bluetooth fleet on Golioth, follow the Getting Started guide in the Bluetooth Gateway repository and add a leaf-node by following the example app in the Pouch repository. This will get you up and streaming simulated sensor data to the cloud in no time. Golioth is free for individuals making it…