The example is to show how to send data to IoTDB from a mqtt client.
- Update configuration to enable MQTT service. (
enable_mqtt_service=truein iotdb-engine.properties) - Launch the IoTDB server.
- Setup storage group
SET STORAGE GROUP TO root.sgand create time timeseriesCREATE TIMESERIES root.sg.d1.s1 WITH DATATYPE=DOUBLE, ENCODING=PLAIN. - Run
org.apache.iotdb.mqtt.MQTTClientto run the mqtt client and send events to server.