Skip to content

Data Types ​

Concepts ​

Node ​

In EMQX Neuron, each node can connect to a device or a northbound application.

  • In the device node, you can add and manage device tags.
  • In the northbound node, you can select the data groups that you need to subscribe to.

Group ​

You can create multiple data groups under each node to categorize tags. For example, if a device is connected to multiple temperature sensors and multiple humidity sensors, you can create two data groups, temperature and humidity to categorize the collected tags. EMQX Neuron uploads the collected data to the northbound application by group.

Tag ​

You can create multiple collection tags under each group. For example, if a temperature sensor collects multiple temperature values, each temperature value is a tag.

Driver and Application ​

In EMQX Neuron, each southbound driver implements one collection protocol and each northbound application implements one way of forwarding data. Modbus TCP, for example, corresponds to a southbound driver, and MQTT to a northbound application.

Data types ​

  • INT8 = 1
  • UINT8 = 2
  • INT16 = 3
  • UINT16 = 4
  • INT32 = 5
  • UINT32 = 6
  • INT64 = 7
  • UINT64 = 8
  • FLOAT = 9
  • DOUBLE = 10
  • BIT = 11
  • BOOL = 12
  • STRING = 13
  • BYTES = 14
  • ERROR = 15
  • WORD = 16
  • DWORD = 17
  • LWORD = 18
  • ARRAY_CHAR = 22
  • ARRAY_INT8 = 23
  • ARRAY_UINT8 = 24
  • ARRAY_INT16 = 25
  • ARRAY_UINT16 = 26
  • ARRAY_INT32 = 27
  • ARRAY_UINT32 = 28
  • ARRAY_INT64 = 29
  • ARRAY_UINT64 = 30
  • ARRAY_FLOAT = 31
  • ARRAY_DOUBLE = 32
  • ARRAY_BOOL = 33
  • ARRAY_STRING = 34
  • JSON = 40

Serial port ​

Baud rate ​

  • 115200 = 0
  • 57600 = 1
  • 38400 = 2
  • 19200 = 3
  • 9600 = 4
  • 4800 = 5
  • 2400 = 6
  • 1800 = 7
  • 1200 = 8
  • 600 = 9

Parity ​

  • NONE = 0
  • ODD = 1
  • EVEN = 2
  • MARK = 3
  • SPACE = 4

Stop bit ​

  • Stop_1 = 0
  • Stop_2 = 1

Data bits ​

  • Data_5 = 0
  • Data_6 = 1
  • Data_7 = 2
  • Data_8 = 3

Tag attributes ​

  • READ = 0x01

  • WRITE = 0x02

  • SUBSCRIBE = 0x04

TIP

If the tag attribute is both READ and WRITE, the value is 01 + 02 = 03, and so on.

Node ​

Node type ​

  • DRIVER = 1
  • APP = 2

Node control ​

  • START = 0
  • STOP = 1

Node status ​

  • INIT = 1
  • READY = 2
  • RUNNING = 3
  • STOPPED = 4

Node connection status ​

  • DISCONNECTED = 0
  • CONNECTED = 1

Driver and application types ​

  • STATIC = 0
  • SYSTEM = 1
  • CUSTOM = 2