tree: 0aba4848a3ab9a9e436b9a69c7777a5c515b3a5e [path history] [tgz]
  1. src/
  2. pom.xml
  3. README.md
example/mqtt/README.md

IoTDB-MQTT-Broker Example

Function

The example is to show how to send data to IoTDB from a mqtt client.

Usage

  • Update configuration to enable MQTT service. (enable_mqtt_service=true in iotdb-engine.properties)
  • Launch the IoTDB server.
  • Setup storage group SET STORAGE GROUP TO root.sg and create time timeseries CREATE TIMESERIES root.sg.d1.s1 WITH DATATYPE=DOUBLE, ENCODING=PLAIN.
  • Run org.apache.iotdb.mqtt.MQTTClient to run the mqtt client and send events to server.