Mqtt Message Context

Incoming Mqtt Data handling

  • Handle custom MQTT brokers through rules engine

  • Context Variable: msg

  • Only applicable to MQTT Input Service

API Interface

//Returns the MQTT id of the message.
int	getId()

//Returns the payload as a byte array.
byte[]	getPayload()
  
//Returns the quality of service for this message.
int	getQos()

//Returns whether or not this message might be a duplicate of one which has already been received.
boolean	isDuplicate()
  
//Returns whether or not this message should be/was retained by the server.  
boolean	isRetained()

//Returns a string representation of this message's payload.
String	toString()

See Also

MQTT Input
Mqtt Context