Golioth Launches CircuitPython SDK to Make Streaming IoT Data to the Cloud as Easy as Clicking Save

Designed so that "everything magically starts working," the new SDK provides an easy route to the Golioth cloud for CircuitPython users.

Internet of Things (IoT) development platform Golioth has announced the integration of its cloud platform with CircuitPython — offering the ability to stream data from an IoT device to the cloud as easily as clicking "save," the company claims.

"What if you could open a text document on a device, write code, click save, and everything magically starts working? This is the promise of high level programming languages like CircuitPython," Golioth's Chris Gammell says. "Golioth Labs now has an SDK [Software Development Kit] to utilize the language’s fast prototyping capabilities. in addition Golioth’s cloud functions, it’s super easy to pass data from a networked device up to the Golioth cloud."

Golioth's new SDK makes it easy to stream data from a CircuitPython IoT device to the cloud. (📹: Golioth)

Designed specifically for CircuitPython following a user request, the SDK allows CircuitPython programs to connect to Golioth's cloud back-end for storage and processing. "The transport layer is not something the user needs to care about with the Golioth CircuitPython SDK," Gammell claims. "Any time you are working with a Golioth hosted SDK, you will be working at a higher level than the transport layer of communication, such as CoAP or MQTT.

"Many IoT platforms stop at the transport layer, notably MQTT examples. By moving up to working with APIs to LightDB State or LightDB Stream, you get additional functionality on the device side and you can better maintain your data on the Golioth console — [but] users always have the option to work at a lower level and peek under the hood at how the communication is happening."

To prove the concept, the company has released a demonstration: Installation of the CircuitPython firmware to a SparkFun nRF52840 MicroMod in suitable carrier board, the inclusion of the Adafruit CircuitPython Community Bundle libraries, and then the addition of the new Golioth SDK.

"In Alvaro’s example, he is sending the internal temperature of the processor using [a] LightDB stream," Gammell explains. "He is able to send an update down to the board using LightDB State to remotely turn on an LED on the board, which is listening for changes on the /led path, similar to other examples that use LightDB State."

The source code for the SDK has been published to GitHub under the permissive Apache 2.0 license; more details on the SDK are available on the Golioth blog.

Gareth Halfacree
Freelance journalist, technical author, hacker, tinkerer, erstwhile sysadmin. For hire: freelance@halfacree.co.uk.
Latest articles
Sponsored articles
Related articles
Latest articles
Read more
Related articles