| No | Name | DevEUI | AppKey |
| 1 | DPT7825 | 1ca8520000005044 | 39427d2400c656c5dd9e1268e0ac237c |
| 2 | Honeywell DP | ac1f09fffe26d5b9 | ac1f09fffe26d5b9ac1f09fff9151720 |
| 3 | Honeywell PT | ac1f09fffe26d56c | ac1f09fffe26d56cac1f09fff9151720 |
| 4 | Nuflo Gas | ac1f09fffe26d4b1 | ac1f09fffe26d4b1ac1f09fff9151720 |
| 5 | Nuflo Liquid | ac1f09fffe26d544 | ac1f09fffe26d544ac1f09fff9151720 |
| 6 | RAK001 | ac1f09fffe1e0a48 | ac1f09fffe1e0a48ac1f09fff9151721 |
| 7 | SENSA PT Simulator 1 | ac1f09fffe26d855 | ac1f09fffe26d855ac1f09fff9151720 |
| 8 | SENSA PT Simulator 2 | ac1f09fffe26d514 | ac1f09fffe26d514ac1f09fff9151720 |
| 9 | SENSA PT Simulator 3 | ac1f09fffe26d878 | ac1f09fffe26d878ac1f09fff9151720 |
| 10 | SENSA PT Simulator 4 | ac1f09fffe26d84a | ac1f09fffe26d84aac1f09fff9151720 |
/**
* Decode uplink function
*
* @param {object} input
* @param {number[]} input.bytes Byte array containing the uplink payload, e.g. [255, 230, 255, 0]
* @param {number} input.fPort Uplink fPort.
* @param {Record<string, string>} input.variables Object containing the configured device variables.
*
* @returns {{data: object, errors?: string[], warnings?: string[]}}
* An object containing:
* - data: Object representing the decoded payload.
* - errors: An array of errors (optional).
* - warnings: An array of warnings (optional).
*/
function decodeUplink(input) {
return {
data: {
temp: 22.5,
}
};
}
/**
* Encode downlink function.
*
* @param {object} input
* @param {object} input.data Object representing the payload that must be encoded.
* @param {Record<string, string>} input.variables Object containing the configured device variables.
*
* @returns {{bytes: number[], fPort?: number, errors?: string[], warnings?: string[]}}
* An object containing:
* - bytes: Byte array containing the downlink payload.
* - fPort: The downlink LoRaWAN fPort. (falls back to provided fPort)
* - errors: An array of errors (optional).
* - warnings: An array of warnings (optional).
*/
function encodeDownlink(input) {
return {
fPort: 10,
bytes: [225, 230, 255, 0],
};
}
https://bitbucket.org/sensaio/sensaiodecoder/src/main/
MQTT_WS_USER=dashboard
MQTT_WS_PASS=269f19ae8c5dca840c7e0aad5e7c4fc2
Leave A Comment?