CoAP API
info
The following API is subject to change.
The myDevices Constrained Application Protocol (CoAP) endpoint provides an additional connectivity to send device to cloud messages using the CoAP protocol. This endpoint is ideal for NarrowBand (NB-IoT) and LTE CAT M1 devices.
At this time, the endpoint only offers a very basic functionality to publish messages to a generic path using JSON format. We'll be working to support additional payload type, such as Protobuf and native publish/subscribe features.
#
MethodMethod | URI | Name | Summary |
---|---|---|---|
POST | coap://coap.m2c.io/api/v1/uplink | Device Uplink | Sends telemetry data |
Custom JSON Payload
JSON Example Using Cayenne LPP
Example Using MQTT API Payload
The data property must be a JSON array of objects, each element having channel
, value
, type
and unit
porperties. Refer to the list of our
supported data types for the type
and unit
properties.