hello-nrfcloud / 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.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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, without EC params (they are not supported by pion/dtls).

About

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.

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Go 100.0%