There are multiple ways to use Flux to bring in data from a variety of different sources including SQL databases, other InfluxDB Cloud Accounts, Annotated CSV from a URL, and JSON. However, previously you could only manually construct tables from a JSON object with Flux as described in this first example. We’ll describe how to work with three examples with increasingly complex JSON types. First we will describe how to work with these JSON types with metasyntactic examples.
MQTT is a standard messaging protocol used for the Internet of Things (IoT) because it requires minimal resources and can be executed by small microcontrollers found in connected devices. IoT devices have a real need for this type of lightweight protocol because it guarantees fast and reliable communication with minimal hardware requirements, keeping power consumption and manufacturing costs low.
If you’re a 1.x user of InfluxDB, you might be a Kapacitor user as well. If so, you’re also familiar with TICKscripts, the data processing and transformation language for Kapacitor, the batch and stream processor for InfluxDB. Kapacitor is a great tool, but it’s largely a black box, so using and implementing TICKscripts to execute data processing tasks, checks, and notifications can be a challenging developer experience.
In Part 1 of this series, we started to compare the uses of Kafka and MQTT within an IoT infrastructure. It was concluded that in a basic publish-and-subscribe model of an IoT device, Kafka might simply be overkill.