MIOTY Only functions¶
Name | Input Params | Return Data | Description |
---|---|---|---|
resiot_mioty_downlink | String, String, int, string, int | String | Queue up a downlink message |
resiot_mioty_downlink_ffc | String, String, int, string, int, int | String | Queue up a downlink message for a given frame counter |
resiot_mioty_downlink(String, String)¶
Attempts to queue up a downlink for the given device.
The basestation with best metadata from the last uplink is used for queuing the downlink.
Input Parameters
- AppEUI (String): * The AppEUI of the device.
- DevEUI (String): * The DevEUI of the device.
- Mpf (Integer): * Message Payload format.
- Payload (String): * Hex encoded payload
- Reference (Integer): * Internal reference for log analysis, unsigned *
Returns
- Error (String): * Empty string if all went ok. Otherwise a description of the error *
Exmaple
appeui = "ffffffffffffffff"
deveui = "5c335cf40158050c"
payloadHex = "5c01f0081900"
ref = 25
payload = resiot_hexdecode(payloadHex)
resiot_mioty_downlink(appeui, deveui, 0x00, payloadHex, ref)
resiot_mioty_downlink_ffc(String)¶
Attempts to queue up a downlink for the given device, to be transmitted only in response to uplink a given frame counter fCnt
.
The basestation with best metadata from the last uplink is used for queuing the downlink.
Input Parameters
- AppEUI (String): * The AppEUI of the device.
- DevEUI (String): * The DevEUI of the device.
- Mpf (Integer): * Message Payload format.
- Payload (String): * Hex encoded payload
- Reference (Integer): * Internal reference for log analysis, unsigned
- fCnt (Integer): * Uplink frame counter to respond to
Returns
- Error (String): * Empty string if all went ok. Otherwise a description of the error *
Exmaple
appeui = "ffffffffffffffff"
deveui = "5c335cf40158050c"
payloadHex = "5c01f0081900"
fCnt = 25
ref = 10
payload = resiot_hexdecode(payloadHex)
resiot_mioty_downlink_ffc(appeui, deveui, 0x00, payloadHex, ref, fCnt) --basestation will transmit this only when it hears uplink with frame counter 25