/custom-device-simulator-coap-go

Implements a custom device on hello.nrfcloud.com/map that connects to nRF Cloud using CoAP and sends LwM2M objects using senML encoded as CBOR.

Primary LanguageGoBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

hello.nrfcloud.com/map custom device simulator

Implements a custom device on hello.nrfcloud.com/map that connects to nRF Cloud using CoAP and sends LwM2M objects using senML encoded as CBOR.

Build

go build

Usage

./device-simulator-coap -deviceId <deviceId> -privateKey <path to private key> <<< "<SenML JSON>"

See senml.schema.json for the expected SenML JSON format.

The key file should be a private key as PEM.