This module allows to receive CoAP messages and converts the most important meta data of the requests and the payload into a JSON representation.
This module allows to receive CoAP messages on your IoT Edge Device. It receives the requests that are send to the device via UDP using the CoAP protocol format (http://coap.technology).
Supported environment: Linux ARM 32
Recommended Hardware: Raspberry Pi 3 Model B or something similar/better.
The received requests are converted into a json representation that contains the following parts of the request: Sender, Token, Code (e.g. PUT), Message Type (e.g. NON) and the payload. Also, there is a timestamp value representing the exact received time.
The module supports the following parameters.
output: the output name where to send the json document (default:'output1')
port: the UDP port to receive the CoAP messages/requests (default: 5683)
useIpv6: Use this option to active IPv6 (default: false)
flattenJsonPayloadWithPrefix: if the payload of your CoAP message is a JSON document you can use this option to additionally put the JSON payload properties as properties of the created json message. If the configuration contains a value and the payload is a valid json it will be used. Otherwise nothing happens. (default: 'Data.')