Configuration.encodeMQTT()
Description
Appends an encodeMQTT filter to the current pipeline layout.
An encodeMQTT filter encodes MQTT packets into a raw byte stream.
- INPUT - MQTT packets (Messages) to encode.
- OUTPUT - Encoded Data stream from the input MQTT packets.
The encoder expects an input Message to have:
- head
- type - Type of the packet such as "SUBSCRIBE" and "PUBLISH"
- qos - PUBLISH Quality of Service
- dup - Duplicate delivery of a PUBLISH packet
- retain - PUBLISH retained message flag
- Other properties defined in the specification
- body - Payload of a PUBLISH packet
Syntax
pipy().pipeline().encodeMQTT()
Parameters
encodeMQTT()
Return Value
The same Configuration object.