Amqp protocol

Protocol designed to consume data into flespi channel directly from AMQP 0.9.1 broker.
flespi parses the Amqp protocol messages into a JSON object with the fields listed below in the Parameters tab.

AMQP 0.9.1 client is used to receive messages directly from the AMQP broker.


Message payload format

Expected AMQP message payload should be a valid JSON object or an array with objects. Each message should be identified by an ident value either placed into the message JSON payload. You can set another field to use as an ident in the channel configuration.

Other JSON object attributes like "timestamp", "position.latitude", "position.longitude" are optional. Check other protocols for suggested attribute names and values. The value of "timestamp" property (if present) should be a number with Unix time, or UTC time string in full ISO 8601 format (YYYY-MM-DDThh:mm:ss). You can now declare a custom naming scheme for the parameters in the AMQP message thus making it possible to adapt the naming notation to any format preferable for your project.

channel.id
number
ID of channel that received a message
custom
number
Any custom parameter
device.id
number
ID of device that received a message
device.name
string
Name of device that received a message
device.type.id
number
ID of device type of device that received a message
ident
string
Device unique identifier like serial number, IMEI, etc
peer
string
IP:port from which device connecting to the channel
protocol.id
number
ID of protocol
server.timestamp
number
seconds
Timestamp when server received a message
timestamp
number
seconds
Message timestamp