Comment on page
They are delivered as an HTTP POST to the URL specified in your Request Handler.
Example of a configured Request Handler in the Console
When Blecon sends a device request to your handler, it delivers a JSON document.
A device request JSON document follows the following format:
network_headerssection contains metadata about the device and the network used.
Read on for a look at the request data format.
As you can see, the
device_model_idis 0 and
payloadfield which is the raw bytes from the device in hexadecimal form. This will be what you see from the Blecon modem when building a device and before setting the device model.
The response to a Device Request must always be valid JSON with content-type
application/jsonand status code
It is good security practice to authenticate requests. To do this, set up your API so it requires an API key in a header. You can then provide that API key when you configure your Handler in the Blecon Console.
Example API key