Skip to main content

Message expansion

For every message received, Connhex automatically adds some fields before performing a database insertion.

FieldDescription
TimeTimestamp
protocolProtocol through which the message has been received. For example, 'mqtt' or 'http'.
publisherid of the device from which the message has been sent
channelInternal Connhex identifier. For MQTT, this is the topic assigned to a given device.

Timestamp

The Connhex JSON format has a mandatory t field reserved for a timestamp. How does that one differ from the Time column automatically created by Connhex?

Time certifies when a message has been received, whereas t is generated by the device before sending the message itself. t typically refers to when the measurements have been recorded, and differs from Time. This also accounts for:

  • network latency
  • additional computation performed from the device before sending the message (for example, batching)