Custom Device Types
Custom decoders for unsupported Device payloads decoding.
The Custom Device Type allows writing a JavaScript code in order to decode payloads related to one device.
Once your code is written, there are 3 ways to test it:
- Write a payload in the payload area on the right section of the screen. Then press the “Test” button. The result is a JSON document that will appear in the result box below.
- If your device already sends payloads to the IOT Platform, select this device, a payload, then press the “Test” button. The result is a JSON document that will appear in the result box below.
- You may also send a payload, as it would be received from your device. In order to do this:
- Make sure that your new Custom decoder (Custom Device Type) is active
- Set this Device Type for your device (in the Devices module).
- Then, from this Custom Device Types module, click on the Add button at the top/righ, and select “Send test payload”