diff --git a/VENDORS/Bosch/Parking_Lot_Sensor/ChirpStack/uplink/converter.json b/VENDORS/Bosch/Parking_Lot_Sensor/ChirpStack/uplink/converter.json index c22290ab..917d3506 100644 --- a/VENDORS/Bosch/Parking_Lot_Sensor/ChirpStack/uplink/converter.json +++ b/VENDORS/Bosch/Parking_Lot_Sensor/ChirpStack/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "ChirpStack Uplink Decoder for Bosch parking lot sensor", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": null, diff --git a/VENDORS/Bosch/Parking_Lot_Sensor/LORIOT/uplink/converter.json b/VENDORS/Bosch/Parking_Lot_Sensor/LORIOT/uplink/converter.json index 0047d48b..c6c4aeaf 100644 --- a/VENDORS/Bosch/Parking_Lot_Sensor/LORIOT/uplink/converter.json +++ b/VENDORS/Bosch/Parking_Lot_Sensor/LORIOT/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "Loriot Uplink Decoder for Bosch parking lot sensor", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": "// Decode an uplink message from a buffer\n// payload - array of bytes\n// metadata - key/value object\n\n/** Decoder **/\n\n// decode payload to string\nvar payloadStr = decodeToString(payload);\n\n// decode payload to JSON\n// var data = decodeToJson(payload);\n\nvar deviceName = 'Device A';\nvar deviceType = 'thermostat';\nvar customerName = 'Customer C';\nvar groupName = 'thermostat devices';\nvar manufacturer = 'Example corporation';\n// use assetName and assetType instead of deviceName and deviceType\n// to automatically create assets instead of devices.\n// var assetName = 'Asset A';\n// var assetType = 'building';\n\n// Result object with device/asset attributes/telemetry data\nvar result = {\n// Use deviceName and deviceType or assetName and assetType, but not both.\n deviceName: deviceName,\n deviceType: deviceType,\n// assetName: assetName,\n// assetType: assetType,\n// customerName: customerName,\n groupName: groupName,\n attributes: {\n model: 'Model A',\n serialNumber: 'SN111',\n integrationName: metadata['integrationName'],\n manufacturer: manufacturer\n },\n telemetry: {\n temperature: 42,\n humidity: 80,\n rawData: payloadStr\n }\n};\n\n/** Helper functions **/\n\nfunction decodeToString(payload) {\n return String.fromCharCode.apply(String, payload);\n}\n\nfunction decodeToJson(payload) {\n // covert payload to string.\n var str = decodeToString(payload);\n\n // parse string to JSON\n var data = JSON.parse(str);\n return data;\n}\n\nreturn result;", diff --git a/VENDORS/Bosch/Parking_Lot_Sensor/ThingsStackCommunity/uplink/converter.json b/VENDORS/Bosch/Parking_Lot_Sensor/ThingsStackCommunity/uplink/converter.json index 55ef0772..6eee5e8d 100644 --- a/VENDORS/Bosch/Parking_Lot_Sensor/ThingsStackCommunity/uplink/converter.json +++ b/VENDORS/Bosch/Parking_Lot_Sensor/ThingsStackCommunity/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "The Things Stack Community Uplink Decoder for Bosch parking lot sensor", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": null, diff --git a/VENDORS/Bosch/Parking_Lot_Sensor/ThingsStackIndustries/uplink/converter.json b/VENDORS/Bosch/Parking_Lot_Sensor/ThingsStackIndustries/uplink/converter.json index efc5f744..b393fa28 100644 --- a/VENDORS/Bosch/Parking_Lot_Sensor/ThingsStackIndustries/uplink/converter.json +++ b/VENDORS/Bosch/Parking_Lot_Sensor/ThingsStackIndustries/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "The Things Stack Industries Uplink Decoder for Bosch parking lot sensor", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": null, diff --git a/VENDORS/Elsys/ERS2/ChirpStack/uplink/converter.json b/VENDORS/Elsys/ERS2/ChirpStack/uplink/converter.json index 6e3f976d..67ae7f90 100644 --- a/VENDORS/Elsys/ERS2/ChirpStack/uplink/converter.json +++ b/VENDORS/Elsys/ERS2/ChirpStack/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "ChirpStack Uplink Decoder for Elsys ERS2 Device", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": null, diff --git a/VENDORS/Elsys/ERS2/LORIOT/uplink/converter.json b/VENDORS/Elsys/ERS2/LORIOT/uplink/converter.json index 9056c17b..ee7b05b9 100644 --- a/VENDORS/Elsys/ERS2/LORIOT/uplink/converter.json +++ b/VENDORS/Elsys/ERS2/LORIOT/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "Loriot Uplink Decoder for Elsys ERS2 Device", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": "// Decode an uplink message from a buffer\n// payload - array of bytes\n// metadata - key/value object\n\n/** Decoder **/\n\n// decode payload to string\nvar payloadStr = decodeToString(payload);\n\n// decode payload to JSON\n// var data = decodeToJson(payload);\n\nvar deviceName = 'Device A';\nvar deviceType = 'thermostat';\nvar customerName = 'Customer C';\nvar groupName = 'thermostat devices';\nvar manufacturer = 'Example corporation';\n// use assetName and assetType instead of deviceName and deviceType\n// to automatically create assets instead of devices.\n// var assetName = 'Asset A';\n// var assetType = 'building';\n\n// Result object with device/asset attributes/telemetry data\nvar result = {\n// Use deviceName and deviceType or assetName and assetType, but not both.\n deviceName: deviceName,\n deviceType: deviceType,\n// assetName: assetName,\n// assetType: assetType,\n// customerName: customerName,\n groupName: groupName,\n attributes: {\n model: 'Model A',\n serialNumber: 'SN111',\n integrationName: metadata['integrationName'],\n manufacturer: manufacturer\n },\n telemetry: {\n temperature: 42,\n humidity: 80,\n rawData: payloadStr\n }\n};\n\n/** Helper functions **/\n\nfunction decodeToString(payload) {\n return String.fromCharCode.apply(String, payload);\n}\n\nfunction decodeToJson(payload) {\n // covert payload to string.\n var str = decodeToString(payload);\n\n // parse string to JSON\n var data = JSON.parse(str);\n return data;\n}\n\nreturn result;", diff --git a/VENDORS/Elsys/ERS2/ThingsStackCommunity/uplink/converter.json b/VENDORS/Elsys/ERS2/ThingsStackCommunity/uplink/converter.json index 187cb37b..678f34b3 100644 --- a/VENDORS/Elsys/ERS2/ThingsStackCommunity/uplink/converter.json +++ b/VENDORS/Elsys/ERS2/ThingsStackCommunity/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "The Things Stack Community Uplink Decoder for Elsys ERS2 Device", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": null, diff --git a/VENDORS/Elsys/ERS2/ThingsStackIndustries/uplink/converter.json b/VENDORS/Elsys/ERS2/ThingsStackIndustries/uplink/converter.json index 1a016773..63ea8739 100644 --- a/VENDORS/Elsys/ERS2/ThingsStackIndustries/uplink/converter.json +++ b/VENDORS/Elsys/ERS2/ThingsStackIndustries/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "The Things Stack Industries Uplink Decoder for Elsys ERS2 Device", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": null, diff --git a/VENDORS/Elsys/ERS2_CO2/ChirpStack/uplink/converter.json b/VENDORS/Elsys/ERS2_CO2/ChirpStack/uplink/converter.json index f3da44c9..2111f6bb 100644 --- a/VENDORS/Elsys/ERS2_CO2/ChirpStack/uplink/converter.json +++ b/VENDORS/Elsys/ERS2_CO2/ChirpStack/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "ChirpStack Uplink Decoder for Elsys ERS2 С02 Device", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": null, diff --git a/VENDORS/Elsys/ERS2_CO2/LORIOT/uplink/converter.json b/VENDORS/Elsys/ERS2_CO2/LORIOT/uplink/converter.json index a5a82665..2c462394 100644 --- a/VENDORS/Elsys/ERS2_CO2/LORIOT/uplink/converter.json +++ b/VENDORS/Elsys/ERS2_CO2/LORIOT/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "Loriot Uplink Decoder for Elsys ERS2 C02 Device", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": "// Decode an uplink message from a buffer\n// payload - array of bytes\n// metadata - key/value object\n\n/** Decoder **/\n\n// decode payload to string\nvar payloadStr = decodeToString(payload);\n\n// decode payload to JSON\n// var data = decodeToJson(payload);\n\nvar deviceName = 'Device A';\nvar deviceType = 'thermostat';\nvar customerName = 'Customer C';\nvar groupName = 'thermostat devices';\nvar manufacturer = 'Example corporation';\n// use assetName and assetType instead of deviceName and deviceType\n// to automatically create assets instead of devices.\n// var assetName = 'Asset A';\n// var assetType = 'building';\n\n// Result object with device/asset attributes/telemetry data\nvar result = {\n// Use deviceName and deviceType or assetName and assetType, but not both.\n deviceName: deviceName,\n deviceType: deviceType,\n// assetName: assetName,\n// assetType: assetType,\n// customerName: customerName,\n groupName: groupName,\n attributes: {\n model: 'Model A',\n serialNumber: 'SN111',\n integrationName: metadata['integrationName'],\n manufacturer: manufacturer\n },\n telemetry: {\n temperature: 42,\n humidity: 80,\n rawData: payloadStr\n }\n};\n\n/** Helper functions **/\n\nfunction decodeToString(payload) {\n return String.fromCharCode.apply(String, payload);\n}\n\nfunction decodeToJson(payload) {\n // covert payload to string.\n var str = decodeToString(payload);\n\n // parse string to JSON\n var data = JSON.parse(str);\n return data;\n}\n\nreturn result;", diff --git a/VENDORS/Elsys/ERS2_CO2/ThingsStackCommunity/uplink/converter.json b/VENDORS/Elsys/ERS2_CO2/ThingsStackCommunity/uplink/converter.json index aa938d65..09bece39 100644 --- a/VENDORS/Elsys/ERS2_CO2/ThingsStackCommunity/uplink/converter.json +++ b/VENDORS/Elsys/ERS2_CO2/ThingsStackCommunity/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "The Things Stack Community Uplink Decoder for Elsys ERS2 C02 Device", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": null, diff --git a/VENDORS/Elsys/ERS2_CO2/ThingsStackIndustries/uplink/converter.json b/VENDORS/Elsys/ERS2_CO2/ThingsStackIndustries/uplink/converter.json index df16648e..714ecfa2 100644 --- a/VENDORS/Elsys/ERS2_CO2/ThingsStackIndustries/uplink/converter.json +++ b/VENDORS/Elsys/ERS2_CO2/ThingsStackIndustries/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "The Things Stack Industries Uplink Decoder for Elsys ERS2 CO2 Device", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": null, diff --git a/VENDORS/Elsys/ERS2_CO2_Lite/ChirpStack/uplink/converter.json b/VENDORS/Elsys/ERS2_CO2_Lite/ChirpStack/uplink/converter.json index 39475d17..b87e4c39 100644 --- a/VENDORS/Elsys/ERS2_CO2_Lite/ChirpStack/uplink/converter.json +++ b/VENDORS/Elsys/ERS2_CO2_Lite/ChirpStack/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "ChirpStack Uplink Decoder for Elsys ERS2 С02 Lite Device", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": null, diff --git a/VENDORS/Elsys/ERS2_CO2_Lite/LORIOT/uplink/converter.json b/VENDORS/Elsys/ERS2_CO2_Lite/LORIOT/uplink/converter.json index 8cf102bd..9dc26aa4 100644 --- a/VENDORS/Elsys/ERS2_CO2_Lite/LORIOT/uplink/converter.json +++ b/VENDORS/Elsys/ERS2_CO2_Lite/LORIOT/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "Loriot Uplink Decoder for Elsys ERS2 C02 Lite Device", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": "// Decode an uplink message from a buffer\n// payload - array of bytes\n// metadata - key/value object\n\n/** Decoder **/\n\n// decode payload to string\nvar payloadStr = decodeToString(payload);\n\n// decode payload to JSON\n// var data = decodeToJson(payload);\n\nvar deviceName = 'Device A';\nvar deviceType = 'thermostat';\nvar customerName = 'Customer C';\nvar groupName = 'thermostat devices';\nvar manufacturer = 'Example corporation';\n// use assetName and assetType instead of deviceName and deviceType\n// to automatically create assets instead of devices.\n// var assetName = 'Asset A';\n// var assetType = 'building';\n\n// Result object with device/asset attributes/telemetry data\nvar result = {\n// Use deviceName and deviceType or assetName and assetType, but not both.\n deviceName: deviceName,\n deviceType: deviceType,\n// assetName: assetName,\n// assetType: assetType,\n// customerName: customerName,\n groupName: groupName,\n attributes: {\n model: 'Model A',\n serialNumber: 'SN111',\n integrationName: metadata['integrationName'],\n manufacturer: manufacturer\n },\n telemetry: {\n temperature: 42,\n humidity: 80,\n rawData: payloadStr\n }\n};\n\n/** Helper functions **/\n\nfunction decodeToString(payload) {\n return String.fromCharCode.apply(String, payload);\n}\n\nfunction decodeToJson(payload) {\n // covert payload to string.\n var str = decodeToString(payload);\n\n // parse string to JSON\n var data = JSON.parse(str);\n return data;\n}\n\nreturn result;", diff --git a/VENDORS/Elsys/ERS2_CO2_Lite/ThingsStackCommunity/uplink/converter.json b/VENDORS/Elsys/ERS2_CO2_Lite/ThingsStackCommunity/uplink/converter.json index 4a835bdf..4e4fdcdc 100644 --- a/VENDORS/Elsys/ERS2_CO2_Lite/ThingsStackCommunity/uplink/converter.json +++ b/VENDORS/Elsys/ERS2_CO2_Lite/ThingsStackCommunity/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "The Things Stack Community Uplink Decoder for Elsys ERS2 C02 Lite Device", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": null, diff --git a/VENDORS/Elsys/ERS2_CO2_Lite/ThingsStackIndustries/uplink/converter.json b/VENDORS/Elsys/ERS2_CO2_Lite/ThingsStackIndustries/uplink/converter.json index 46ab403f..d4b9788f 100644 --- a/VENDORS/Elsys/ERS2_CO2_Lite/ThingsStackIndustries/uplink/converter.json +++ b/VENDORS/Elsys/ERS2_CO2_Lite/ThingsStackIndustries/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "The Things Stack Industries Uplink Decoder for Elsys ERS2 CO2 Device", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": null, diff --git a/VENDORS/Elsys/ERS2_Lite/ChirpStack/uplink/converter.json b/VENDORS/Elsys/ERS2_Lite/ChirpStack/uplink/converter.json index 922e0cef..a0846fad 100644 --- a/VENDORS/Elsys/ERS2_Lite/ChirpStack/uplink/converter.json +++ b/VENDORS/Elsys/ERS2_Lite/ChirpStack/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "ChirpStack Uplink Decoder for Elsys ERS2 Lite Device", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": null, diff --git a/VENDORS/Elsys/ERS2_Lite/LORIOT/uplink/converter.json b/VENDORS/Elsys/ERS2_Lite/LORIOT/uplink/converter.json index d7085879..5f810faa 100644 --- a/VENDORS/Elsys/ERS2_Lite/LORIOT/uplink/converter.json +++ b/VENDORS/Elsys/ERS2_Lite/LORIOT/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "Loriot Uplink Decoder for Elsys ERS2 Lite Device", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": "// Decode an uplink message from a buffer\n// payload - array of bytes\n// metadata - key/value object\n\n/** Decoder **/\n\n// decode payload to string\nvar payloadStr = decodeToString(payload);\n\n// decode payload to JSON\n// var data = decodeToJson(payload);\n\nvar deviceName = 'Device A';\nvar deviceType = 'thermostat';\nvar customerName = 'Customer C';\nvar groupName = 'thermostat devices';\nvar manufacturer = 'Example corporation';\n// use assetName and assetType instead of deviceName and deviceType\n// to automatically create assets instead of devices.\n// var assetName = 'Asset A';\n// var assetType = 'building';\n\n// Result object with device/asset attributes/telemetry data\nvar result = {\n// Use deviceName and deviceType or assetName and assetType, but not both.\n deviceName: deviceName,\n deviceType: deviceType,\n// assetName: assetName,\n// assetType: assetType,\n// customerName: customerName,\n groupName: groupName,\n attributes: {\n model: 'Model A',\n serialNumber: 'SN111',\n integrationName: metadata['integrationName'],\n manufacturer: manufacturer\n },\n telemetry: {\n temperature: 42,\n humidity: 80,\n rawData: payloadStr\n }\n};\n\n/** Helper functions **/\n\nfunction decodeToString(payload) {\n return String.fromCharCode.apply(String, payload);\n}\n\nfunction decodeToJson(payload) {\n // covert payload to string.\n var str = decodeToString(payload);\n\n // parse string to JSON\n var data = JSON.parse(str);\n return data;\n}\n\nreturn result;", diff --git a/VENDORS/Elsys/ERS2_Lite/ThingsStackCommunity/uplink/converter.json b/VENDORS/Elsys/ERS2_Lite/ThingsStackCommunity/uplink/converter.json index f7a761aa..a297522a 100644 --- a/VENDORS/Elsys/ERS2_Lite/ThingsStackCommunity/uplink/converter.json +++ b/VENDORS/Elsys/ERS2_Lite/ThingsStackCommunity/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "The Things Stack Community Uplink Decoder for Elsys ERS2 Lite Device", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": null, diff --git a/VENDORS/Elsys/ERS2_Lite/ThingsStackIndustries/uplink/converter.json b/VENDORS/Elsys/ERS2_Lite/ThingsStackIndustries/uplink/converter.json index 989bce9f..1c6ec249 100644 --- a/VENDORS/Elsys/ERS2_Lite/ThingsStackIndustries/uplink/converter.json +++ b/VENDORS/Elsys/ERS2_Lite/ThingsStackIndustries/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "The Things Stack Industries Uplink Decoder for Elsys ERS2 Lite Device", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": null, diff --git a/VENDORS/Elsys/ERS2_Sound/ChirpStack/uplink/converter.json b/VENDORS/Elsys/ERS2_Sound/ChirpStack/uplink/converter.json index 308e9f6f..bb779ab2 100644 --- a/VENDORS/Elsys/ERS2_Sound/ChirpStack/uplink/converter.json +++ b/VENDORS/Elsys/ERS2_Sound/ChirpStack/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "ChirpStack Uplink Decoder for Elsys ERS2 Sound Device", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": null, diff --git a/VENDORS/Elsys/ERS2_Sound/LORIOT/uplink/converter.json b/VENDORS/Elsys/ERS2_Sound/LORIOT/uplink/converter.json index 31b5b2a2..558ae84a 100644 --- a/VENDORS/Elsys/ERS2_Sound/LORIOT/uplink/converter.json +++ b/VENDORS/Elsys/ERS2_Sound/LORIOT/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "Loriot Uplink Decoder for Elsys ERS2 Sound Device", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": "// Decode an uplink message from a buffer\n// payload - array of bytes\n// metadata - key/value object\n\n/** Decoder **/\n\n// decode payload to string\nvar payloadStr = decodeToString(payload);\n\n// decode payload to JSON\n// var data = decodeToJson(payload);\n\nvar deviceName = 'Device A';\nvar deviceType = 'thermostat';\nvar customerName = 'Customer C';\nvar groupName = 'thermostat devices';\nvar manufacturer = 'Example corporation';\n// use assetName and assetType instead of deviceName and deviceType\n// to automatically create assets instead of devices.\n// var assetName = 'Asset A';\n// var assetType = 'building';\n\n// Result object with device/asset attributes/telemetry data\nvar result = {\n// Use deviceName and deviceType or assetName and assetType, but not both.\n deviceName: deviceName,\n deviceType: deviceType,\n// assetName: assetName,\n// assetType: assetType,\n// customerName: customerName,\n groupName: groupName,\n attributes: {\n model: 'Model A',\n serialNumber: 'SN111',\n integrationName: metadata['integrationName'],\n manufacturer: manufacturer\n },\n telemetry: {\n temperature: 42,\n humidity: 80,\n rawData: payloadStr\n }\n};\n\n/** Helper functions **/\n\nfunction decodeToString(payload) {\n return String.fromCharCode.apply(String, payload);\n}\n\nfunction decodeToJson(payload) {\n // covert payload to string.\n var str = decodeToString(payload);\n\n // parse string to JSON\n var data = JSON.parse(str);\n return data;\n}\n\nreturn result;", diff --git a/VENDORS/Elsys/ERS2_Sound/ThingsStackCommunity/uplink/converter.json b/VENDORS/Elsys/ERS2_Sound/ThingsStackCommunity/uplink/converter.json index 8575af6c..26dc4004 100644 --- a/VENDORS/Elsys/ERS2_Sound/ThingsStackCommunity/uplink/converter.json +++ b/VENDORS/Elsys/ERS2_Sound/ThingsStackCommunity/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "The Things Stack Community Uplink Decoder for Elsys ERS2 Sound Device", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": null, diff --git a/VENDORS/Elsys/ERS2_Sound/ThingsStackIndustries/uplink/converter.json b/VENDORS/Elsys/ERS2_Sound/ThingsStackIndustries/uplink/converter.json index 4a98b8eb..14e47fef 100644 --- a/VENDORS/Elsys/ERS2_Sound/ThingsStackIndustries/uplink/converter.json +++ b/VENDORS/Elsys/ERS2_Sound/ThingsStackIndustries/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "The Things Stack Industries Uplink Decoder for Elsys ERS2 Sound Device", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": null, diff --git a/VENDORS/Elsys/ERS2_VOC/ChirpStack/uplink/converter.json b/VENDORS/Elsys/ERS2_VOC/ChirpStack/uplink/converter.json index b2ae4199..f6c11d34 100644 --- a/VENDORS/Elsys/ERS2_VOC/ChirpStack/uplink/converter.json +++ b/VENDORS/Elsys/ERS2_VOC/ChirpStack/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "ChirpStack Uplink Decoder for Elsys ERS2 VOC Device", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": null, diff --git a/VENDORS/Elsys/ERS2_VOC/LORIOT/uplink/converter.json b/VENDORS/Elsys/ERS2_VOC/LORIOT/uplink/converter.json index 0c36d578..97a1a346 100644 --- a/VENDORS/Elsys/ERS2_VOC/LORIOT/uplink/converter.json +++ b/VENDORS/Elsys/ERS2_VOC/LORIOT/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "Loriot Uplink Decoder for Elsys ERS2 VOC Device", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": "// Decode an uplink message from a buffer\n// payload - array of bytes\n// metadata - key/value object\n\n/** Decoder **/\n\n// decode payload to string\nvar payloadStr = decodeToString(payload);\n\n// decode payload to JSON\n// var data = decodeToJson(payload);\n\nvar deviceName = 'Device A';\nvar deviceType = 'thermostat';\nvar customerName = 'Customer C';\nvar groupName = 'thermostat devices';\nvar manufacturer = 'Example corporation';\n// use assetName and assetType instead of deviceName and deviceType\n// to automatically create assets instead of devices.\n// var assetName = 'Asset A';\n// var assetType = 'building';\n\n// Result object with device/asset attributes/telemetry data\nvar result = {\n// Use deviceName and deviceType or assetName and assetType, but not both.\n deviceName: deviceName,\n deviceType: deviceType,\n// assetName: assetName,\n// assetType: assetType,\n// customerName: customerName,\n groupName: groupName,\n attributes: {\n model: 'Model A',\n serialNumber: 'SN111',\n integrationName: metadata['integrationName'],\n manufacturer: manufacturer\n },\n telemetry: {\n temperature: 42,\n humidity: 80,\n rawData: payloadStr\n }\n};\n\n/** Helper functions **/\n\nfunction decodeToString(payload) {\n return String.fromCharCode.apply(String, payload);\n}\n\nfunction decodeToJson(payload) {\n // covert payload to string.\n var str = decodeToString(payload);\n\n // parse string to JSON\n var data = JSON.parse(str);\n return data;\n}\n\nreturn result;", diff --git a/VENDORS/Elsys/ERS2_VOC/ThingsStackCommunity/uplink/converter.json b/VENDORS/Elsys/ERS2_VOC/ThingsStackCommunity/uplink/converter.json index b622f0f8..0d02fe0e 100644 --- a/VENDORS/Elsys/ERS2_VOC/ThingsStackCommunity/uplink/converter.json +++ b/VENDORS/Elsys/ERS2_VOC/ThingsStackCommunity/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "The Things Stack Community Uplink Decoder for Elsys ERS2 VOC Device", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": null, diff --git a/VENDORS/Elsys/ERS2_VOC/ThingsStackIndustries/uplink/converter.json b/VENDORS/Elsys/ERS2_VOC/ThingsStackIndustries/uplink/converter.json index 499909e5..08288c61 100644 --- a/VENDORS/Elsys/ERS2_VOC/ThingsStackIndustries/uplink/converter.json +++ b/VENDORS/Elsys/ERS2_VOC/ThingsStackIndustries/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "The Things Stack Industries Uplink Decoder for Elsys ERS2 VOC Device", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": null, diff --git a/VENDORS/Milesight/AM102/ChirpStack/uplink/converter.json b/VENDORS/Milesight/AM102/ChirpStack/uplink/converter.json index 5c2325e2..da027621 100644 --- a/VENDORS/Milesight/AM102/ChirpStack/uplink/converter.json +++ b/VENDORS/Milesight/AM102/ChirpStack/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "ChirpStack uplink converter for Milesight AM102", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": null, diff --git a/VENDORS/Milesight/AM102/LORIOT/uplink/converter.json b/VENDORS/Milesight/AM102/LORIOT/uplink/converter.json index a51c0aa1..371d29e6 100644 --- a/VENDORS/Milesight/AM102/LORIOT/uplink/converter.json +++ b/VENDORS/Milesight/AM102/LORIOT/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "Uplink data converter for Loriot integration AM102", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": "// Decode an uplink message from a buffer\n// payload - array of bytes\n// metadata - key/value object\n\n/** Decoder **/\n\n// decode payload to string\nvar payloadStr = decodeToString(payload);\n\n// decode payload to JSON\n// var data = decodeToJson(payload);\n\nvar deviceName = 'Device A';\nvar deviceType = 'thermostat';\nvar customerName = 'Customer C';\nvar groupName = 'thermostat devices';\nvar manufacturer = 'Example corporation';\n// use assetName and assetType instead of deviceName and deviceType\n// to automatically create assets instead of devices.\n// var assetName = 'Asset A';\n// var assetType = 'building';\n\n// Result object with device/asset attributes/telemetry data\nvar result = {\n// Use deviceName and deviceType or assetName and assetType, but not both.\n deviceName: deviceName,\n deviceType: deviceType,\n// assetName: assetName,\n// assetType: assetType,\n// customerName: customerName,\n groupName: groupName,\n attributes: {\n model: 'Model A',\n serialNumber: 'SN111',\n integrationName: metadata['integrationName'],\n manufacturer: manufacturer\n },\n telemetry: {\n temperature: 42,\n humidity: 80,\n rawData: payloadStr\n }\n};\n\n/** Helper functions **/\n\nfunction decodeToString(payload) {\n return String.fromCharCode.apply(String, payload);\n}\n\nfunction decodeToJson(payload) {\n // covert payload to string.\n var str = decodeToString(payload);\n\n // parse string to JSON\n var data = JSON.parse(str);\n return data;\n}\n\nreturn result;", diff --git a/VENDORS/Milesight/AM102/ThingsStackCommunity/uplink/converter.json b/VENDORS/Milesight/AM102/ThingsStackCommunity/uplink/converter.json index e26b4278..1859676b 100644 --- a/VENDORS/Milesight/AM102/ThingsStackCommunity/uplink/converter.json +++ b/VENDORS/Milesight/AM102/ThingsStackCommunity/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "Uplink data converter for The Things Stack Community integration AM102", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": null, diff --git a/VENDORS/Milesight/AM102/ThingsStackIndustries/uplink/converter.json b/VENDORS/Milesight/AM102/ThingsStackIndustries/uplink/converter.json index ccae5a17..135e1cbf 100644 --- a/VENDORS/Milesight/AM102/ThingsStackIndustries/uplink/converter.json +++ b/VENDORS/Milesight/AM102/ThingsStackIndustries/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "Uplink data converter for The Things Stack Industries integration AM102", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": null, diff --git a/VENDORS/Milesight/AM102L/ChirpStack/uplink/converter.json b/VENDORS/Milesight/AM102L/ChirpStack/uplink/converter.json index 2fa2bb91..9a3e231b 100644 --- a/VENDORS/Milesight/AM102L/ChirpStack/uplink/converter.json +++ b/VENDORS/Milesight/AM102L/ChirpStack/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "ChirpStack uplink converter for Milesight AM102L", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": null, diff --git a/VENDORS/Milesight/AM102L/LORIOT/uplink/converter.json b/VENDORS/Milesight/AM102L/LORIOT/uplink/converter.json index 0e7f78e6..0e084f22 100644 --- a/VENDORS/Milesight/AM102L/LORIOT/uplink/converter.json +++ b/VENDORS/Milesight/AM102L/LORIOT/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "Uplink data converter for Loriot integration AM102L", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": "// Decode an uplink message from a buffer\n// payload - array of bytes\n// metadata - key/value object\n\n/** Decoder **/\n\n// decode payload to string\nvar payloadStr = decodeToString(payload);\n\n// decode payload to JSON\n// var data = decodeToJson(payload);\n\nvar deviceName = 'Device A';\nvar deviceType = 'thermostat';\nvar customerName = 'Customer C';\nvar groupName = 'thermostat devices';\nvar manufacturer = 'Example corporation';\n// use assetName and assetType instead of deviceName and deviceType\n// to automatically create assets instead of devices.\n// var assetName = 'Asset A';\n// var assetType = 'building';\n\n// Result object with device/asset attributes/telemetry data\nvar result = {\n// Use deviceName and deviceType or assetName and assetType, but not both.\n deviceName: deviceName,\n deviceType: deviceType,\n// assetName: assetName,\n// assetType: assetType,\n// customerName: customerName,\n groupName: groupName,\n attributes: {\n model: 'Model A',\n serialNumber: 'SN111',\n integrationName: metadata['integrationName'],\n manufacturer: manufacturer\n },\n telemetry: {\n temperature: 42,\n humidity: 80,\n rawData: payloadStr\n }\n};\n\n/** Helper functions **/\n\nfunction decodeToString(payload) {\n return String.fromCharCode.apply(String, payload);\n}\n\nfunction decodeToJson(payload) {\n // covert payload to string.\n var str = decodeToString(payload);\n\n // parse string to JSON\n var data = JSON.parse(str);\n return data;\n}\n\nreturn result;", diff --git a/VENDORS/Milesight/AM102L/ThingsStackCommunity/uplink/converter.json b/VENDORS/Milesight/AM102L/ThingsStackCommunity/uplink/converter.json index 783dcf07..26db57b8 100644 --- a/VENDORS/Milesight/AM102L/ThingsStackCommunity/uplink/converter.json +++ b/VENDORS/Milesight/AM102L/ThingsStackCommunity/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "Uplink data converter for The Things Stack Community integration AM102L", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": null, diff --git a/VENDORS/Milesight/AM102L/ThingsStackIndustries/uplink/converter.json b/VENDORS/Milesight/AM102L/ThingsStackIndustries/uplink/converter.json index 8dd09fdf..4c34f903 100644 --- a/VENDORS/Milesight/AM102L/ThingsStackIndustries/uplink/converter.json +++ b/VENDORS/Milesight/AM102L/ThingsStackIndustries/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "Uplink data converter for The Things Stack Industries integration AM102L", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": null, diff --git a/VENDORS/Milesight/AM103/ChirpStack/uplink/converter.json b/VENDORS/Milesight/AM103/ChirpStack/uplink/converter.json index 08973645..f988e6c5 100644 --- a/VENDORS/Milesight/AM103/ChirpStack/uplink/converter.json +++ b/VENDORS/Milesight/AM103/ChirpStack/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "ChirpStack uplink converter for Milesight AM103", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": null, diff --git a/VENDORS/Milesight/AM103/LORIOT/uplink/converter.json b/VENDORS/Milesight/AM103/LORIOT/uplink/converter.json index 1d0d7ab4..48a16552 100644 --- a/VENDORS/Milesight/AM103/LORIOT/uplink/converter.json +++ b/VENDORS/Milesight/AM103/LORIOT/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "Uplink data converter for Loriot integration AM-103", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": "// Decode an uplink message from a buffer\n// payload - array of bytes\n// metadata - key/value object\n\n/** Decoder **/\n\n// decode payload to string\nvar payloadStr = decodeToString(payload);\n\n// decode payload to JSON\n// var data = decodeToJson(payload);\n\nvar deviceName = 'Device A';\nvar deviceType = 'thermostat';\nvar customerName = 'Customer C';\nvar groupName = 'thermostat devices';\nvar manufacturer = 'Example corporation';\n// use assetName and assetType instead of deviceName and deviceType\n// to automatically create assets instead of devices.\n// var assetName = 'Asset A';\n// var assetType = 'building';\n\n// Result object with device/asset attributes/telemetry data\nvar result = {\n// Use deviceName and deviceType or assetName and assetType, but not both.\n deviceName: deviceName,\n deviceType: deviceType,\n// assetName: assetName,\n// assetType: assetType,\n// customerName: customerName,\n groupName: groupName,\n attributes: {\n model: 'Model A',\n serialNumber: 'SN111',\n integrationName: metadata['integrationName'],\n manufacturer: manufacturer\n },\n telemetry: {\n temperature: 42,\n humidity: 80,\n rawData: payloadStr\n }\n};\n\n/** Helper functions **/\n\nfunction decodeToString(payload) {\n return String.fromCharCode.apply(String, payload);\n}\n\nfunction decodeToJson(payload) {\n // covert payload to string.\n var str = decodeToString(payload);\n\n // parse string to JSON\n var data = JSON.parse(str);\n return data;\n}\n\nreturn result;", diff --git a/VENDORS/Milesight/AM103/ThingsStackCommunity/uplink/converter.json b/VENDORS/Milesight/AM103/ThingsStackCommunity/uplink/converter.json index 306e9711..d2d18cb9 100644 --- a/VENDORS/Milesight/AM103/ThingsStackCommunity/uplink/converter.json +++ b/VENDORS/Milesight/AM103/ThingsStackCommunity/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "Uplink data converter for The Things Stack Community integration AM-103", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": null, diff --git a/VENDORS/Milesight/AM103/ThingsStackIndustries/uplink/converter.json b/VENDORS/Milesight/AM103/ThingsStackIndustries/uplink/converter.json index c8f4daac..7233cc7b 100644 --- a/VENDORS/Milesight/AM103/ThingsStackIndustries/uplink/converter.json +++ b/VENDORS/Milesight/AM103/ThingsStackIndustries/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "Uplink data converter for The Things Stack Industries integration AM-103", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": null, diff --git a/VENDORS/Milesight/AM103L/ChirpStack/uplink/converter.json b/VENDORS/Milesight/AM103L/ChirpStack/uplink/converter.json index 62105b00..bbc53c52 100644 --- a/VENDORS/Milesight/AM103L/ChirpStack/uplink/converter.json +++ b/VENDORS/Milesight/AM103L/ChirpStack/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "ChirpStack uplink converter for Milesight AM103L", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": null, diff --git a/VENDORS/Milesight/AM103L/LORIOT/uplink/converter.json b/VENDORS/Milesight/AM103L/LORIOT/uplink/converter.json index a3619a52..77e3f11b 100644 --- a/VENDORS/Milesight/AM103L/LORIOT/uplink/converter.json +++ b/VENDORS/Milesight/AM103L/LORIOT/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "Uplink data converter for Loriot integration AM-103L", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": "// Decode an uplink message from a buffer\n// payload - array of bytes\n// metadata - key/value object\n\n/** Decoder **/\n\n// decode payload to string\nvar payloadStr = decodeToString(payload);\n\n// decode payload to JSON\n// var data = decodeToJson(payload);\n\nvar deviceName = 'Device A';\nvar deviceType = 'thermostat';\nvar customerName = 'Customer C';\nvar groupName = 'thermostat devices';\nvar manufacturer = 'Example corporation';\n// use assetName and assetType instead of deviceName and deviceType\n// to automatically create assets instead of devices.\n// var assetName = 'Asset A';\n// var assetType = 'building';\n\n// Result object with device/asset attributes/telemetry data\nvar result = {\n// Use deviceName and deviceType or assetName and assetType, but not both.\n deviceName: deviceName,\n deviceType: deviceType,\n// assetName: assetName,\n// assetType: assetType,\n// customerName: customerName,\n groupName: groupName,\n attributes: {\n model: 'Model A',\n serialNumber: 'SN111',\n integrationName: metadata['integrationName'],\n manufacturer: manufacturer\n },\n telemetry: {\n temperature: 42,\n humidity: 80,\n rawData: payloadStr\n }\n};\n\n/** Helper functions **/\n\nfunction decodeToString(payload) {\n return String.fromCharCode.apply(String, payload);\n}\n\nfunction decodeToJson(payload) {\n // covert payload to string.\n var str = decodeToString(payload);\n\n // parse string to JSON\n var data = JSON.parse(str);\n return data;\n}\n\nreturn result;", diff --git a/VENDORS/Milesight/AM103L/ThingsStackCommunity/uplink/converter.json b/VENDORS/Milesight/AM103L/ThingsStackCommunity/uplink/converter.json index fc853063..589efaa2 100644 --- a/VENDORS/Milesight/AM103L/ThingsStackCommunity/uplink/converter.json +++ b/VENDORS/Milesight/AM103L/ThingsStackCommunity/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "Uplink data converter for The Things Stack Community integration AM-103L", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": null, diff --git a/VENDORS/Milesight/AM103L/ThingsStackIndustries/uplink/converter.json b/VENDORS/Milesight/AM103L/ThingsStackIndustries/uplink/converter.json index e3740ad2..a198e13f 100644 --- a/VENDORS/Milesight/AM103L/ThingsStackIndustries/uplink/converter.json +++ b/VENDORS/Milesight/AM103L/ThingsStackIndustries/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "Uplink data converter for The Things Stack Industries integration AM-103L", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": null, diff --git a/VENDORS/Milesight/AM104/ChirpStack/uplink/converter.json b/VENDORS/Milesight/AM104/ChirpStack/uplink/converter.json index 5bcd616b..66e8b21d 100644 --- a/VENDORS/Milesight/AM104/ChirpStack/uplink/converter.json +++ b/VENDORS/Milesight/AM104/ChirpStack/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "ChirpStack uplink converter for Milesight AM104", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": null, diff --git a/VENDORS/Milesight/AM104/LORIOT/uplink/converter.json b/VENDORS/Milesight/AM104/LORIOT/uplink/converter.json index 2d366ef2..06bc9d1b 100644 --- a/VENDORS/Milesight/AM104/LORIOT/uplink/converter.json +++ b/VENDORS/Milesight/AM104/LORIOT/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "Uplink data converter for Loriot integration AM-103", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": "// Decode an uplink message from a buffer\n// payload - array of bytes\n// metadata - key/value object\n\n/** Decoder **/\n\n// decode payload to string\nvar payloadStr = decodeToString(payload);\n\n// decode payload to JSON\n// var data = decodeToJson(payload);\n\nvar deviceName = 'Device A';\nvar deviceType = 'thermostat';\nvar customerName = 'Customer C';\nvar groupName = 'thermostat devices';\nvar manufacturer = 'Example corporation';\n// use assetName and assetType instead of deviceName and deviceType\n// to automatically create assets instead of devices.\n// var assetName = 'Asset A';\n// var assetType = 'building';\n\n// Result object with device/asset attributes/telemetry data\nvar result = {\n// Use deviceName and deviceType or assetName and assetType, but not both.\n deviceName: deviceName,\n deviceType: deviceType,\n// assetName: assetName,\n// assetType: assetType,\n// customerName: customerName,\n groupName: groupName,\n attributes: {\n model: 'Model A',\n serialNumber: 'SN111',\n integrationName: metadata['integrationName'],\n manufacturer: manufacturer\n },\n telemetry: {\n temperature: 42,\n humidity: 80,\n rawData: payloadStr\n }\n};\n\n/** Helper functions **/\n\nfunction decodeToString(payload) {\n return String.fromCharCode.apply(String, payload);\n}\n\nfunction decodeToJson(payload) {\n // covert payload to string.\n var str = decodeToString(payload);\n\n // parse string to JSON\n var data = JSON.parse(str);\n return data;\n}\n\nreturn result;", diff --git a/VENDORS/Milesight/AM104/ThingsStackCommunity/uplink/converter.json b/VENDORS/Milesight/AM104/ThingsStackCommunity/uplink/converter.json index 084cad1a..29aab1dd 100644 --- a/VENDORS/Milesight/AM104/ThingsStackCommunity/uplink/converter.json +++ b/VENDORS/Milesight/AM104/ThingsStackCommunity/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "Uplink data converter for The Things Stack Community integration AM-104", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": null, diff --git a/VENDORS/Milesight/AM104/ThingsStackIndustries/uplink/converter.json b/VENDORS/Milesight/AM104/ThingsStackIndustries/uplink/converter.json index 615c8b9e..a1122e3d 100644 --- a/VENDORS/Milesight/AM104/ThingsStackIndustries/uplink/converter.json +++ b/VENDORS/Milesight/AM104/ThingsStackIndustries/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "Uplink data converter for The Things Stack Industries integration AM-104", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": null, diff --git a/VENDORS/Milesight/AM107/ChirpStack/uplink/converter.json b/VENDORS/Milesight/AM107/ChirpStack/uplink/converter.json index 43bd946d..c58cb20f 100644 --- a/VENDORS/Milesight/AM107/ChirpStack/uplink/converter.json +++ b/VENDORS/Milesight/AM107/ChirpStack/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "ChirpStack uplink converter for Milesight AM107", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": null, diff --git a/VENDORS/Milesight/AM107/LORIOT/uplink/converter.json b/VENDORS/Milesight/AM107/LORIOT/uplink/converter.json index 1d833eb5..4e0df159 100644 --- a/VENDORS/Milesight/AM107/LORIOT/uplink/converter.json +++ b/VENDORS/Milesight/AM107/LORIOT/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "Uplink data converter for Loriot integration AM-107", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": "// Decode an uplink message from a buffer\n// payload - array of bytes\n// metadata - key/value object\n\n/** Decoder **/\n\n// decode payload to string\nvar payloadStr = decodeToString(payload);\n\n// decode payload to JSON\n// var data = decodeToJson(payload);\n\nvar deviceName = 'Device A';\nvar deviceType = 'thermostat';\nvar customerName = 'Customer C';\nvar groupName = 'thermostat devices';\nvar manufacturer = 'Example corporation';\n// use assetName and assetType instead of deviceName and deviceType\n// to automatically create assets instead of devices.\n// var assetName = 'Asset A';\n// var assetType = 'building';\n\n// Result object with device/asset attributes/telemetry data\nvar result = {\n// Use deviceName and deviceType or assetName and assetType, but not both.\n deviceName: deviceName,\n deviceType: deviceType,\n// assetName: assetName,\n// assetType: assetType,\n// customerName: customerName,\n groupName: groupName,\n attributes: {\n model: 'Model A',\n serialNumber: 'SN111',\n integrationName: metadata['integrationName'],\n manufacturer: manufacturer\n },\n telemetry: {\n temperature: 42,\n humidity: 80,\n rawData: payloadStr\n }\n};\n\n/** Helper functions **/\n\nfunction decodeToString(payload) {\n return String.fromCharCode.apply(String, payload);\n}\n\nfunction decodeToJson(payload) {\n // covert payload to string.\n var str = decodeToString(payload);\n\n // parse string to JSON\n var data = JSON.parse(str);\n return data;\n}\n\nreturn result;", diff --git a/VENDORS/Milesight/AM107/ThingsStackCommunity/uplink/converter.json b/VENDORS/Milesight/AM107/ThingsStackCommunity/uplink/converter.json index ba099380..f05ef647 100644 --- a/VENDORS/Milesight/AM107/ThingsStackCommunity/uplink/converter.json +++ b/VENDORS/Milesight/AM107/ThingsStackCommunity/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "Uplink data converter for The Things Stack Community integration AM-107", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": null, diff --git a/VENDORS/Milesight/AM107/ThingsStackIndustries/uplink/converter.json b/VENDORS/Milesight/AM107/ThingsStackIndustries/uplink/converter.json index 46df6136..d27e9046 100644 --- a/VENDORS/Milesight/AM107/ThingsStackIndustries/uplink/converter.json +++ b/VENDORS/Milesight/AM107/ThingsStackIndustries/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "Uplink data converter for The Things Stack Industries integration AM-107", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": null, diff --git a/VENDORS/Milesight/AM307/ChirpStack/uplink/converter.json b/VENDORS/Milesight/AM307/ChirpStack/uplink/converter.json index 57263636..fd100328 100644 --- a/VENDORS/Milesight/AM307/ChirpStack/uplink/converter.json +++ b/VENDORS/Milesight/AM307/ChirpStack/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "ChirpStack uplink converter for Milesight AM307", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": null, diff --git a/VENDORS/Milesight/AM307/LORIOT/uplink/converter.json b/VENDORS/Milesight/AM307/LORIOT/uplink/converter.json index 13cd0d66..267c88d9 100644 --- a/VENDORS/Milesight/AM307/LORIOT/uplink/converter.json +++ b/VENDORS/Milesight/AM307/LORIOT/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "Uplink data converter for Loriot integration AM-307", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": "// Decode an uplink message from a buffer\n// payload - array of bytes\n// metadata - key/value object\n\n/** Decoder **/\n\n// decode payload to string\nvar payloadStr = decodeToString(payload);\n\n// decode payload to JSON\n// var data = decodeToJson(payload);\n\nvar deviceName = 'Device A';\nvar deviceType = 'thermostat';\nvar customerName = 'Customer C';\nvar groupName = 'thermostat devices';\nvar manufacturer = 'Example corporation';\n// use assetName and assetType instead of deviceName and deviceType\n// to automatically create assets instead of devices.\n// var assetName = 'Asset A';\n// var assetType = 'building';\n\n// Result object with device/asset attributes/telemetry data\nvar result = {\n// Use deviceName and deviceType or assetName and assetType, but not both.\n deviceName: deviceName,\n deviceType: deviceType,\n// assetName: assetName,\n// assetType: assetType,\n// customerName: customerName,\n groupName: groupName,\n attributes: {\n model: 'Model A',\n serialNumber: 'SN111',\n integrationName: metadata['integrationName'],\n manufacturer: manufacturer\n },\n telemetry: {\n temperature: 42,\n humidity: 80,\n rawData: payloadStr\n }\n};\n\n/** Helper functions **/\n\nfunction decodeToString(payload) {\n return String.fromCharCode.apply(String, payload);\n}\n\nfunction decodeToJson(payload) {\n // covert payload to string.\n var str = decodeToString(payload);\n\n // parse string to JSON\n var data = JSON.parse(str);\n return data;\n}\n\nreturn result;", diff --git a/VENDORS/Milesight/AM307/ThingsStackCommunity/uplink/converter.json b/VENDORS/Milesight/AM307/ThingsStackCommunity/uplink/converter.json index 73b183dd..8bb1e679 100644 --- a/VENDORS/Milesight/AM307/ThingsStackCommunity/uplink/converter.json +++ b/VENDORS/Milesight/AM307/ThingsStackCommunity/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "Uplink data converter for The Things Stack Community integration AM-307", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": null, diff --git a/VENDORS/Milesight/AM307/ThingsStackIndustries/uplink/converter.json b/VENDORS/Milesight/AM307/ThingsStackIndustries/uplink/converter.json index b907542a..02dea5b0 100644 --- a/VENDORS/Milesight/AM307/ThingsStackIndustries/uplink/converter.json +++ b/VENDORS/Milesight/AM307/ThingsStackIndustries/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "Uplink data converter for The Things Stack Industries integration AM-307", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": null, diff --git a/VENDORS/Milesight/AM307L/ChirpStack/uplink/converter.json b/VENDORS/Milesight/AM307L/ChirpStack/uplink/converter.json index a87f80c6..a411be5c 100644 --- a/VENDORS/Milesight/AM307L/ChirpStack/uplink/converter.json +++ b/VENDORS/Milesight/AM307L/ChirpStack/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "ChirpStack uplink converter for Milesight AM307L", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": null, diff --git a/VENDORS/Milesight/AM307L/LORIOT/uplink/converter.json b/VENDORS/Milesight/AM307L/LORIOT/uplink/converter.json index 562dd6ee..5fc200c7 100644 --- a/VENDORS/Milesight/AM307L/LORIOT/uplink/converter.json +++ b/VENDORS/Milesight/AM307L/LORIOT/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "Uplink data converter for Loriot integration AM-307L", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": "// Decode an uplink message from a buffer\n// payload - array of bytes\n// metadata - key/value object\n\n/** Decoder **/\n\n// decode payload to string\nvar payloadStr = decodeToString(payload);\n\n// decode payload to JSON\n// var data = decodeToJson(payload);\n\nvar deviceName = 'Device A';\nvar deviceType = 'thermostat';\nvar customerName = 'Customer C';\nvar groupName = 'thermostat devices';\nvar manufacturer = 'Example corporation';\n// use assetName and assetType instead of deviceName and deviceType\n// to automatically create assets instead of devices.\n// var assetName = 'Asset A';\n// var assetType = 'building';\n\n// Result object with device/asset attributes/telemetry data\nvar result = {\n// Use deviceName and deviceType or assetName and assetType, but not both.\n deviceName: deviceName,\n deviceType: deviceType,\n// assetName: assetName,\n// assetType: assetType,\n// customerName: customerName,\n groupName: groupName,\n attributes: {\n model: 'Model A',\n serialNumber: 'SN111',\n integrationName: metadata['integrationName'],\n manufacturer: manufacturer\n },\n telemetry: {\n temperature: 42,\n humidity: 80,\n rawData: payloadStr\n }\n};\n\n/** Helper functions **/\n\nfunction decodeToString(payload) {\n return String.fromCharCode.apply(String, payload);\n}\n\nfunction decodeToJson(payload) {\n // covert payload to string.\n var str = decodeToString(payload);\n\n // parse string to JSON\n var data = JSON.parse(str);\n return data;\n}\n\nreturn result;", diff --git a/VENDORS/Milesight/AM307L/ThingsStackCommunity/uplink/converter.json b/VENDORS/Milesight/AM307L/ThingsStackCommunity/uplink/converter.json index 5b6f2d33..fc9116d1 100644 --- a/VENDORS/Milesight/AM307L/ThingsStackCommunity/uplink/converter.json +++ b/VENDORS/Milesight/AM307L/ThingsStackCommunity/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "Uplink data converter for The Things Stack Community integration AM-307L", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": null, diff --git a/VENDORS/Milesight/AM307L/ThingsStackIndustries/uplink/converter.json b/VENDORS/Milesight/AM307L/ThingsStackIndustries/uplink/converter.json index 89747951..b8f40d08 100644 --- a/VENDORS/Milesight/AM307L/ThingsStackIndustries/uplink/converter.json +++ b/VENDORS/Milesight/AM307L/ThingsStackIndustries/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "Uplink data converter for The Things Stack Industries integration AM-307L", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": null, diff --git a/VENDORS/Milesight/AM308L/ChirpStack/uplink/converter.json b/VENDORS/Milesight/AM308L/ChirpStack/uplink/converter.json index 4fdcca7e..12ea0284 100644 --- a/VENDORS/Milesight/AM308L/ChirpStack/uplink/converter.json +++ b/VENDORS/Milesight/AM308L/ChirpStack/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "ChirpStack uplink converter for Milesight AM308L", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": null, diff --git a/VENDORS/Milesight/AM308L/LORIOT/uplink/converter.json b/VENDORS/Milesight/AM308L/LORIOT/uplink/converter.json index fc951bc0..4a086272 100644 --- a/VENDORS/Milesight/AM308L/LORIOT/uplink/converter.json +++ b/VENDORS/Milesight/AM308L/LORIOT/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "Uplink data converter for Loriot integration AM-308L", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": "// Decode an uplink message from a buffer\n// payload - array of bytes\n// metadata - key/value object\n\n/** Decoder **/\n\n// decode payload to string\nvar payloadStr = decodeToString(payload);\n\n// decode payload to JSON\n// var data = decodeToJson(payload);\n\nvar deviceName = 'Device A';\nvar deviceType = 'thermostat';\nvar customerName = 'Customer C';\nvar groupName = 'thermostat devices';\nvar manufacturer = 'Example corporation';\n// use assetName and assetType instead of deviceName and deviceType\n// to automatically create assets instead of devices.\n// var assetName = 'Asset A';\n// var assetType = 'building';\n\n// Result object with device/asset attributes/telemetry data\nvar result = {\n// Use deviceName and deviceType or assetName and assetType, but not both.\n deviceName: deviceName,\n deviceType: deviceType,\n// assetName: assetName,\n// assetType: assetType,\n// customerName: customerName,\n groupName: groupName,\n attributes: {\n model: 'Model A',\n serialNumber: 'SN111',\n integrationName: metadata['integrationName'],\n manufacturer: manufacturer\n },\n telemetry: {\n temperature: 42,\n humidity: 80,\n rawData: payloadStr\n }\n};\n\n/** Helper functions **/\n\nfunction decodeToString(payload) {\n return String.fromCharCode.apply(String, payload);\n}\n\nfunction decodeToJson(payload) {\n // covert payload to string.\n var str = decodeToString(payload);\n\n // parse string to JSON\n var data = JSON.parse(str);\n return data;\n}\n\nreturn result;", diff --git a/VENDORS/Milesight/AM308L/ThingsStackCommunity/uplink/converter.json b/VENDORS/Milesight/AM308L/ThingsStackCommunity/uplink/converter.json index 2dd985ac..c3633cd8 100644 --- a/VENDORS/Milesight/AM308L/ThingsStackCommunity/uplink/converter.json +++ b/VENDORS/Milesight/AM308L/ThingsStackCommunity/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "Uplink data converter for The Things Stack Community integration AM-308L", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": null, diff --git a/VENDORS/Milesight/AM308L/ThingsStackIndustries/uplink/converter.json b/VENDORS/Milesight/AM308L/ThingsStackIndustries/uplink/converter.json index 930a018c..2664fefc 100644 --- a/VENDORS/Milesight/AM308L/ThingsStackIndustries/uplink/converter.json +++ b/VENDORS/Milesight/AM308L/ThingsStackIndustries/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "Uplink data converter for The Things Stack Industries integration AM-308L", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": null, diff --git a/VENDORS/Milesight/AM319/ChirpStack/uplink/converter.json b/VENDORS/Milesight/AM319/ChirpStack/uplink/converter.json index d90dcab6..9cc7b665 100644 --- a/VENDORS/Milesight/AM319/ChirpStack/uplink/converter.json +++ b/VENDORS/Milesight/AM319/ChirpStack/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "ChirpStack uplink converter for Milesight AM319", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": null, diff --git a/VENDORS/Milesight/AM319/LORIOT/uplink/converter.json b/VENDORS/Milesight/AM319/LORIOT/uplink/converter.json index 90b05d5d..181ef04d 100644 --- a/VENDORS/Milesight/AM319/LORIOT/uplink/converter.json +++ b/VENDORS/Milesight/AM319/LORIOT/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "Uplink data converter for Loriot integration AM-319", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": "// Decode an uplink message from a buffer\n// payload - array of bytes\n// metadata - key/value object\n\n/** Decoder **/\n\n// decode payload to string\nvar payloadStr = decodeToString(payload);\n\n// decode payload to JSON\n// var data = decodeToJson(payload);\n\nvar deviceName = 'Device A';\nvar deviceType = 'thermostat';\nvar customerName = 'Customer C';\nvar groupName = 'thermostat devices';\nvar manufacturer = 'Example corporation';\n// use assetName and assetType instead of deviceName and deviceType\n// to automatically create assets instead of devices.\n// var assetName = 'Asset A';\n// var assetType = 'building';\n\n// Result object with device/asset attributes/telemetry data\nvar result = {\n// Use deviceName and deviceType or assetName and assetType, but not both.\n deviceName: deviceName,\n deviceType: deviceType,\n// assetName: assetName,\n// assetType: assetType,\n// customerName: customerName,\n groupName: groupName,\n attributes: {\n model: 'Model A',\n serialNumber: 'SN111',\n integrationName: metadata['integrationName'],\n manufacturer: manufacturer\n },\n telemetry: {\n temperature: 42,\n humidity: 80,\n rawData: payloadStr\n }\n};\n\n/** Helper functions **/\n\nfunction decodeToString(payload) {\n return String.fromCharCode.apply(String, payload);\n}\n\nfunction decodeToJson(payload) {\n // covert payload to string.\n var str = decodeToString(payload);\n\n // parse string to JSON\n var data = JSON.parse(str);\n return data;\n}\n\nreturn result;", diff --git a/VENDORS/Milesight/AM319/ThingsStackCommunity/uplink/converter.json b/VENDORS/Milesight/AM319/ThingsStackCommunity/uplink/converter.json index a65f0220..ac0b9622 100644 --- a/VENDORS/Milesight/AM319/ThingsStackCommunity/uplink/converter.json +++ b/VENDORS/Milesight/AM319/ThingsStackCommunity/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "Uplink data converter for The Things Stack Community integration AM-319", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": null, diff --git a/VENDORS/Milesight/AM319/ThingsStackIndustries/uplink/converter.json b/VENDORS/Milesight/AM319/ThingsStackIndustries/uplink/converter.json index d0fc4828..e3aebd72 100644 --- a/VENDORS/Milesight/AM319/ThingsStackIndustries/uplink/converter.json +++ b/VENDORS/Milesight/AM319/ThingsStackIndustries/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "Uplink data converter for The Things Stack Industries integration AM-319", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": null, diff --git a/VENDORS/Milesight/AM319L/ChirpStack/uplink/converter.json b/VENDORS/Milesight/AM319L/ChirpStack/uplink/converter.json index 2e463372..f03b5022 100644 --- a/VENDORS/Milesight/AM319L/ChirpStack/uplink/converter.json +++ b/VENDORS/Milesight/AM319L/ChirpStack/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "ChirpStack uplink converter for Milesight AM319L", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": null, diff --git a/VENDORS/Milesight/AM319L/LORIOT/uplink/converter.json b/VENDORS/Milesight/AM319L/LORIOT/uplink/converter.json index 03549245..08228bb0 100644 --- a/VENDORS/Milesight/AM319L/LORIOT/uplink/converter.json +++ b/VENDORS/Milesight/AM319L/LORIOT/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "Uplink data converter for Loriot integration AM-319L", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": "// Decode an uplink message from a buffer\n// payload - array of bytes\n// metadata - key/value object\n\n/** Decoder **/\n\n// decode payload to string\nvar payloadStr = decodeToString(payload);\n\n// decode payload to JSON\n// var data = decodeToJson(payload);\n\nvar deviceName = 'Device A';\nvar deviceType = 'thermostat';\nvar customerName = 'Customer C';\nvar groupName = 'thermostat devices';\nvar manufacturer = 'Example corporation';\n// use assetName and assetType instead of deviceName and deviceType\n// to automatically create assets instead of devices.\n// var assetName = 'Asset A';\n// var assetType = 'building';\n\n// Result object with device/asset attributes/telemetry data\nvar result = {\n// Use deviceName and deviceType or assetName and assetType, but not both.\n deviceName: deviceName,\n deviceType: deviceType,\n// assetName: assetName,\n// assetType: assetType,\n// customerName: customerName,\n groupName: groupName,\n attributes: {\n model: 'Model A',\n serialNumber: 'SN111',\n integrationName: metadata['integrationName'],\n manufacturer: manufacturer\n },\n telemetry: {\n temperature: 42,\n humidity: 80,\n rawData: payloadStr\n }\n};\n\n/** Helper functions **/\n\nfunction decodeToString(payload) {\n return String.fromCharCode.apply(String, payload);\n}\n\nfunction decodeToJson(payload) {\n // covert payload to string.\n var str = decodeToString(payload);\n\n // parse string to JSON\n var data = JSON.parse(str);\n return data;\n}\n\nreturn result;", diff --git a/VENDORS/Milesight/AM319L/ThingsStackCommunity/uplink/converter.json b/VENDORS/Milesight/AM319L/ThingsStackCommunity/uplink/converter.json index b41f83b3..73deffd2 100644 --- a/VENDORS/Milesight/AM319L/ThingsStackCommunity/uplink/converter.json +++ b/VENDORS/Milesight/AM319L/ThingsStackCommunity/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "Uplink data converter for The Things Stack Community integration AM-319L", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": null, diff --git a/VENDORS/Milesight/AM319L/ThingsStackIndustries/uplink/converter.json b/VENDORS/Milesight/AM319L/ThingsStackIndustries/uplink/converter.json index 5c0af3c2..deb7021a 100644 --- a/VENDORS/Milesight/AM319L/ThingsStackIndustries/uplink/converter.json +++ b/VENDORS/Milesight/AM319L/ThingsStackIndustries/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "Uplink data converter for The Things Stack Industries integration AM-319L", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": null, diff --git a/VENDORS/Milesight/AT101/ChirpStack/uplink/converter.json b/VENDORS/Milesight/AT101/ChirpStack/uplink/converter.json index b3e829a9..9a7022ae 100644 --- a/VENDORS/Milesight/AT101/ChirpStack/uplink/converter.json +++ b/VENDORS/Milesight/AT101/ChirpStack/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "ChirpStack uplink converter for Milesight AT101", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": null, diff --git a/VENDORS/Milesight/AT101/LORIOT/uplink/converter.json b/VENDORS/Milesight/AT101/LORIOT/uplink/converter.json index 14ee81ff..b48a8e47 100644 --- a/VENDORS/Milesight/AT101/LORIOT/uplink/converter.json +++ b/VENDORS/Milesight/AT101/LORIOT/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "Uplink data converter for Loriot integration AT101", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": "// Decode an uplink message from a buffer\n// payload - array of bytes\n// metadata - key/value object\n\n/** Decoder **/\n\n// decode payload to string\nvar payloadStr = decodeToString(payload);\n\n// decode payload to JSON\n// var data = decodeToJson(payload);\n\nvar deviceName = 'Device A';\nvar deviceType = 'thermostat';\nvar customerName = 'Customer C';\nvar groupName = 'thermostat devices';\nvar manufacturer = 'Example corporation';\n// use assetName and assetType instead of deviceName and deviceType\n// to automatically create assets instead of devices.\n// var assetName = 'Asset A';\n// var assetType = 'building';\n\n// Result object with device/asset attributes/telemetry data\nvar result = {\n// Use deviceName and deviceType or assetName and assetType, but not both.\n deviceName: deviceName,\n deviceType: deviceType,\n// assetName: assetName,\n// assetType: assetType,\n// customerName: customerName,\n groupName: groupName,\n attributes: {\n model: 'Model A',\n serialNumber: 'SN111',\n integrationName: metadata['integrationName'],\n manufacturer: manufacturer\n },\n telemetry: {\n temperature: 42,\n humidity: 80,\n rawData: payloadStr\n }\n};\n\n/** Helper functions **/\n\nfunction decodeToString(payload) {\n return String.fromCharCode.apply(String, payload);\n}\n\nfunction decodeToJson(payload) {\n // covert payload to string.\n var str = decodeToString(payload);\n\n // parse string to JSON\n var data = JSON.parse(str);\n return data;\n}\n\nreturn result;", diff --git a/VENDORS/Milesight/AT101/ThingsStackCommunity/uplink/converter.json b/VENDORS/Milesight/AT101/ThingsStackCommunity/uplink/converter.json index 4b267b8b..d973178b 100644 --- a/VENDORS/Milesight/AT101/ThingsStackCommunity/uplink/converter.json +++ b/VENDORS/Milesight/AT101/ThingsStackCommunity/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "Uplink data converter for The Things Stack Community integration AT101", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": null, diff --git a/VENDORS/Milesight/AT101/ThingsStackIndustries/uplink/converter.json b/VENDORS/Milesight/AT101/ThingsStackIndustries/uplink/converter.json index 7c80936b..73015e45 100644 --- a/VENDORS/Milesight/AT101/ThingsStackIndustries/uplink/converter.json +++ b/VENDORS/Milesight/AT101/ThingsStackIndustries/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "Uplink data converter for The Things Stack Industries integration AT101", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": null, diff --git a/VENDORS/Milesight/CT101-CT103/ChirpStack/uplink/converter.json b/VENDORS/Milesight/CT101-CT103/ChirpStack/uplink/converter.json index fdc23306..e925431a 100644 --- a/VENDORS/Milesight/CT101-CT103/ChirpStack/uplink/converter.json +++ b/VENDORS/Milesight/CT101-CT103/ChirpStack/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "ChirpStack uplink converter for Milesight AT101/103", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": null, diff --git a/VENDORS/Milesight/CT101-CT103/LORIOT/uplink/converter.json b/VENDORS/Milesight/CT101-CT103/LORIOT/uplink/converter.json index 53d4b05b..c9ce64f0 100644 --- a/VENDORS/Milesight/CT101-CT103/LORIOT/uplink/converter.json +++ b/VENDORS/Milesight/CT101-CT103/LORIOT/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "Uplink data converter for Loriot integration СТ101/СТ103", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": "// Decode an uplink message from a buffer\n// payload - array of bytes\n// metadata - key/value object\n\n/** Decoder **/\n\n// decode payload to string\nvar payloadStr = decodeToString(payload);\n\n// decode payload to JSON\n// var data = decodeToJson(payload);\n\nvar deviceName = 'Device A';\nvar deviceType = 'thermostat';\nvar customerName = 'Customer C';\nvar groupName = 'thermostat devices';\nvar manufacturer = 'Example corporation';\n// use assetName and assetType instead of deviceName and deviceType\n// to automatically create assets instead of devices.\n// var assetName = 'Asset A';\n// var assetType = 'building';\n\n// Result object with device/asset attributes/telemetry data\nvar result = {\n// Use deviceName and deviceType or assetName and assetType, but not both.\n deviceName: deviceName,\n deviceType: deviceType,\n// assetName: assetName,\n// assetType: assetType,\n// customerName: customerName,\n groupName: groupName,\n attributes: {\n model: 'Model A',\n serialNumber: 'SN111',\n integrationName: metadata['integrationName'],\n manufacturer: manufacturer\n },\n telemetry: {\n temperature: 42,\n humidity: 80,\n rawData: payloadStr\n }\n};\n\n/** Helper functions **/\n\nfunction decodeToString(payload) {\n return String.fromCharCode.apply(String, payload);\n}\n\nfunction decodeToJson(payload) {\n // covert payload to string.\n var str = decodeToString(payload);\n\n // parse string to JSON\n var data = JSON.parse(str);\n return data;\n}\n\nreturn result;", diff --git a/VENDORS/Milesight/CT101-CT103/ThingsStackCommunity/uplink/converter.json b/VENDORS/Milesight/CT101-CT103/ThingsStackCommunity/uplink/converter.json index ccdeeb1d..15079714 100644 --- a/VENDORS/Milesight/CT101-CT103/ThingsStackCommunity/uplink/converter.json +++ b/VENDORS/Milesight/CT101-CT103/ThingsStackCommunity/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "Uplink data converter for The Things Stack Community integration CT101/CT103", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": null, diff --git a/VENDORS/Milesight/CT101-CT103/ThingsStackIndustries/uplink/converter.json b/VENDORS/Milesight/CT101-CT103/ThingsStackIndustries/uplink/converter.json index 11656095..0e7679c6 100644 --- a/VENDORS/Milesight/CT101-CT103/ThingsStackIndustries/uplink/converter.json +++ b/VENDORS/Milesight/CT101-CT103/ThingsStackIndustries/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "Uplink data converter for The Things Stack Industries integration CT101/CT103", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": null, diff --git a/VENDORS/Milesight/DS3604/ChirpStack/uplink/converter.json b/VENDORS/Milesight/DS3604/ChirpStack/uplink/converter.json index 4de4c7ab..969e72cf 100644 --- a/VENDORS/Milesight/DS3604/ChirpStack/uplink/converter.json +++ b/VENDORS/Milesight/DS3604/ChirpStack/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "ChirpStack uplink converter for Milesight DS3604", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": null, diff --git a/VENDORS/Milesight/DS3604/LORIOT/uplink/converter.json b/VENDORS/Milesight/DS3604/LORIOT/uplink/converter.json index 23af2269..b726608e 100644 --- a/VENDORS/Milesight/DS3604/LORIOT/uplink/converter.json +++ b/VENDORS/Milesight/DS3604/LORIOT/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "Uplink data converter for Loriot integration DS3604", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": "// Decode an uplink message from a buffer\n// payload - array of bytes\n// metadata - key/value object\n\n/** Decoder **/\n\n// decode payload to string\nvar payloadStr = decodeToString(payload);\n\n// decode payload to JSON\n// var data = decodeToJson(payload);\n\nvar deviceName = 'Device A';\nvar deviceType = 'thermostat';\nvar customerName = 'Customer C';\nvar groupName = 'thermostat devices';\nvar manufacturer = 'Example corporation';\n// use assetName and assetType instead of deviceName and deviceType\n// to automatically create assets instead of devices.\n// var assetName = 'Asset A';\n// var assetType = 'building';\n\n// Result object with device/asset attributes/telemetry data\nvar result = {\n// Use deviceName and deviceType or assetName and assetType, but not both.\n deviceName: deviceName,\n deviceType: deviceType,\n// assetName: assetName,\n// assetType: assetType,\n// customerName: customerName,\n groupName: groupName,\n attributes: {\n model: 'Model A',\n serialNumber: 'SN111',\n integrationName: metadata['integrationName'],\n manufacturer: manufacturer\n },\n telemetry: {\n temperature: 42,\n humidity: 80,\n rawData: payloadStr\n }\n};\n\n/** Helper functions **/\n\nfunction decodeToString(payload) {\n return String.fromCharCode.apply(String, payload);\n}\n\nfunction decodeToJson(payload) {\n // covert payload to string.\n var str = decodeToString(payload);\n\n // parse string to JSON\n var data = JSON.parse(str);\n return data;\n}\n\nreturn result;", diff --git a/VENDORS/Milesight/DS3604/ThingsStackCommunity/uplink/converter.json b/VENDORS/Milesight/DS3604/ThingsStackCommunity/uplink/converter.json index f0e71f4d..fae8bd29 100644 --- a/VENDORS/Milesight/DS3604/ThingsStackCommunity/uplink/converter.json +++ b/VENDORS/Milesight/DS3604/ThingsStackCommunity/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "Uplink data converter for The Things Stack Community integration DS3604", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": null, diff --git a/VENDORS/Milesight/DS3604/ThingsStackIndustries/uplink/converter.json b/VENDORS/Milesight/DS3604/ThingsStackIndustries/uplink/converter.json index b39b0775..ba2bc76e 100644 --- a/VENDORS/Milesight/DS3604/ThingsStackIndustries/uplink/converter.json +++ b/VENDORS/Milesight/DS3604/ThingsStackIndustries/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "Uplink data converter for The Things Stack Industries integration DS3604", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": null, diff --git a/VENDORS/Milesight/GS101/ChirpStack/uplink/converter.json b/VENDORS/Milesight/GS101/ChirpStack/uplink/converter.json index 57760df7..bec9f5c1 100644 --- a/VENDORS/Milesight/GS101/ChirpStack/uplink/converter.json +++ b/VENDORS/Milesight/GS101/ChirpStack/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "ChirpStack Uplink Decoder for GS101", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": null, diff --git a/VENDORS/Milesight/GS101/LORIOT/uplink/converter.json b/VENDORS/Milesight/GS101/LORIOT/uplink/converter.json index f6325103..85ab36ac 100644 --- a/VENDORS/Milesight/GS101/LORIOT/uplink/converter.json +++ b/VENDORS/Milesight/GS101/LORIOT/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "Loriot Uplink Decoder for GS101", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": "// Decode an uplink message from a buffer\n// payload - array of bytes\n// metadata - key/value object\n\n/** Decoder **/\n\n// decode payload to string\nvar payloadStr = decodeToString(payload);\n\n// decode payload to JSON\n// var data = decodeToJson(payload);\n\nvar deviceName = 'Device A';\nvar deviceType = 'thermostat';\nvar customerName = 'Customer C';\nvar groupName = 'thermostat devices';\nvar manufacturer = 'Example corporation';\n// use assetName and assetType instead of deviceName and deviceType\n// to automatically create assets instead of devices.\n// var assetName = 'Asset A';\n// var assetType = 'building';\n\n// Result object with device/asset attributes/telemetry data\nvar result = {\n// Use deviceName and deviceType or assetName and assetType, but not both.\n deviceName: deviceName,\n deviceType: deviceType,\n// assetName: assetName,\n// assetType: assetType,\n// customerName: customerName,\n groupName: groupName,\n attributes: {\n model: 'Model A',\n serialNumber: 'SN111',\n integrationName: metadata['integrationName'],\n manufacturer: manufacturer\n },\n telemetry: {\n temperature: 42,\n humidity: 80,\n rawData: payloadStr\n }\n};\n\n/** Helper functions **/\n\nfunction decodeToString(payload) {\n return String.fromCharCode.apply(String, payload);\n}\n\nfunction decodeToJson(payload) {\n // covert payload to string.\n var str = decodeToString(payload);\n\n // parse string to JSON\n var data = JSON.parse(str);\n return data;\n}\n\nreturn result;", diff --git a/VENDORS/Milesight/GS101/ThingsStackCommunity/uplink/converter.json b/VENDORS/Milesight/GS101/ThingsStackCommunity/uplink/converter.json index f88ec352..aab5a080 100644 --- a/VENDORS/Milesight/GS101/ThingsStackCommunity/uplink/converter.json +++ b/VENDORS/Milesight/GS101/ThingsStackCommunity/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "The Things Stack Community Uplink Decoder for GS101", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": null, diff --git a/VENDORS/Milesight/GS101/ThingsStackIndustries/uplink/converter.json b/VENDORS/Milesight/GS101/ThingsStackIndustries/uplink/converter.json index 9c468146..c2a5d10d 100644 --- a/VENDORS/Milesight/GS101/ThingsStackIndustries/uplink/converter.json +++ b/VENDORS/Milesight/GS101/ThingsStackIndustries/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "The Things Stack Industries Uplink Decoder for GS101", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": null, diff --git a/VENDORS/Milesight/GS301/ChirpStack/uplink/converter.json b/VENDORS/Milesight/GS301/ChirpStack/uplink/converter.json index 01fc4eaf..ccd7a8b7 100644 --- a/VENDORS/Milesight/GS301/ChirpStack/uplink/converter.json +++ b/VENDORS/Milesight/GS301/ChirpStack/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "ChirpStack Uplink Decoder for GS301", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": null, diff --git a/VENDORS/Milesight/GS301/LORIOT/uplink/converter.json b/VENDORS/Milesight/GS301/LORIOT/uplink/converter.json index 499a49de..bdc3cc55 100644 --- a/VENDORS/Milesight/GS301/LORIOT/uplink/converter.json +++ b/VENDORS/Milesight/GS301/LORIOT/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "Loriot Uplink Decoder for GS301", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": "// Decode an uplink message from a buffer\n// payload - array of bytes\n// metadata - key/value object\n\n/** Decoder **/\n\n// decode payload to string\nvar payloadStr = decodeToString(payload);\n\n// decode payload to JSON\n// var data = decodeToJson(payload);\n\nvar deviceName = 'Device A';\nvar deviceType = 'thermostat';\nvar customerName = 'Customer C';\nvar groupName = 'thermostat devices';\nvar manufacturer = 'Example corporation';\n// use assetName and assetType instead of deviceName and deviceType\n// to automatically create assets instead of devices.\n// var assetName = 'Asset A';\n// var assetType = 'building';\n\n// Result object with device/asset attributes/telemetry data\nvar result = {\n// Use deviceName and deviceType or assetName and assetType, but not both.\n deviceName: deviceName,\n deviceType: deviceType,\n// assetName: assetName,\n// assetType: assetType,\n// customerName: customerName,\n groupName: groupName,\n attributes: {\n model: 'Model A',\n serialNumber: 'SN111',\n integrationName: metadata['integrationName'],\n manufacturer: manufacturer\n },\n telemetry: {\n temperature: 42,\n humidity: 80,\n rawData: payloadStr\n }\n};\n\n/** Helper functions **/\n\nfunction decodeToString(payload) {\n return String.fromCharCode.apply(String, payload);\n}\n\nfunction decodeToJson(payload) {\n // covert payload to string.\n var str = decodeToString(payload);\n\n // parse string to JSON\n var data = JSON.parse(str);\n return data;\n}\n\nreturn result;", diff --git a/VENDORS/Milesight/GS301/ThingsStackCommunity/uplink/converter.json b/VENDORS/Milesight/GS301/ThingsStackCommunity/uplink/converter.json index b1fa4984..11f56c1d 100644 --- a/VENDORS/Milesight/GS301/ThingsStackCommunity/uplink/converter.json +++ b/VENDORS/Milesight/GS301/ThingsStackCommunity/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "The Things Stack Community Uplink Decoder for GS301", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": null, diff --git a/VENDORS/Milesight/GS301/ThingsStackIndustries/uplink/converter.json b/VENDORS/Milesight/GS301/ThingsStackIndustries/uplink/converter.json index a2d649a9..014fa5ea 100644 --- a/VENDORS/Milesight/GS301/ThingsStackIndustries/uplink/converter.json +++ b/VENDORS/Milesight/GS301/ThingsStackIndustries/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "The Things Stack Industries Uplink Decoder for GS301", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": null, diff --git a/VENDORS/Milesight/TS101/ChirpStack/uplink/converter.json b/VENDORS/Milesight/TS101/ChirpStack/uplink/converter.json index 7cb4babf..04c30602 100644 --- a/VENDORS/Milesight/TS101/ChirpStack/uplink/converter.json +++ b/VENDORS/Milesight/TS101/ChirpStack/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "ChirpStack Uplink Decoder for TS101", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": null, diff --git a/VENDORS/Milesight/TS101/LORIOT/uplink/converter.json b/VENDORS/Milesight/TS101/LORIOT/uplink/converter.json index 1c6c995d..102ab55c 100644 --- a/VENDORS/Milesight/TS101/LORIOT/uplink/converter.json +++ b/VENDORS/Milesight/TS101/LORIOT/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "Loriot Uplink Decoder for TS101", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": "// Decode an uplink message from a buffer\n// payload - array of bytes\n// metadata - key/value object\n\n/** Decoder **/\n\n// decode payload to string\nvar payloadStr = decodeToString(payload);\n\n// decode payload to JSON\n// var data = decodeToJson(payload);\n\nvar deviceName = 'Device A';\nvar deviceType = 'thermostat';\nvar customerName = 'Customer C';\nvar groupName = 'thermostat devices';\nvar manufacturer = 'Example corporation';\n// use assetName and assetType instead of deviceName and deviceType\n// to automatically create assets instead of devices.\n// var assetName = 'Asset A';\n// var assetType = 'building';\n\n// Result object with device/asset attributes/telemetry data\nvar result = {\n// Use deviceName and deviceType or assetName and assetType, but not both.\n deviceName: deviceName,\n deviceType: deviceType,\n// assetName: assetName,\n// assetType: assetType,\n// customerName: customerName,\n groupName: groupName,\n attributes: {\n model: 'Model A',\n serialNumber: 'SN111',\n integrationName: metadata['integrationName'],\n manufacturer: manufacturer\n },\n telemetry: {\n temperature: 42,\n humidity: 80,\n rawData: payloadStr\n }\n};\n\n/** Helper functions **/\n\nfunction decodeToString(payload) {\n return String.fromCharCode.apply(String, payload);\n}\n\nfunction decodeToJson(payload) {\n // covert payload to string.\n var str = decodeToString(payload);\n\n // parse string to JSON\n var data = JSON.parse(str);\n return data;\n}\n\nreturn result;", diff --git a/VENDORS/Milesight/TS101/ThingsStackCommunity/uplink/converter.json b/VENDORS/Milesight/TS101/ThingsStackCommunity/uplink/converter.json index b9031e26..2bbef0c8 100644 --- a/VENDORS/Milesight/TS101/ThingsStackCommunity/uplink/converter.json +++ b/VENDORS/Milesight/TS101/ThingsStackCommunity/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "The Things Stack Community Uplink Decoder for TS101", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": null, diff --git a/VENDORS/Milesight/TS101/ThingsStackIndustries/uplink/converter.json b/VENDORS/Milesight/TS101/ThingsStackIndustries/uplink/converter.json index d5c02473..60f93709 100644 --- a/VENDORS/Milesight/TS101/ThingsStackIndustries/uplink/converter.json +++ b/VENDORS/Milesight/TS101/ThingsStackIndustries/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "The Things Stack Industries Uplink Decoder for TS101", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": null, diff --git a/VENDORS/Milesight/VS133/ChirpStack/uplink/converter.json b/VENDORS/Milesight/VS133/ChirpStack/uplink/converter.json index b9e6ba94..92d59f4b 100644 --- a/VENDORS/Milesight/VS133/ChirpStack/uplink/converter.json +++ b/VENDORS/Milesight/VS133/ChirpStack/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "ChirpStack uplink converter for Milesight VS133", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": null, diff --git a/VENDORS/Milesight/WS202/ChirpStack/uplink/converter.json b/VENDORS/Milesight/WS202/ChirpStack/uplink/converter.json index bbc82b49..54f73b11 100644 --- a/VENDORS/Milesight/WS202/ChirpStack/uplink/converter.json +++ b/VENDORS/Milesight/WS202/ChirpStack/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "ChirpStack uplink converter for Milesight WS202", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": null, diff --git a/VENDORS/Milesight/WS302/ChirpStack/uplink/converter.json b/VENDORS/Milesight/WS302/ChirpStack/uplink/converter.json index 548cdf3f..13d44422 100644 --- a/VENDORS/Milesight/WS302/ChirpStack/uplink/converter.json +++ b/VENDORS/Milesight/WS302/ChirpStack/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "ChirpStack uplink converter for Milesight WS302", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": null, diff --git a/VENDORS/Milesight/WT201/ChirpStack/downlink/converter.json b/VENDORS/Milesight/WT201/ChirpStack/downlink/converter.json index 4a893e07..e870389e 100644 --- a/VENDORS/Milesight/WT201/ChirpStack/downlink/converter.json +++ b/VENDORS/Milesight/WT201/ChirpStack/downlink/converter.json @@ -1,9 +1,7 @@ { "name": "ChirpStack downlink converter for Milesight WT201", "type": "DOWNLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": null, diff --git a/VENDORS/Milesight/WT201/ChirpStack/uplink/converter.json b/VENDORS/Milesight/WT201/ChirpStack/uplink/converter.json index 4f8f0ad9..941f7e00 100644 --- a/VENDORS/Milesight/WT201/ChirpStack/uplink/converter.json +++ b/VENDORS/Milesight/WT201/ChirpStack/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "ChirpStack uplink converter for Milesight WT201", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": null, diff --git a/VENDORS/Netvox/R311A/ChirpStack/uplink/converter.json b/VENDORS/Netvox/R311A/ChirpStack/uplink/converter.json index 3a36773e..a88c18fc 100644 --- a/VENDORS/Netvox/R311A/ChirpStack/uplink/converter.json +++ b/VENDORS/Netvox/R311A/ChirpStack/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "ChirpStack Uplink Decoder for R311A", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": null, diff --git a/VENDORS/Netvox/R311A/LORIOT/uplink/converter.json b/VENDORS/Netvox/R311A/LORIOT/uplink/converter.json index a322e035..a8276106 100644 --- a/VENDORS/Netvox/R311A/LORIOT/uplink/converter.json +++ b/VENDORS/Netvox/R311A/LORIOT/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "Loriot Uplink Decoder for R311A", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": "// Decode an uplink message from a buffer\n// payload - array of bytes\n// metadata - key/value object\n\n/** Decoder **/\n\n// decode payload to string\nvar payloadStr = decodeToString(payload);\n\n// decode payload to JSON\n// var data = decodeToJson(payload);\n\nvar deviceName = 'Device A';\nvar deviceType = 'thermostat';\nvar customerName = 'Customer C';\nvar groupName = 'thermostat devices';\nvar manufacturer = 'Example corporation';\n// use assetName and assetType instead of deviceName and deviceType\n// to automatically create assets instead of devices.\n// var assetName = 'Asset A';\n// var assetType = 'building';\n\n// Result object with device/asset attributes/telemetry data\nvar result = {\n// Use deviceName and deviceType or assetName and assetType, but not both.\n deviceName: deviceName,\n deviceType: deviceType,\n// assetName: assetName,\n// assetType: assetType,\n// customerName: customerName,\n groupName: groupName,\n attributes: {\n model: 'Model A',\n serialNumber: 'SN111',\n integrationName: metadata['integrationName'],\n manufacturer: manufacturer\n },\n telemetry: {\n temperature: 42,\n humidity: 80,\n rawData: payloadStr\n }\n};\n\n/** Helper functions **/\n\nfunction decodeToString(payload) {\n return String.fromCharCode.apply(String, payload);\n}\n\nfunction decodeToJson(payload) {\n // covert payload to string.\n var str = decodeToString(payload);\n\n // parse string to JSON\n var data = JSON.parse(str);\n return data;\n}\n\nreturn result;", diff --git a/VENDORS/Netvox/R311A/ThingsStackCommunity/uplink/converter.json b/VENDORS/Netvox/R311A/ThingsStackCommunity/uplink/converter.json index c68c4dfc..05923394 100644 --- a/VENDORS/Netvox/R311A/ThingsStackCommunity/uplink/converter.json +++ b/VENDORS/Netvox/R311A/ThingsStackCommunity/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "The Things Stack Community Uplink Decoder for R311A", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": null, diff --git a/VENDORS/Netvox/R311A/ThingsStackIndustries/uplink/converter.json b/VENDORS/Netvox/R311A/ThingsStackIndustries/uplink/converter.json index 682945ad..d68a8426 100644 --- a/VENDORS/Netvox/R311A/ThingsStackIndustries/uplink/converter.json +++ b/VENDORS/Netvox/R311A/ThingsStackIndustries/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "The Things Stack Industries Uplink Decoder for R311A", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": null, diff --git a/VENDORS/Netvox/R718AB/ChirpStack/uplink/converter.json b/VENDORS/Netvox/R718AB/ChirpStack/uplink/converter.json index 0aea7e2b..d912cc2f 100644 --- a/VENDORS/Netvox/R718AB/ChirpStack/uplink/converter.json +++ b/VENDORS/Netvox/R718AB/ChirpStack/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "ChirpStack Uplink Decoder for R718AB", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": null, diff --git a/VENDORS/Netvox/R718AB/LORIOT/uplink/converter.json b/VENDORS/Netvox/R718AB/LORIOT/uplink/converter.json index a1556c60..88402cdd 100644 --- a/VENDORS/Netvox/R718AB/LORIOT/uplink/converter.json +++ b/VENDORS/Netvox/R718AB/LORIOT/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "Loriot Uplink Decoder for R718AB", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": "// Decode an uplink message from a buffer\n// payload - array of bytes\n// metadata - key/value object\n\n/** Decoder **/\n\n// decode payload to string\nvar payloadStr = decodeToString(payload);\n\n// decode payload to JSON\n// var data = decodeToJson(payload);\n\nvar deviceName = 'Device A';\nvar deviceType = 'thermostat';\nvar customerName = 'Customer C';\nvar groupName = 'thermostat devices';\nvar manufacturer = 'Example corporation';\n// use assetName and assetType instead of deviceName and deviceType\n// to automatically create assets instead of devices.\n// var assetName = 'Asset A';\n// var assetType = 'building';\n\n// Result object with device/asset attributes/telemetry data\nvar result = {\n// Use deviceName and deviceType or assetName and assetType, but not both.\n deviceName: deviceName,\n deviceType: deviceType,\n// assetName: assetName,\n// assetType: assetType,\n// customerName: customerName,\n groupName: groupName,\n attributes: {\n model: 'Model A',\n serialNumber: 'SN111',\n integrationName: metadata['integrationName'],\n manufacturer: manufacturer\n },\n telemetry: {\n temperature: 42,\n humidity: 80,\n rawData: payloadStr\n }\n};\n\n/** Helper functions **/\n\nfunction decodeToString(payload) {\n return String.fromCharCode.apply(String, payload);\n}\n\nfunction decodeToJson(payload) {\n // covert payload to string.\n var str = decodeToString(payload);\n\n // parse string to JSON\n var data = JSON.parse(str);\n return data;\n}\n\nreturn result;", diff --git a/VENDORS/Netvox/R718AB/ThingsStackCommunity/uplink/converter.json b/VENDORS/Netvox/R718AB/ThingsStackCommunity/uplink/converter.json index 33a00c0d..85d6af51 100644 --- a/VENDORS/Netvox/R718AB/ThingsStackCommunity/uplink/converter.json +++ b/VENDORS/Netvox/R718AB/ThingsStackCommunity/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "The Things Stack Community Uplink Decoder for R718AB", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": null, diff --git a/VENDORS/Netvox/R718AB/ThingsStackIndustries/uplink/converter.json b/VENDORS/Netvox/R718AB/ThingsStackIndustries/uplink/converter.json index 94f2e8eb..b84091c5 100644 --- a/VENDORS/Netvox/R718AB/ThingsStackIndustries/uplink/converter.json +++ b/VENDORS/Netvox/R718AB/ThingsStackIndustries/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "The Things Stack Industries Uplink Decoder for R718AB", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": null, diff --git a/VENDORS/Netvox/R718H/ChirpStack/uplink/converter.json b/VENDORS/Netvox/R718H/ChirpStack/uplink/converter.json index 308dcce4..03d2e622 100644 --- a/VENDORS/Netvox/R718H/ChirpStack/uplink/converter.json +++ b/VENDORS/Netvox/R718H/ChirpStack/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "ChirpStack Uplink Decoder for R718H", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": null, diff --git a/VENDORS/Netvox/R718H/LORIOT/uplink/converter.json b/VENDORS/Netvox/R718H/LORIOT/uplink/converter.json index bd1da6bf..8936acd3 100644 --- a/VENDORS/Netvox/R718H/LORIOT/uplink/converter.json +++ b/VENDORS/Netvox/R718H/LORIOT/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "Loriot Uplink Decoder for R718H", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": "// Decode an uplink message from a buffer\n// payload - array of bytes\n// metadata - key/value object\n\n/** Decoder **/\n\n// decode payload to string\nvar payloadStr = decodeToString(payload);\n\n// decode payload to JSON\n// var data = decodeToJson(payload);\n\nvar deviceName = 'Device A';\nvar deviceType = 'thermostat';\nvar customerName = 'Customer C';\nvar groupName = 'thermostat devices';\nvar manufacturer = 'Example corporation';\n// use assetName and assetType instead of deviceName and deviceType\n// to automatically create assets instead of devices.\n// var assetName = 'Asset A';\n// var assetType = 'building';\n\n// Result object with device/asset attributes/telemetry data\nvar result = {\n// Use deviceName and deviceType or assetName and assetType, but not both.\n deviceName: deviceName,\n deviceType: deviceType,\n// assetName: assetName,\n// assetType: assetType,\n// customerName: customerName,\n groupName: groupName,\n attributes: {\n model: 'Model A',\n serialNumber: 'SN111',\n integrationName: metadata['integrationName'],\n manufacturer: manufacturer\n },\n telemetry: {\n temperature: 42,\n humidity: 80,\n rawData: payloadStr\n }\n};\n\n/** Helper functions **/\n\nfunction decodeToString(payload) {\n return String.fromCharCode.apply(String, payload);\n}\n\nfunction decodeToJson(payload) {\n // covert payload to string.\n var str = decodeToString(payload);\n\n // parse string to JSON\n var data = JSON.parse(str);\n return data;\n}\n\nreturn result;", diff --git a/VENDORS/Netvox/R718H/ThingsStackCommunity/uplink/converter.json b/VENDORS/Netvox/R718H/ThingsStackCommunity/uplink/converter.json index c14bacac..372c9e17 100644 --- a/VENDORS/Netvox/R718H/ThingsStackCommunity/uplink/converter.json +++ b/VENDORS/Netvox/R718H/ThingsStackCommunity/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "The Things Stack Community Uplink Decoder for R718H", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": null, diff --git a/VENDORS/Netvox/R718H/ThingsStackIndustries/uplink/converter.json b/VENDORS/Netvox/R718H/ThingsStackIndustries/uplink/converter.json index da1a4051..79a65490 100644 --- a/VENDORS/Netvox/R718H/ThingsStackIndustries/uplink/converter.json +++ b/VENDORS/Netvox/R718H/ThingsStackIndustries/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "The Things Stack Industries Uplink Decoder for R718H", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": null, diff --git a/VENDORS/Netvox/R718KA/ChirpStack/uplink/converter.json b/VENDORS/Netvox/R718KA/ChirpStack/uplink/converter.json index f1481c74..7ee3d543 100644 --- a/VENDORS/Netvox/R718KA/ChirpStack/uplink/converter.json +++ b/VENDORS/Netvox/R718KA/ChirpStack/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "ChirpStack Uplink Decoder for R718KA", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": null, diff --git a/VENDORS/Netvox/R718KA/LORIOT/uplink/converter.json b/VENDORS/Netvox/R718KA/LORIOT/uplink/converter.json index f73bdd13..d6d057b4 100644 --- a/VENDORS/Netvox/R718KA/LORIOT/uplink/converter.json +++ b/VENDORS/Netvox/R718KA/LORIOT/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "Loriot Uplink Decoder for R718KA", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": "// Decode an uplink message from a buffer\n// payload - array of bytes\n// metadata - key/value object\n\n/** Decoder **/\n\n// decode payload to string\nvar payloadStr = decodeToString(payload);\n\n// decode payload to JSON\n// var data = decodeToJson(payload);\n\nvar deviceName = 'Device A';\nvar deviceType = 'thermostat';\nvar customerName = 'Customer C';\nvar groupName = 'thermostat devices';\nvar manufacturer = 'Example corporation';\n// use assetName and assetType instead of deviceName and deviceType\n// to automatically create assets instead of devices.\n// var assetName = 'Asset A';\n// var assetType = 'building';\n\n// Result object with device/asset attributes/telemetry data\nvar result = {\n// Use deviceName and deviceType or assetName and assetType, but not both.\n deviceName: deviceName,\n deviceType: deviceType,\n// assetName: assetName,\n// assetType: assetType,\n// customerName: customerName,\n groupName: groupName,\n attributes: {\n model: 'Model A',\n serialNumber: 'SN111',\n integrationName: metadata['integrationName'],\n manufacturer: manufacturer\n },\n telemetry: {\n temperature: 42,\n humidity: 80,\n rawData: payloadStr\n }\n};\n\n/** Helper functions **/\n\nfunction decodeToString(payload) {\n return String.fromCharCode.apply(String, payload);\n}\n\nfunction decodeToJson(payload) {\n // covert payload to string.\n var str = decodeToString(payload);\n\n // parse string to JSON\n var data = JSON.parse(str);\n return data;\n}\n\nreturn result;", diff --git a/VENDORS/Netvox/R718KA/ThingsStackCommunity/uplink/converter.json b/VENDORS/Netvox/R718KA/ThingsStackCommunity/uplink/converter.json index 41141b4d..a2935624 100644 --- a/VENDORS/Netvox/R718KA/ThingsStackCommunity/uplink/converter.json +++ b/VENDORS/Netvox/R718KA/ThingsStackCommunity/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "The Things Stack Community Uplink Decoder for R718KA", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": null, diff --git a/VENDORS/Netvox/R718KA/ThingsStackIndustries/uplink/converter.json b/VENDORS/Netvox/R718KA/ThingsStackIndustries/uplink/converter.json index f93e5022..1dd02ef9 100644 --- a/VENDORS/Netvox/R718KA/ThingsStackIndustries/uplink/converter.json +++ b/VENDORS/Netvox/R718KA/ThingsStackIndustries/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "The Things Stack Industries Uplink Decoder for R718KA", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": null, diff --git a/VENDORS/Netvox/R718N3/ThingsStackIndustries/uplink/converter.json b/VENDORS/Netvox/R718N3/ThingsStackIndustries/uplink/converter.json index 99abf117..b7fa624e 100644 --- a/VENDORS/Netvox/R718N3/ThingsStackIndustries/uplink/converter.json +++ b/VENDORS/Netvox/R718N3/ThingsStackIndustries/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "ThingsStackIndustries uplink converter for Netvox R718N3", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": null, diff --git a/VENDORS/Netvox/RA0715/ChirpStack/uplink/converter.json b/VENDORS/Netvox/RA0715/ChirpStack/uplink/converter.json index 93fd6dc3..14df6286 100644 --- a/VENDORS/Netvox/RA0715/ChirpStack/uplink/converter.json +++ b/VENDORS/Netvox/RA0715/ChirpStack/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "ChirpStack Uplink Decoder for RA0715", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": null, diff --git a/VENDORS/Netvox/RA0715/LORIOT/uplink/converter.json b/VENDORS/Netvox/RA0715/LORIOT/uplink/converter.json index 378a7132..bb1684e2 100644 --- a/VENDORS/Netvox/RA0715/LORIOT/uplink/converter.json +++ b/VENDORS/Netvox/RA0715/LORIOT/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "Loriot Uplink Decoder for RA0715", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": "// Decode an uplink message from a buffer\n// payload - array of bytes\n// metadata - key/value object\n\n/** Decoder **/\n\n// decode payload to string\nvar payloadStr = decodeToString(payload);\n\n// decode payload to JSON\n// var data = decodeToJson(payload);\n\nvar deviceName = 'Device A';\nvar deviceType = 'thermostat';\nvar customerName = 'Customer C';\nvar groupName = 'thermostat devices';\nvar manufacturer = 'Example corporation';\n// use assetName and assetType instead of deviceName and deviceType\n// to automatically create assets instead of devices.\n// var assetName = 'Asset A';\n// var assetType = 'building';\n\n// Result object with device/asset attributes/telemetry data\nvar result = {\n// Use deviceName and deviceType or assetName and assetType, but not both.\n deviceName: deviceName,\n deviceType: deviceType,\n// assetName: assetName,\n// assetType: assetType,\n// customerName: customerName,\n groupName: groupName,\n attributes: {\n model: 'Model A',\n serialNumber: 'SN111',\n integrationName: metadata['integrationName'],\n manufacturer: manufacturer\n },\n telemetry: {\n temperature: 42,\n humidity: 80,\n rawData: payloadStr\n }\n};\n\n/** Helper functions **/\n\nfunction decodeToString(payload) {\n return String.fromCharCode.apply(String, payload);\n}\n\nfunction decodeToJson(payload) {\n // covert payload to string.\n var str = decodeToString(payload);\n\n // parse string to JSON\n var data = JSON.parse(str);\n return data;\n}\n\nreturn result;", diff --git a/VENDORS/Netvox/RA0715/ThingsStackCommunity/uplink/converter.json b/VENDORS/Netvox/RA0715/ThingsStackCommunity/uplink/converter.json index 466730d6..2df14c0a 100644 --- a/VENDORS/Netvox/RA0715/ThingsStackCommunity/uplink/converter.json +++ b/VENDORS/Netvox/RA0715/ThingsStackCommunity/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "The Things Stack Community Uplink Decoder for RA0715", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": null, diff --git a/VENDORS/Netvox/RA0715/ThingsStackIndustries/uplink/converter.json b/VENDORS/Netvox/RA0715/ThingsStackIndustries/uplink/converter.json index d3e621f1..1d0323b1 100644 --- a/VENDORS/Netvox/RA0715/ThingsStackIndustries/uplink/converter.json +++ b/VENDORS/Netvox/RA0715/ThingsStackIndustries/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "The Things Stack Industries Uplink Decoder for RA0715", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": null, diff --git a/VENDORS/Netvox/RA0723/ChirpStack/uplink/converter.json b/VENDORS/Netvox/RA0723/ChirpStack/uplink/converter.json index 5d4d954b..623573e5 100644 --- a/VENDORS/Netvox/RA0723/ChirpStack/uplink/converter.json +++ b/VENDORS/Netvox/RA0723/ChirpStack/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "ChirpStack Uplink Decoder for RA0723", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": null, diff --git a/VENDORS/Netvox/RA0723/LORIOT/uplink/converter.json b/VENDORS/Netvox/RA0723/LORIOT/uplink/converter.json index 9af9685e..09de0ad7 100644 --- a/VENDORS/Netvox/RA0723/LORIOT/uplink/converter.json +++ b/VENDORS/Netvox/RA0723/LORIOT/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "Loriot Uplink Decoder for RA0723", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": "// Decode an uplink message from a buffer\n// payload - array of bytes\n// metadata - key/value object\n\n/** Decoder **/\n\n// decode payload to string\nvar payloadStr = decodeToString(payload);\n\n// decode payload to JSON\n// var data = decodeToJson(payload);\n\nvar deviceName = 'Device A';\nvar deviceType = 'thermostat';\nvar customerName = 'Customer C';\nvar groupName = 'thermostat devices';\nvar manufacturer = 'Example corporation';\n// use assetName and assetType instead of deviceName and deviceType\n// to automatically create assets instead of devices.\n// var assetName = 'Asset A';\n// var assetType = 'building';\n\n// Result object with device/asset attributes/telemetry data\nvar result = {\n// Use deviceName and deviceType or assetName and assetType, but not both.\n deviceName: deviceName,\n deviceType: deviceType,\n// assetName: assetName,\n// assetType: assetType,\n// customerName: customerName,\n groupName: groupName,\n attributes: {\n model: 'Model A',\n serialNumber: 'SN111',\n integrationName: metadata['integrationName'],\n manufacturer: manufacturer\n },\n telemetry: {\n temperature: 42,\n humidity: 80,\n rawData: payloadStr\n }\n};\n\n/** Helper functions **/\n\nfunction decodeToString(payload) {\n return String.fromCharCode.apply(String, payload);\n}\n\nfunction decodeToJson(payload) {\n // covert payload to string.\n var str = decodeToString(payload);\n\n // parse string to JSON\n var data = JSON.parse(str);\n return data;\n}\n\nreturn result;", diff --git a/VENDORS/Netvox/RA0723/ThingsStackCommunity/uplink/converter.json b/VENDORS/Netvox/RA0723/ThingsStackCommunity/uplink/converter.json index 1d608ab3..dfd2bdef 100644 --- a/VENDORS/Netvox/RA0723/ThingsStackCommunity/uplink/converter.json +++ b/VENDORS/Netvox/RA0723/ThingsStackCommunity/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "The Things Stack Community Uplink Decoder for RA0723", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": null, diff --git a/VENDORS/Netvox/RA0723/ThingsStackIndustries/uplink/converter.json b/VENDORS/Netvox/RA0723/ThingsStackIndustries/uplink/converter.json index 3f7587a1..1e6ad07d 100644 --- a/VENDORS/Netvox/RA0723/ThingsStackIndustries/uplink/converter.json +++ b/VENDORS/Netvox/RA0723/ThingsStackIndustries/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "The Things Stack Industries Uplink Decoder for RA0723", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": null, diff --git a/VENDORS/Nwave/G4_NCC_FM/ChirpStack/uplink/converter.json b/VENDORS/Nwave/G4_NCC_FM/ChirpStack/uplink/converter.json index 097b069d..f8b07fd1 100644 --- a/VENDORS/Nwave/G4_NCC_FM/ChirpStack/uplink/converter.json +++ b/VENDORS/Nwave/G4_NCC_FM/ChirpStack/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "ChirpStack Uplink Decoder for G4 car counter sensor - Flush Mount", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": null, diff --git a/VENDORS/Nwave/G4_NCC_FM/LORIOT/uplink/converter.json b/VENDORS/Nwave/G4_NCC_FM/LORIOT/uplink/converter.json index 78af1c1c..4244daf0 100644 --- a/VENDORS/Nwave/G4_NCC_FM/LORIOT/uplink/converter.json +++ b/VENDORS/Nwave/G4_NCC_FM/LORIOT/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "Loriot Uplink Decoder for G4 car counter sensor - Flush Mount", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": "// Decode an uplink message from a buffer\n// payload - array of bytes\n// metadata - key/value object\n\n/** Decoder **/\n\n// decode payload to string\nvar payloadStr = decodeToString(payload);\n\n// decode payload to JSON\n// var data = decodeToJson(payload);\n\nvar deviceName = 'Device A';\nvar deviceType = 'thermostat';\nvar customerName = 'Customer C';\nvar groupName = 'thermostat devices';\nvar manufacturer = 'Example corporation';\n// use assetName and assetType instead of deviceName and deviceType\n// to automatically create assets instead of devices.\n// var assetName = 'Asset A';\n// var assetType = 'building';\n\n// Result object with device/asset attributes/telemetry data\nvar result = {\n// Use deviceName and deviceType or assetName and assetType, but not both.\n deviceName: deviceName,\n deviceType: deviceType,\n// assetName: assetName,\n// assetType: assetType,\n// customerName: customerName,\n groupName: groupName,\n attributes: {\n model: 'Model A',\n serialNumber: 'SN111',\n integrationName: metadata['integrationName'],\n manufacturer: manufacturer\n },\n telemetry: {\n temperature: 42,\n humidity: 80,\n rawData: payloadStr\n }\n};\n\n/** Helper functions **/\n\nfunction decodeToString(payload) {\n return String.fromCharCode.apply(String, payload);\n}\n\nfunction decodeToJson(payload) {\n // covert payload to string.\n var str = decodeToString(payload);\n\n // parse string to JSON\n var data = JSON.parse(str);\n return data;\n}\n\nreturn result;", diff --git a/VENDORS/Nwave/G4_NCC_FM/ThingsStackCommunity/uplink/converter.json b/VENDORS/Nwave/G4_NCC_FM/ThingsStackCommunity/uplink/converter.json index 5c89ba99..88a681ce 100644 --- a/VENDORS/Nwave/G4_NCC_FM/ThingsStackCommunity/uplink/converter.json +++ b/VENDORS/Nwave/G4_NCC_FM/ThingsStackCommunity/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "The Things Stack Community Uplink Decoder for G4 car counter sensor - Flush Mount", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": null, diff --git a/VENDORS/Nwave/G4_NCC_FM/ThingsStackIndustries/uplink/converter.json b/VENDORS/Nwave/G4_NCC_FM/ThingsStackIndustries/uplink/converter.json index 683e8bd5..728af418 100644 --- a/VENDORS/Nwave/G4_NCC_FM/ThingsStackIndustries/uplink/converter.json +++ b/VENDORS/Nwave/G4_NCC_FM/ThingsStackIndustries/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "The Things Stack Industries Uplink Decoder for G4 car counter sensor - Flush Mount", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": null, diff --git a/VENDORS/Nwave/G4_NCC_SM/ChirpStack/uplink/converter.json b/VENDORS/Nwave/G4_NCC_SM/ChirpStack/uplink/converter.json index bf730a8d..cc5b07b9 100644 --- a/VENDORS/Nwave/G4_NCC_SM/ChirpStack/uplink/converter.json +++ b/VENDORS/Nwave/G4_NCC_SM/ChirpStack/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "ChirpStack Uplink Decoder for G4 car counter sensor - Surface Mount", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": null, diff --git a/VENDORS/Nwave/G4_NCC_SM/LORIOT/uplink/converter.json b/VENDORS/Nwave/G4_NCC_SM/LORIOT/uplink/converter.json index ee205195..600c3c69 100644 --- a/VENDORS/Nwave/G4_NCC_SM/LORIOT/uplink/converter.json +++ b/VENDORS/Nwave/G4_NCC_SM/LORIOT/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "Loriot Uplink Decoder for G4 car counter sensor - Surface Mount", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": "// Decode an uplink message from a buffer\n// payload - array of bytes\n// metadata - key/value object\n\n/** Decoder **/\n\n// decode payload to string\nvar payloadStr = decodeToString(payload);\n\n// decode payload to JSON\n// var data = decodeToJson(payload);\n\nvar deviceName = 'Device A';\nvar deviceType = 'thermostat';\nvar customerName = 'Customer C';\nvar groupName = 'thermostat devices';\nvar manufacturer = 'Example corporation';\n// use assetName and assetType instead of deviceName and deviceType\n// to automatically create assets instead of devices.\n// var assetName = 'Asset A';\n// var assetType = 'building';\n\n// Result object with device/asset attributes/telemetry data\nvar result = {\n// Use deviceName and deviceType or assetName and assetType, but not both.\n deviceName: deviceName,\n deviceType: deviceType,\n// assetName: assetName,\n// assetType: assetType,\n// customerName: customerName,\n groupName: groupName,\n attributes: {\n model: 'Model A',\n serialNumber: 'SN111',\n integrationName: metadata['integrationName'],\n manufacturer: manufacturer\n },\n telemetry: {\n temperature: 42,\n humidity: 80,\n rawData: payloadStr\n }\n};\n\n/** Helper functions **/\n\nfunction decodeToString(payload) {\n return String.fromCharCode.apply(String, payload);\n}\n\nfunction decodeToJson(payload) {\n // covert payload to string.\n var str = decodeToString(payload);\n\n // parse string to JSON\n var data = JSON.parse(str);\n return data;\n}\n\nreturn result;", diff --git a/VENDORS/Nwave/G4_NCC_SM/ThingsStackCommunity/uplink/converter.json b/VENDORS/Nwave/G4_NCC_SM/ThingsStackCommunity/uplink/converter.json index a74d4fce..2cad9f78 100644 --- a/VENDORS/Nwave/G4_NCC_SM/ThingsStackCommunity/uplink/converter.json +++ b/VENDORS/Nwave/G4_NCC_SM/ThingsStackCommunity/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "The Things Stack Community Uplink Decoder for G4 car counter sensor - Surface Mount", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": null, diff --git a/VENDORS/Nwave/G4_NCC_SM/ThingsStackIndustries/uplink/converter.json b/VENDORS/Nwave/G4_NCC_SM/ThingsStackIndustries/uplink/converter.json index a4d8ad2b..e4005c58 100644 --- a/VENDORS/Nwave/G4_NCC_SM/ThingsStackIndustries/uplink/converter.json +++ b/VENDORS/Nwave/G4_NCC_SM/ThingsStackIndustries/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "The Things Stack Industries Uplink Decoder for G4 car counter sensor - Surface Mount", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": null, diff --git a/VENDORS/Nwave/G4_NPS_FM/ChirpStack/uplink/converter.json b/VENDORS/Nwave/G4_NPS_FM/ChirpStack/uplink/converter.json index d9091f9d..0a6c0805 100644 --- a/VENDORS/Nwave/G4_NPS_FM/ChirpStack/uplink/converter.json +++ b/VENDORS/Nwave/G4_NPS_FM/ChirpStack/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "ChirpStack Uplink Decoder for G4 parking sensor - Flush Mount", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": null, diff --git a/VENDORS/Nwave/G4_NPS_FM/LORIOT/uplink/converter.json b/VENDORS/Nwave/G4_NPS_FM/LORIOT/uplink/converter.json index f5ae483f..8782aa30 100644 --- a/VENDORS/Nwave/G4_NPS_FM/LORIOT/uplink/converter.json +++ b/VENDORS/Nwave/G4_NPS_FM/LORIOT/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "Loriot Uplink Decoder for G4 parking sensor - Flush Mount", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": "// Decode an uplink message from a buffer\n// payload - array of bytes\n// metadata - key/value object\n\n/** Decoder **/\n\n// decode payload to string\nvar payloadStr = decodeToString(payload);\n\n// decode payload to JSON\n// var data = decodeToJson(payload);\n\nvar deviceName = 'Device A';\nvar deviceType = 'thermostat';\nvar customerName = 'Customer C';\nvar groupName = 'thermostat devices';\nvar manufacturer = 'Example corporation';\n// use assetName and assetType instead of deviceName and deviceType\n// to automatically create assets instead of devices.\n// var assetName = 'Asset A';\n// var assetType = 'building';\n\n// Result object with device/asset attributes/telemetry data\nvar result = {\n// Use deviceName and deviceType or assetName and assetType, but not both.\n deviceName: deviceName,\n deviceType: deviceType,\n// assetName: assetName,\n// assetType: assetType,\n// customerName: customerName,\n groupName: groupName,\n attributes: {\n model: 'Model A',\n serialNumber: 'SN111',\n integrationName: metadata['integrationName'],\n manufacturer: manufacturer\n },\n telemetry: {\n temperature: 42,\n humidity: 80,\n rawData: payloadStr\n }\n};\n\n/** Helper functions **/\n\nfunction decodeToString(payload) {\n return String.fromCharCode.apply(String, payload);\n}\n\nfunction decodeToJson(payload) {\n // covert payload to string.\n var str = decodeToString(payload);\n\n // parse string to JSON\n var data = JSON.parse(str);\n return data;\n}\n\nreturn result;", diff --git a/VENDORS/Nwave/G4_NPS_FM/ThingsStackCommunity/uplink/converter.json b/VENDORS/Nwave/G4_NPS_FM/ThingsStackCommunity/uplink/converter.json index 241b5453..bf0dce88 100644 --- a/VENDORS/Nwave/G4_NPS_FM/ThingsStackCommunity/uplink/converter.json +++ b/VENDORS/Nwave/G4_NPS_FM/ThingsStackCommunity/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "The Things Stack Community Uplink Decoder for G4 parking sensor - Flush Mount", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": null, diff --git a/VENDORS/Nwave/G4_NPS_FM/ThingsStackIndustries/uplink/converter.json b/VENDORS/Nwave/G4_NPS_FM/ThingsStackIndustries/uplink/converter.json index 215e231d..82c3d10a 100644 --- a/VENDORS/Nwave/G4_NPS_FM/ThingsStackIndustries/uplink/converter.json +++ b/VENDORS/Nwave/G4_NPS_FM/ThingsStackIndustries/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "The Things Stack Industries Uplink Decoder for G4 parking sensor - Flush Mount", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": null, diff --git a/VENDORS/Nwave/G4_NPS_SM/ChirpStack/uplink/converter.json b/VENDORS/Nwave/G4_NPS_SM/ChirpStack/uplink/converter.json index 962b2cb2..e66d9a86 100644 --- a/VENDORS/Nwave/G4_NPS_SM/ChirpStack/uplink/converter.json +++ b/VENDORS/Nwave/G4_NPS_SM/ChirpStack/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "ChirpStack Uplink Decoder for G4 parking sensor - Surface Mount", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": null, diff --git a/VENDORS/Nwave/G4_NPS_SM/LORIOT/uplink/converter.json b/VENDORS/Nwave/G4_NPS_SM/LORIOT/uplink/converter.json index 142a3889..f48248b3 100644 --- a/VENDORS/Nwave/G4_NPS_SM/LORIOT/uplink/converter.json +++ b/VENDORS/Nwave/G4_NPS_SM/LORIOT/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "Loriot Uplink Decoder for G4 parking sensor - Surface Mount", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": "// Decode an uplink message from a buffer\n// payload - array of bytes\n// metadata - key/value object\n\n/** Decoder **/\n\n// decode payload to string\nvar payloadStr = decodeToString(payload);\n\n// decode payload to JSON\n// var data = decodeToJson(payload);\n\nvar deviceName = 'Device A';\nvar deviceType = 'thermostat';\nvar customerName = 'Customer C';\nvar groupName = 'thermostat devices';\nvar manufacturer = 'Example corporation';\n// use assetName and assetType instead of deviceName and deviceType\n// to automatically create assets instead of devices.\n// var assetName = 'Asset A';\n// var assetType = 'building';\n\n// Result object with device/asset attributes/telemetry data\nvar result = {\n// Use deviceName and deviceType or assetName and assetType, but not both.\n deviceName: deviceName,\n deviceType: deviceType,\n// assetName: assetName,\n// assetType: assetType,\n// customerName: customerName,\n groupName: groupName,\n attributes: {\n model: 'Model A',\n serialNumber: 'SN111',\n integrationName: metadata['integrationName'],\n manufacturer: manufacturer\n },\n telemetry: {\n temperature: 42,\n humidity: 80,\n rawData: payloadStr\n }\n};\n\n/** Helper functions **/\n\nfunction decodeToString(payload) {\n return String.fromCharCode.apply(String, payload);\n}\n\nfunction decodeToJson(payload) {\n // covert payload to string.\n var str = decodeToString(payload);\n\n // parse string to JSON\n var data = JSON.parse(str);\n return data;\n}\n\nreturn result;", diff --git a/VENDORS/Nwave/G4_NPS_SM/ThingsStackCommunity/uplink/converter.json b/VENDORS/Nwave/G4_NPS_SM/ThingsStackCommunity/uplink/converter.json index 74fdba98..991b5b8c 100644 --- a/VENDORS/Nwave/G4_NPS_SM/ThingsStackCommunity/uplink/converter.json +++ b/VENDORS/Nwave/G4_NPS_SM/ThingsStackCommunity/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "The Things Stack Community Uplink Decoder for G4 parking sensor - Surface Mount", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": null, diff --git a/VENDORS/Nwave/G4_NPS_SM/ThingsStackIndustries/uplink/converter.json b/VENDORS/Nwave/G4_NPS_SM/ThingsStackIndustries/uplink/converter.json index 403023f3..0e1c8fb4 100644 --- a/VENDORS/Nwave/G4_NPS_SM/ThingsStackIndustries/uplink/converter.json +++ b/VENDORS/Nwave/G4_NPS_SM/ThingsStackIndustries/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "The Things Stack Industries Uplink Decoder for G4 parking sensor - Surface Mount", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": null, diff --git a/VENDORS/SensiEDGE/SensiLora2_0/ChirpStack/uplink/converter.json b/VENDORS/SensiEDGE/SensiLora2_0/ChirpStack/uplink/converter.json index e7e82dc9..4056717d 100644 --- a/VENDORS/SensiEDGE/SensiLora2_0/ChirpStack/uplink/converter.json +++ b/VENDORS/SensiEDGE/SensiLora2_0/ChirpStack/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "ChirpStack Uplink Decoder for SensiLora2.0", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": null, diff --git a/VENDORS/SensiEDGE/SensiLora2_0/LORIOT/uplink/converter.json b/VENDORS/SensiEDGE/SensiLora2_0/LORIOT/uplink/converter.json index 0e6ff19c..e9b52e70 100644 --- a/VENDORS/SensiEDGE/SensiLora2_0/LORIOT/uplink/converter.json +++ b/VENDORS/SensiEDGE/SensiLora2_0/LORIOT/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "Loriot Uplink Decoder for SensiLora2.0", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": "// Decode an uplink message from a buffer\n// payload - array of bytes\n// metadata - key/value object\n\n/** Decoder **/\n\n// decode payload to string\nvar payloadStr = decodeToString(payload);\n\n// decode payload to JSON\n// var data = decodeToJson(payload);\n\nvar deviceName = 'Device A';\nvar deviceType = 'thermostat';\nvar customerName = 'Customer C';\nvar groupName = 'thermostat devices';\nvar manufacturer = 'Example corporation';\n// use assetName and assetType instead of deviceName and deviceType\n// to automatically create assets instead of devices.\n// var assetName = 'Asset A';\n// var assetType = 'building';\n\n// Result object with device/asset attributes/telemetry data\nvar result = {\n// Use deviceName and deviceType or assetName and assetType, but not both.\n deviceName: deviceName,\n deviceType: deviceType,\n// assetName: assetName,\n// assetType: assetType,\n// customerName: customerName,\n groupName: groupName,\n attributes: {\n model: 'Model A',\n serialNumber: 'SN111',\n integrationName: metadata['integrationName'],\n manufacturer: manufacturer\n },\n telemetry: {\n temperature: 42,\n humidity: 80,\n rawData: payloadStr\n }\n};\n\n/** Helper functions **/\n\nfunction decodeToString(payload) {\n return String.fromCharCode.apply(String, payload);\n}\n\nfunction decodeToJson(payload) {\n // covert payload to string.\n var str = decodeToString(payload);\n\n // parse string to JSON\n var data = JSON.parse(str);\n return data;\n}\n\nreturn result;", diff --git a/VENDORS/SensiEDGE/SensiLora2_0/ThingsStackCommunity/uplink/converter.json b/VENDORS/SensiEDGE/SensiLora2_0/ThingsStackCommunity/uplink/converter.json index 95576099..942d5d63 100644 --- a/VENDORS/SensiEDGE/SensiLora2_0/ThingsStackCommunity/uplink/converter.json +++ b/VENDORS/SensiEDGE/SensiLora2_0/ThingsStackCommunity/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "The Things Stack Community Uplink Decoder for SensiLora2.0", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": null, diff --git a/VENDORS/SensiEDGE/SensiLora2_0/ThingsStackIndustries/uplink/converter.json b/VENDORS/SensiEDGE/SensiLora2_0/ThingsStackIndustries/uplink/converter.json index b1e8baa7..853d40bd 100644 --- a/VENDORS/SensiEDGE/SensiLora2_0/ThingsStackIndustries/uplink/converter.json +++ b/VENDORS/SensiEDGE/SensiLora2_0/ThingsStackIndustries/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "The Things Stack Industries Uplink Decoder for SensiLora2.0", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": null, diff --git a/VENDORS/Yobiiq/EM2101/ChirpStack/downlink/converter.json b/VENDORS/Yobiiq/EM2101/ChirpStack/downlink/converter.json index c8573de9..156b9fd2 100644 --- a/VENDORS/Yobiiq/EM2101/ChirpStack/downlink/converter.json +++ b/VENDORS/Yobiiq/EM2101/ChirpStack/downlink/converter.json @@ -1,9 +1,7 @@ { "name": "ChirpStack Downlink data converter for Yobiiq EM2101", "type": "DOWNLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": "// Decode an uplink message from a buffer\n// payload - array of bytes\n// metadata - key/value object\n\n/** Decoder **/\n\n// decode payload to string\nvar payloadStr = decodeToString(payload);\n\n// decode payload to JSON\n// var data = decodeToJson(payload);\n\nvar deviceName = 'Device A';\nvar deviceType = 'thermostat';\nvar customerName = 'Customer C';\nvar groupName = 'thermostat devices';\nvar manufacturer = 'Example corporation';\n// use assetName and assetType instead of deviceName and deviceType\n// to automatically create assets instead of devices.\n// var assetName = 'Asset A';\n// var assetType = 'building';\n\n// Result object with device/asset attributes/telemetry data\nvar result = {\n// Use deviceName and deviceType or assetName and assetType, but not both.\n deviceName: deviceName,\n deviceType: deviceType,\n// assetName: assetName,\n// assetType: assetType,\n// customerName: customerName,\n groupName: groupName,\n attributes: {\n model: 'Model A',\n serialNumber: 'SN111',\n integrationName: metadata['integrationName'],\n manufacturer: manufacturer\n },\n telemetry: {\n temperature: 42,\n humidity: 80,\n rawData: payloadStr\n }\n};\n\n/** Helper functions **/\n\nfunction decodeToString(payload) {\n return String.fromCharCode.apply(String, payload);\n}\n\nfunction decodeToJson(payload) {\n // covert payload to string.\n var str = decodeToString(payload);\n\n // parse string to JSON\n var data = JSON.parse(str);\n return data;\n}\n\nreturn result;", diff --git a/VENDORS/Yobiiq/EM2101/ChirpStack/uplink/converter.json b/VENDORS/Yobiiq/EM2101/ChirpStack/uplink/converter.json index 31c33bbc..e29066a3 100644 --- a/VENDORS/Yobiiq/EM2101/ChirpStack/uplink/converter.json +++ b/VENDORS/Yobiiq/EM2101/ChirpStack/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "ChirpStack Uplink data converter for Yobiiq EM2101", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": "// Decode an uplink message from a buffer\n// payload - array of bytes\n// metadata - key/value object\n\n/** Decoder **/\n\n// decode payload to string\nvar payloadStr = decodeToString(payload);\n\n// decode payload to JSON\n// var data = decodeToJson(payload);\n\nvar deviceName = 'Device A';\nvar deviceType = 'thermostat';\nvar customerName = 'Customer C';\nvar groupName = 'thermostat devices';\nvar manufacturer = 'Example corporation';\n// use assetName and assetType instead of deviceName and deviceType\n// to automatically create assets instead of devices.\n// var assetName = 'Asset A';\n// var assetType = 'building';\n\n// Result object with device/asset attributes/telemetry data\nvar result = {\n// Use deviceName and deviceType or assetName and assetType, but not both.\n deviceName: deviceName,\n deviceType: deviceType,\n// assetName: assetName,\n// assetType: assetType,\n// customerName: customerName,\n groupName: groupName,\n attributes: {\n model: 'Model A',\n serialNumber: 'SN111',\n integrationName: metadata['integrationName'],\n manufacturer: manufacturer\n },\n telemetry: {\n temperature: 42,\n humidity: 80,\n rawData: payloadStr\n }\n};\n\n/** Helper functions **/\n\nfunction decodeToString(payload) {\n return String.fromCharCode.apply(String, payload);\n}\n\nfunction decodeToJson(payload) {\n // covert payload to string.\n var str = decodeToString(payload);\n\n // parse string to JSON\n var data = JSON.parse(str);\n return data;\n}\n\nreturn result;", diff --git a/VENDORS/Yobiiq/EM2101/LORIOT/downlink/converter.json b/VENDORS/Yobiiq/EM2101/LORIOT/downlink/converter.json index 42500f3e..d8ac573a 100644 --- a/VENDORS/Yobiiq/EM2101/LORIOT/downlink/converter.json +++ b/VENDORS/Yobiiq/EM2101/LORIOT/downlink/converter.json @@ -1,9 +1,7 @@ { "name": "Loriot Downlink data converter for Yobiiq EM2101", "type": "DOWNLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": "// Decode an uplink message from a buffer\n// payload - array of bytes\n// metadata - key/value object\n\n/** Decoder **/\n\n// decode payload to string\nvar payloadStr = decodeToString(payload);\n\n// decode payload to JSON\n// var data = decodeToJson(payload);\n\nvar deviceName = 'Device A';\nvar deviceType = 'thermostat';\nvar customerName = 'Customer C';\nvar groupName = 'thermostat devices';\nvar manufacturer = 'Example corporation';\n// use assetName and assetType instead of deviceName and deviceType\n// to automatically create assets instead of devices.\n// var assetName = 'Asset A';\n// var assetType = 'building';\n\n// Result object with device/asset attributes/telemetry data\nvar result = {\n// Use deviceName and deviceType or assetName and assetType, but not both.\n deviceName: deviceName,\n deviceType: deviceType,\n// assetName: assetName,\n// assetType: assetType,\n// customerName: customerName,\n groupName: groupName,\n attributes: {\n model: 'Model A',\n serialNumber: 'SN111',\n integrationName: metadata['integrationName'],\n manufacturer: manufacturer\n },\n telemetry: {\n temperature: 42,\n humidity: 80,\n rawData: payloadStr\n }\n};\n\n/** Helper functions **/\n\nfunction decodeToString(payload) {\n return String.fromCharCode.apply(String, payload);\n}\n\nfunction decodeToJson(payload) {\n // covert payload to string.\n var str = decodeToString(payload);\n\n // parse string to JSON\n var data = JSON.parse(str);\n return data;\n}\n\nreturn result;", diff --git a/VENDORS/Yobiiq/EM2101/LORIOT/uplink/converter.json b/VENDORS/Yobiiq/EM2101/LORIOT/uplink/converter.json index 2e5c1b45..6ff57bef 100644 --- a/VENDORS/Yobiiq/EM2101/LORIOT/uplink/converter.json +++ b/VENDORS/Yobiiq/EM2101/LORIOT/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "Loriot Uplink data converter for Yobiiq EM2101", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": "// Decode an uplink message from a buffer\n// payload - array of bytes\n// metadata - key/value object\n\n/** Decoder **/\n\n// decode payload to string\nvar payloadStr = decodeToString(payload);\n\n// decode payload to JSON\n// var data = decodeToJson(payload);\n\nvar deviceName = 'Device A';\nvar deviceType = 'thermostat';\nvar customerName = 'Customer C';\nvar groupName = 'thermostat devices';\nvar manufacturer = 'Example corporation';\n// use assetName and assetType instead of deviceName and deviceType\n// to automatically create assets instead of devices.\n// var assetName = 'Asset A';\n// var assetType = 'building';\n\n// Result object with device/asset attributes/telemetry data\nvar result = {\n// Use deviceName and deviceType or assetName and assetType, but not both.\n deviceName: deviceName,\n deviceType: deviceType,\n// assetName: assetName,\n// assetType: assetType,\n// customerName: customerName,\n groupName: groupName,\n attributes: {\n model: 'Model A',\n serialNumber: 'SN111',\n integrationName: metadata['integrationName'],\n manufacturer: manufacturer\n },\n telemetry: {\n temperature: 42,\n humidity: 80,\n rawData: payloadStr\n }\n};\n\n/** Helper functions **/\n\nfunction decodeToString(payload) {\n return String.fromCharCode.apply(String, payload);\n}\n\nfunction decodeToJson(payload) {\n // covert payload to string.\n var str = decodeToString(payload);\n\n // parse string to JSON\n var data = JSON.parse(str);\n return data;\n}\n\nreturn result;", diff --git a/VENDORS/Yobiiq/EM2101/ThingsStackCommunity/downlink/converter.json b/VENDORS/Yobiiq/EM2101/ThingsStackCommunity/downlink/converter.json index 69b3459c..9528fa17 100644 --- a/VENDORS/Yobiiq/EM2101/ThingsStackCommunity/downlink/converter.json +++ b/VENDORS/Yobiiq/EM2101/ThingsStackCommunity/downlink/converter.json @@ -1,9 +1,7 @@ { "name": "The Things Stack Downlink data converter for Yobiiq EM2101", "type": "DOWNLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": "// Decode an uplink message from a buffer\n// payload - array of bytes\n// metadata - key/value object\n\n/** Decoder **/\n\n// decode payload to string\nvar payloadStr = decodeToString(payload);\n\n// decode payload to JSON\n// var data = decodeToJson(payload);\n\nvar deviceName = 'Device A';\nvar deviceType = 'thermostat';\nvar customerName = 'Customer C';\nvar groupName = 'thermostat devices';\nvar manufacturer = 'Example corporation';\n// use assetName and assetType instead of deviceName and deviceType\n// to automatically create assets instead of devices.\n// var assetName = 'Asset A';\n// var assetType = 'building';\n\n// Result object with device/asset attributes/telemetry data\nvar result = {\n// Use deviceName and deviceType or assetName and assetType, but not both.\n deviceName: deviceName,\n deviceType: deviceType,\n// assetName: assetName,\n// assetType: assetType,\n// customerName: customerName,\n groupName: groupName,\n attributes: {\n model: 'Model A',\n serialNumber: 'SN111',\n integrationName: metadata['integrationName'],\n manufacturer: manufacturer\n },\n telemetry: {\n temperature: 42,\n humidity: 80,\n rawData: payloadStr\n }\n};\n\n/** Helper functions **/\n\nfunction decodeToString(payload) {\n return String.fromCharCode.apply(String, payload);\n}\n\nfunction decodeToJson(payload) {\n // covert payload to string.\n var str = decodeToString(payload);\n\n // parse string to JSON\n var data = JSON.parse(str);\n return data;\n}\n\nreturn result;", diff --git a/VENDORS/Yobiiq/EM2101/ThingsStackCommunity/uplink/converter.json b/VENDORS/Yobiiq/EM2101/ThingsStackCommunity/uplink/converter.json index f91a64a0..db568717 100644 --- a/VENDORS/Yobiiq/EM2101/ThingsStackCommunity/uplink/converter.json +++ b/VENDORS/Yobiiq/EM2101/ThingsStackCommunity/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "The Things Stack Uplink data converter for Yobiiq EM2101", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": "// Decode an uplink message from a buffer\n// payload - array of bytes\n// metadata - key/value object\n\n/** Decoder **/\n\n// decode payload to string\nvar payloadStr = decodeToString(payload);\n\n// decode payload to JSON\n// var data = decodeToJson(payload);\n\nvar deviceName = 'Device A';\nvar deviceType = 'thermostat';\nvar customerName = 'Customer C';\nvar groupName = 'thermostat devices';\nvar manufacturer = 'Example corporation';\n// use assetName and assetType instead of deviceName and deviceType\n// to automatically create assets instead of devices.\n// var assetName = 'Asset A';\n// var assetType = 'building';\n\n// Result object with device/asset attributes/telemetry data\nvar result = {\n// Use deviceName and deviceType or assetName and assetType, but not both.\n deviceName: deviceName,\n deviceType: deviceType,\n// assetName: assetName,\n// assetType: assetType,\n// customerName: customerName,\n groupName: groupName,\n attributes: {\n model: 'Model A',\n serialNumber: 'SN111',\n integrationName: metadata['integrationName'],\n manufacturer: manufacturer\n },\n telemetry: {\n temperature: 42,\n humidity: 80,\n rawData: payloadStr\n }\n};\n\n/** Helper functions **/\n\nfunction decodeToString(payload) {\n return String.fromCharCode.apply(String, payload);\n}\n\nfunction decodeToJson(payload) {\n // covert payload to string.\n var str = decodeToString(payload);\n\n // parse string to JSON\n var data = JSON.parse(str);\n return data;\n}\n\nreturn result;", diff --git a/VENDORS/Yobiiq/EM2101/ThingsStackIndustries/downlink/converter.json b/VENDORS/Yobiiq/EM2101/ThingsStackIndustries/downlink/converter.json index 69b3459c..9528fa17 100644 --- a/VENDORS/Yobiiq/EM2101/ThingsStackIndustries/downlink/converter.json +++ b/VENDORS/Yobiiq/EM2101/ThingsStackIndustries/downlink/converter.json @@ -1,9 +1,7 @@ { "name": "The Things Stack Downlink data converter for Yobiiq EM2101", "type": "DOWNLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": "// Decode an uplink message from a buffer\n// payload - array of bytes\n// metadata - key/value object\n\n/** Decoder **/\n\n// decode payload to string\nvar payloadStr = decodeToString(payload);\n\n// decode payload to JSON\n// var data = decodeToJson(payload);\n\nvar deviceName = 'Device A';\nvar deviceType = 'thermostat';\nvar customerName = 'Customer C';\nvar groupName = 'thermostat devices';\nvar manufacturer = 'Example corporation';\n// use assetName and assetType instead of deviceName and deviceType\n// to automatically create assets instead of devices.\n// var assetName = 'Asset A';\n// var assetType = 'building';\n\n// Result object with device/asset attributes/telemetry data\nvar result = {\n// Use deviceName and deviceType or assetName and assetType, but not both.\n deviceName: deviceName,\n deviceType: deviceType,\n// assetName: assetName,\n// assetType: assetType,\n// customerName: customerName,\n groupName: groupName,\n attributes: {\n model: 'Model A',\n serialNumber: 'SN111',\n integrationName: metadata['integrationName'],\n manufacturer: manufacturer\n },\n telemetry: {\n temperature: 42,\n humidity: 80,\n rawData: payloadStr\n }\n};\n\n/** Helper functions **/\n\nfunction decodeToString(payload) {\n return String.fromCharCode.apply(String, payload);\n}\n\nfunction decodeToJson(payload) {\n // covert payload to string.\n var str = decodeToString(payload);\n\n // parse string to JSON\n var data = JSON.parse(str);\n return data;\n}\n\nreturn result;", diff --git a/VENDORS/Yobiiq/EM2101/ThingsStackIndustries/uplink/converter.json b/VENDORS/Yobiiq/EM2101/ThingsStackIndustries/uplink/converter.json index f91a64a0..db568717 100644 --- a/VENDORS/Yobiiq/EM2101/ThingsStackIndustries/uplink/converter.json +++ b/VENDORS/Yobiiq/EM2101/ThingsStackIndustries/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "The Things Stack Uplink data converter for Yobiiq EM2101", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": "// Decode an uplink message from a buffer\n// payload - array of bytes\n// metadata - key/value object\n\n/** Decoder **/\n\n// decode payload to string\nvar payloadStr = decodeToString(payload);\n\n// decode payload to JSON\n// var data = decodeToJson(payload);\n\nvar deviceName = 'Device A';\nvar deviceType = 'thermostat';\nvar customerName = 'Customer C';\nvar groupName = 'thermostat devices';\nvar manufacturer = 'Example corporation';\n// use assetName and assetType instead of deviceName and deviceType\n// to automatically create assets instead of devices.\n// var assetName = 'Asset A';\n// var assetType = 'building';\n\n// Result object with device/asset attributes/telemetry data\nvar result = {\n// Use deviceName and deviceType or assetName and assetType, but not both.\n deviceName: deviceName,\n deviceType: deviceType,\n// assetName: assetName,\n// assetType: assetType,\n// customerName: customerName,\n groupName: groupName,\n attributes: {\n model: 'Model A',\n serialNumber: 'SN111',\n integrationName: metadata['integrationName'],\n manufacturer: manufacturer\n },\n telemetry: {\n temperature: 42,\n humidity: 80,\n rawData: payloadStr\n }\n};\n\n/** Helper functions **/\n\nfunction decodeToString(payload) {\n return String.fromCharCode.apply(String, payload);\n}\n\nfunction decodeToJson(payload) {\n // covert payload to string.\n var str = decodeToString(payload);\n\n // parse string to JSON\n var data = JSON.parse(str);\n return data;\n}\n\nreturn result;", diff --git a/VENDORS/Yobiiq/EM4301/ChirpStack/downlink/converter.json b/VENDORS/Yobiiq/EM4301/ChirpStack/downlink/converter.json index c91cd3ff..b2918bc9 100644 --- a/VENDORS/Yobiiq/EM4301/ChirpStack/downlink/converter.json +++ b/VENDORS/Yobiiq/EM4301/ChirpStack/downlink/converter.json @@ -1,9 +1,7 @@ { "name": "ChirpStack Downlink data converter for Yobiiq EM43xx series", "type": "DOWNLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": "// Decode an uplink message from a buffer\n// payload - array of bytes\n// metadata - key/value object\n\n/** Decoder **/\n\n// decode payload to string\nvar payloadStr = decodeToString(payload);\n\n// decode payload to JSON\n// var data = decodeToJson(payload);\n\nvar deviceName = 'Device A';\nvar deviceType = 'thermostat';\nvar customerName = 'Customer C';\nvar groupName = 'thermostat devices';\nvar manufacturer = 'Example corporation';\n// use assetName and assetType instead of deviceName and deviceType\n// to automatically create assets instead of devices.\n// var assetName = 'Asset A';\n// var assetType = 'building';\n\n// Result object with device/asset attributes/telemetry data\nvar result = {\n// Use deviceName and deviceType or assetName and assetType, but not both.\n deviceName: deviceName,\n deviceType: deviceType,\n// assetName: assetName,\n// assetType: assetType,\n// customerName: customerName,\n groupName: groupName,\n attributes: {\n model: 'Model A',\n serialNumber: 'SN111',\n integrationName: metadata['integrationName'],\n manufacturer: manufacturer\n },\n telemetry: {\n temperature: 42,\n humidity: 80,\n rawData: payloadStr\n }\n};\n\n/** Helper functions **/\n\nfunction decodeToString(payload) {\n return String.fromCharCode.apply(String, payload);\n}\n\nfunction decodeToJson(payload) {\n // covert payload to string.\n var str = decodeToString(payload);\n\n // parse string to JSON\n var data = JSON.parse(str);\n return data;\n}\n\nreturn result;", diff --git a/VENDORS/Yobiiq/EM4301/ChirpStack/uplink/converter.json b/VENDORS/Yobiiq/EM4301/ChirpStack/uplink/converter.json index 3dfc62af..d3649a5f 100644 --- a/VENDORS/Yobiiq/EM4301/ChirpStack/uplink/converter.json +++ b/VENDORS/Yobiiq/EM4301/ChirpStack/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "ChirpStack Uplink data converter for Yobiiq EM43xx series", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": "// Decode an uplink message from a buffer\n// payload - array of bytes\n// metadata - key/value object\n\n/** Decoder **/\n\n// decode payload to string\nvar payloadStr = decodeToString(payload);\n\n// decode payload to JSON\n// var data = decodeToJson(payload);\n\nvar deviceName = 'Device A';\nvar deviceType = 'thermostat';\nvar customerName = 'Customer C';\nvar groupName = 'thermostat devices';\nvar manufacturer = 'Example corporation';\n// use assetName and assetType instead of deviceName and deviceType\n// to automatically create assets instead of devices.\n// var assetName = 'Asset A';\n// var assetType = 'building';\n\n// Result object with device/asset attributes/telemetry data\nvar result = {\n// Use deviceName and deviceType or assetName and assetType, but not both.\n deviceName: deviceName,\n deviceType: deviceType,\n// assetName: assetName,\n// assetType: assetType,\n// customerName: customerName,\n groupName: groupName,\n attributes: {\n model: 'Model A',\n serialNumber: 'SN111',\n integrationName: metadata['integrationName'],\n manufacturer: manufacturer\n },\n telemetry: {\n temperature: 42,\n humidity: 80,\n rawData: payloadStr\n }\n};\n\n/** Helper functions **/\n\nfunction decodeToString(payload) {\n return String.fromCharCode.apply(String, payload);\n}\n\nfunction decodeToJson(payload) {\n // covert payload to string.\n var str = decodeToString(payload);\n\n // parse string to JSON\n var data = JSON.parse(str);\n return data;\n}\n\nreturn result;", diff --git a/VENDORS/Yobiiq/EM4301/LORIOT/downlink/converter.json b/VENDORS/Yobiiq/EM4301/LORIOT/downlink/converter.json index c3882238..0610de18 100644 --- a/VENDORS/Yobiiq/EM4301/LORIOT/downlink/converter.json +++ b/VENDORS/Yobiiq/EM4301/LORIOT/downlink/converter.json @@ -1,9 +1,7 @@ { "name": "Loriot Downlink data converter for Yobiiq EM43xx series", "type": "DOWNLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": "// Decode an uplink message from a buffer\n// payload - array of bytes\n// metadata - key/value object\n\n/** Decoder **/\n\n// decode payload to string\nvar payloadStr = decodeToString(payload);\n\n// decode payload to JSON\n// var data = decodeToJson(payload);\n\nvar deviceName = 'Device A';\nvar deviceType = 'thermostat';\nvar customerName = 'Customer C';\nvar groupName = 'thermostat devices';\nvar manufacturer = 'Example corporation';\n// use assetName and assetType instead of deviceName and deviceType\n// to automatically create assets instead of devices.\n// var assetName = 'Asset A';\n// var assetType = 'building';\n\n// Result object with device/asset attributes/telemetry data\nvar result = {\n// Use deviceName and deviceType or assetName and assetType, but not both.\n deviceName: deviceName,\n deviceType: deviceType,\n// assetName: assetName,\n// assetType: assetType,\n// customerName: customerName,\n groupName: groupName,\n attributes: {\n model: 'Model A',\n serialNumber: 'SN111',\n integrationName: metadata['integrationName'],\n manufacturer: manufacturer\n },\n telemetry: {\n temperature: 42,\n humidity: 80,\n rawData: payloadStr\n }\n};\n\n/** Helper functions **/\n\nfunction decodeToString(payload) {\n return String.fromCharCode.apply(String, payload);\n}\n\nfunction decodeToJson(payload) {\n // covert payload to string.\n var str = decodeToString(payload);\n\n // parse string to JSON\n var data = JSON.parse(str);\n return data;\n}\n\nreturn result;", diff --git a/VENDORS/Yobiiq/EM4301/LORIOT/uplink/converter.json b/VENDORS/Yobiiq/EM4301/LORIOT/uplink/converter.json index 96e12c4a..697bedf7 100644 --- a/VENDORS/Yobiiq/EM4301/LORIOT/uplink/converter.json +++ b/VENDORS/Yobiiq/EM4301/LORIOT/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "Loriot Uplink data converter for Yobiiq EM43xx series", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": "// Decode an uplink message from a buffer\n// payload - array of bytes\n// metadata - key/value object\n\n/** Decoder **/\n\n// decode payload to string\nvar payloadStr = decodeToString(payload);\n\n// decode payload to JSON\n// var data = decodeToJson(payload);\n\nvar deviceName = 'Device A';\nvar deviceType = 'thermostat';\nvar customerName = 'Customer C';\nvar groupName = 'thermostat devices';\nvar manufacturer = 'Example corporation';\n// use assetName and assetType instead of deviceName and deviceType\n// to automatically create assets instead of devices.\n// var assetName = 'Asset A';\n// var assetType = 'building';\n\n// Result object with device/asset attributes/telemetry data\nvar result = {\n// Use deviceName and deviceType or assetName and assetType, but not both.\n deviceName: deviceName,\n deviceType: deviceType,\n// assetName: assetName,\n// assetType: assetType,\n// customerName: customerName,\n groupName: groupName,\n attributes: {\n model: 'Model A',\n serialNumber: 'SN111',\n integrationName: metadata['integrationName'],\n manufacturer: manufacturer\n },\n telemetry: {\n temperature: 42,\n humidity: 80,\n rawData: payloadStr\n }\n};\n\n/** Helper functions **/\n\nfunction decodeToString(payload) {\n return String.fromCharCode.apply(String, payload);\n}\n\nfunction decodeToJson(payload) {\n // covert payload to string.\n var str = decodeToString(payload);\n\n // parse string to JSON\n var data = JSON.parse(str);\n return data;\n}\n\nreturn result;", diff --git a/VENDORS/Yobiiq/EM4301/ThingsStackCommunity/downlink/converter.json b/VENDORS/Yobiiq/EM4301/ThingsStackCommunity/downlink/converter.json index 274131e8..54360ced 100644 --- a/VENDORS/Yobiiq/EM4301/ThingsStackCommunity/downlink/converter.json +++ b/VENDORS/Yobiiq/EM4301/ThingsStackCommunity/downlink/converter.json @@ -1,9 +1,7 @@ { "name": "The Things Stack Downlink data converter for Yobiiq EM43xx series", "type": "DOWNLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": "// Decode an uplink message from a buffer\n// payload - array of bytes\n// metadata - key/value object\n\n/** Decoder **/\n\n// decode payload to string\nvar payloadStr = decodeToString(payload);\n\n// decode payload to JSON\n// var data = decodeToJson(payload);\n\nvar deviceName = 'Device A';\nvar deviceType = 'thermostat';\nvar customerName = 'Customer C';\nvar groupName = 'thermostat devices';\nvar manufacturer = 'Example corporation';\n// use assetName and assetType instead of deviceName and deviceType\n// to automatically create assets instead of devices.\n// var assetName = 'Asset A';\n// var assetType = 'building';\n\n// Result object with device/asset attributes/telemetry data\nvar result = {\n// Use deviceName and deviceType or assetName and assetType, but not both.\n deviceName: deviceName,\n deviceType: deviceType,\n// assetName: assetName,\n// assetType: assetType,\n// customerName: customerName,\n groupName: groupName,\n attributes: {\n model: 'Model A',\n serialNumber: 'SN111',\n integrationName: metadata['integrationName'],\n manufacturer: manufacturer\n },\n telemetry: {\n temperature: 42,\n humidity: 80,\n rawData: payloadStr\n }\n};\n\n/** Helper functions **/\n\nfunction decodeToString(payload) {\n return String.fromCharCode.apply(String, payload);\n}\n\nfunction decodeToJson(payload) {\n // covert payload to string.\n var str = decodeToString(payload);\n\n // parse string to JSON\n var data = JSON.parse(str);\n return data;\n}\n\nreturn result;", diff --git a/VENDORS/Yobiiq/EM4301/ThingsStackCommunity/uplink/converter.json b/VENDORS/Yobiiq/EM4301/ThingsStackCommunity/uplink/converter.json index f4f4d009..c4e40f3b 100644 --- a/VENDORS/Yobiiq/EM4301/ThingsStackCommunity/uplink/converter.json +++ b/VENDORS/Yobiiq/EM4301/ThingsStackCommunity/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "The Things Stack Uplink data converter for Yobiiq EM43xx series", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": "// Decode an uplink message from a buffer\n// payload - array of bytes\n// metadata - key/value object\n\n/** Decoder **/\n\n// decode payload to string\nvar payloadStr = decodeToString(payload);\n\n// decode payload to JSON\n// var data = decodeToJson(payload);\n\nvar deviceName = 'Device A';\nvar deviceType = 'thermostat';\nvar customerName = 'Customer C';\nvar groupName = 'thermostat devices';\nvar manufacturer = 'Example corporation';\n// use assetName and assetType instead of deviceName and deviceType\n// to automatically create assets instead of devices.\n// var assetName = 'Asset A';\n// var assetType = 'building';\n\n// Result object with device/asset attributes/telemetry data\nvar result = {\n// Use deviceName and deviceType or assetName and assetType, but not both.\n deviceName: deviceName,\n deviceType: deviceType,\n// assetName: assetName,\n// assetType: assetType,\n// customerName: customerName,\n groupName: groupName,\n attributes: {\n model: 'Model A',\n serialNumber: 'SN111',\n integrationName: metadata['integrationName'],\n manufacturer: manufacturer\n },\n telemetry: {\n temperature: 42,\n humidity: 80,\n rawData: payloadStr\n }\n};\n\n/** Helper functions **/\n\nfunction decodeToString(payload) {\n return String.fromCharCode.apply(String, payload);\n}\n\nfunction decodeToJson(payload) {\n // covert payload to string.\n var str = decodeToString(payload);\n\n // parse string to JSON\n var data = JSON.parse(str);\n return data;\n}\n\nreturn result;", diff --git a/VENDORS/Yobiiq/EM4301/ThingsStackIndustries/downlink/converter.json b/VENDORS/Yobiiq/EM4301/ThingsStackIndustries/downlink/converter.json index 274131e8..54360ced 100644 --- a/VENDORS/Yobiiq/EM4301/ThingsStackIndustries/downlink/converter.json +++ b/VENDORS/Yobiiq/EM4301/ThingsStackIndustries/downlink/converter.json @@ -1,9 +1,7 @@ { "name": "The Things Stack Downlink data converter for Yobiiq EM43xx series", "type": "DOWNLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": "// Decode an uplink message from a buffer\n// payload - array of bytes\n// metadata - key/value object\n\n/** Decoder **/\n\n// decode payload to string\nvar payloadStr = decodeToString(payload);\n\n// decode payload to JSON\n// var data = decodeToJson(payload);\n\nvar deviceName = 'Device A';\nvar deviceType = 'thermostat';\nvar customerName = 'Customer C';\nvar groupName = 'thermostat devices';\nvar manufacturer = 'Example corporation';\n// use assetName and assetType instead of deviceName and deviceType\n// to automatically create assets instead of devices.\n// var assetName = 'Asset A';\n// var assetType = 'building';\n\n// Result object with device/asset attributes/telemetry data\nvar result = {\n// Use deviceName and deviceType or assetName and assetType, but not both.\n deviceName: deviceName,\n deviceType: deviceType,\n// assetName: assetName,\n// assetType: assetType,\n// customerName: customerName,\n groupName: groupName,\n attributes: {\n model: 'Model A',\n serialNumber: 'SN111',\n integrationName: metadata['integrationName'],\n manufacturer: manufacturer\n },\n telemetry: {\n temperature: 42,\n humidity: 80,\n rawData: payloadStr\n }\n};\n\n/** Helper functions **/\n\nfunction decodeToString(payload) {\n return String.fromCharCode.apply(String, payload);\n}\n\nfunction decodeToJson(payload) {\n // covert payload to string.\n var str = decodeToString(payload);\n\n // parse string to JSON\n var data = JSON.parse(str);\n return data;\n}\n\nreturn result;", diff --git a/VENDORS/Yobiiq/EM4301/ThingsStackIndustries/uplink/converter.json b/VENDORS/Yobiiq/EM4301/ThingsStackIndustries/uplink/converter.json index f4f4d009..c4e40f3b 100644 --- a/VENDORS/Yobiiq/EM4301/ThingsStackIndustries/uplink/converter.json +++ b/VENDORS/Yobiiq/EM4301/ThingsStackIndustries/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "The Things Stack Uplink data converter for Yobiiq EM43xx series", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": "// Decode an uplink message from a buffer\n// payload - array of bytes\n// metadata - key/value object\n\n/** Decoder **/\n\n// decode payload to string\nvar payloadStr = decodeToString(payload);\n\n// decode payload to JSON\n// var data = decodeToJson(payload);\n\nvar deviceName = 'Device A';\nvar deviceType = 'thermostat';\nvar customerName = 'Customer C';\nvar groupName = 'thermostat devices';\nvar manufacturer = 'Example corporation';\n// use assetName and assetType instead of deviceName and deviceType\n// to automatically create assets instead of devices.\n// var assetName = 'Asset A';\n// var assetType = 'building';\n\n// Result object with device/asset attributes/telemetry data\nvar result = {\n// Use deviceName and deviceType or assetName and assetType, but not both.\n deviceName: deviceName,\n deviceType: deviceType,\n// assetName: assetName,\n// assetType: assetType,\n// customerName: customerName,\n groupName: groupName,\n attributes: {\n model: 'Model A',\n serialNumber: 'SN111',\n integrationName: metadata['integrationName'],\n manufacturer: manufacturer\n },\n telemetry: {\n temperature: 42,\n humidity: 80,\n rawData: payloadStr\n }\n};\n\n/** Helper functions **/\n\nfunction decodeToString(payload) {\n return String.fromCharCode.apply(String, payload);\n}\n\nfunction decodeToJson(payload) {\n // covert payload to string.\n var str = decodeToString(payload);\n\n // parse string to JSON\n var data = JSON.parse(str);\n return data;\n}\n\nreturn result;", diff --git a/VENDORS/Yobiiq/RM200/ChirpStack/downlink/converter.json b/VENDORS/Yobiiq/RM200/ChirpStack/downlink/converter.json index f63be636..5e664ec6 100644 --- a/VENDORS/Yobiiq/RM200/ChirpStack/downlink/converter.json +++ b/VENDORS/Yobiiq/RM200/ChirpStack/downlink/converter.json @@ -1,9 +1,7 @@ { "name": "ChirpStack Downlink data converter for Yobiiq RM200", "type": "DOWNLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": "// Decode an uplink message from a buffer\n// payload - array of bytes\n// metadata - key/value object\n\n/** Decoder **/\n\n// decode payload to string\nvar payloadStr = decodeToString(payload);\n\n// decode payload to JSON\n// var data = decodeToJson(payload);\n\nvar deviceName = 'Device A';\nvar deviceType = 'thermostat';\nvar customerName = 'Customer C';\nvar groupName = 'thermostat devices';\nvar manufacturer = 'Example corporation';\n// use assetName and assetType instead of deviceName and deviceType\n// to automatically create assets instead of devices.\n// var assetName = 'Asset A';\n// var assetType = 'building';\n\n// Result object with device/asset attributes/telemetry data\nvar result = {\n// Use deviceName and deviceType or assetName and assetType, but not both.\n deviceName: deviceName,\n deviceType: deviceType,\n// assetName: assetName,\n// assetType: assetType,\n// customerName: customerName,\n groupName: groupName,\n attributes: {\n model: 'Model A',\n serialNumber: 'SN111',\n integrationName: metadata['integrationName'],\n manufacturer: manufacturer\n },\n telemetry: {\n temperature: 42,\n humidity: 80,\n rawData: payloadStr\n }\n};\n\n/** Helper functions **/\n\nfunction decodeToString(payload) {\n return String.fromCharCode.apply(String, payload);\n}\n\nfunction decodeToJson(payload) {\n // covert payload to string.\n var str = decodeToString(payload);\n\n // parse string to JSON\n var data = JSON.parse(str);\n return data;\n}\n\nreturn result;", diff --git a/VENDORS/Yobiiq/RM200/ChirpStack/uplink/converter.json b/VENDORS/Yobiiq/RM200/ChirpStack/uplink/converter.json index e16c8002..61430976 100644 --- a/VENDORS/Yobiiq/RM200/ChirpStack/uplink/converter.json +++ b/VENDORS/Yobiiq/RM200/ChirpStack/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "ChirpStack Uplink data converter for Yobiiq RM200", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": "// Decode an uplink message from a buffer\n// payload - array of bytes\n// metadata - key/value object\n\n/** Decoder **/\n\n// decode payload to string\nvar payloadStr = decodeToString(payload);\n\n// decode payload to JSON\n// var data = decodeToJson(payload);\n\nvar deviceName = 'Device A';\nvar deviceType = 'thermostat';\nvar customerName = 'Customer C';\nvar groupName = 'thermostat devices';\nvar manufacturer = 'Example corporation';\n// use assetName and assetType instead of deviceName and deviceType\n// to automatically create assets instead of devices.\n// var assetName = 'Asset A';\n// var assetType = 'building';\n\n// Result object with device/asset attributes/telemetry data\nvar result = {\n// Use deviceName and deviceType or assetName and assetType, but not both.\n deviceName: deviceName,\n deviceType: deviceType,\n// assetName: assetName,\n// assetType: assetType,\n// customerName: customerName,\n groupName: groupName,\n attributes: {\n model: 'Model A',\n serialNumber: 'SN111',\n integrationName: metadata['integrationName'],\n manufacturer: manufacturer\n },\n telemetry: {\n temperature: 42,\n humidity: 80,\n rawData: payloadStr\n }\n};\n\n/** Helper functions **/\n\nfunction decodeToString(payload) {\n return String.fromCharCode.apply(String, payload);\n}\n\nfunction decodeToJson(payload) {\n // covert payload to string.\n var str = decodeToString(payload);\n\n // parse string to JSON\n var data = JSON.parse(str);\n return data;\n}\n\nreturn result;", diff --git a/VENDORS/Yobiiq/RM200/LORIOT/downlink/converter.json b/VENDORS/Yobiiq/RM200/LORIOT/downlink/converter.json index a7391ccd..a71ca2c3 100644 --- a/VENDORS/Yobiiq/RM200/LORIOT/downlink/converter.json +++ b/VENDORS/Yobiiq/RM200/LORIOT/downlink/converter.json @@ -1,9 +1,7 @@ { "name": "Loriot Downlink data converter for Yobiiq RM200", "type": "DOWNLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": "// Decode an uplink message from a buffer\n// payload - array of bytes\n// metadata - key/value object\n\n/** Decoder **/\n\n// decode payload to string\nvar payloadStr = decodeToString(payload);\n\n// decode payload to JSON\n// var data = decodeToJson(payload);\n\nvar deviceName = 'Device A';\nvar deviceType = 'thermostat';\nvar customerName = 'Customer C';\nvar groupName = 'thermostat devices';\nvar manufacturer = 'Example corporation';\n// use assetName and assetType instead of deviceName and deviceType\n// to automatically create assets instead of devices.\n// var assetName = 'Asset A';\n// var assetType = 'building';\n\n// Result object with device/asset attributes/telemetry data\nvar result = {\n// Use deviceName and deviceType or assetName and assetType, but not both.\n deviceName: deviceName,\n deviceType: deviceType,\n// assetName: assetName,\n// assetType: assetType,\n// customerName: customerName,\n groupName: groupName,\n attributes: {\n model: 'Model A',\n serialNumber: 'SN111',\n integrationName: metadata['integrationName'],\n manufacturer: manufacturer\n },\n telemetry: {\n temperature: 42,\n humidity: 80,\n rawData: payloadStr\n }\n};\n\n/** Helper functions **/\n\nfunction decodeToString(payload) {\n return String.fromCharCode.apply(String, payload);\n}\n\nfunction decodeToJson(payload) {\n // covert payload to string.\n var str = decodeToString(payload);\n\n // parse string to JSON\n var data = JSON.parse(str);\n return data;\n}\n\nreturn result;", diff --git a/VENDORS/Yobiiq/RM200/LORIOT/uplink/converter.json b/VENDORS/Yobiiq/RM200/LORIOT/uplink/converter.json index 5d760878..14b91438 100644 --- a/VENDORS/Yobiiq/RM200/LORIOT/uplink/converter.json +++ b/VENDORS/Yobiiq/RM200/LORIOT/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "Loriot Uplink data converter for Yobiiq RM200", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": "// Decode an uplink message from a buffer\n// payload - array of bytes\n// metadata - key/value object\n\n/** Decoder **/\n\n// decode payload to string\nvar payloadStr = decodeToString(payload);\n\n// decode payload to JSON\n// var data = decodeToJson(payload);\n\nvar deviceName = 'Device A';\nvar deviceType = 'thermostat';\nvar customerName = 'Customer C';\nvar groupName = 'thermostat devices';\nvar manufacturer = 'Example corporation';\n// use assetName and assetType instead of deviceName and deviceType\n// to automatically create assets instead of devices.\n// var assetName = 'Asset A';\n// var assetType = 'building';\n\n// Result object with device/asset attributes/telemetry data\nvar result = {\n// Use deviceName and deviceType or assetName and assetType, but not both.\n deviceName: deviceName,\n deviceType: deviceType,\n// assetName: assetName,\n// assetType: assetType,\n// customerName: customerName,\n groupName: groupName,\n attributes: {\n model: 'Model A',\n serialNumber: 'SN111',\n integrationName: metadata['integrationName'],\n manufacturer: manufacturer\n },\n telemetry: {\n temperature: 42,\n humidity: 80,\n rawData: payloadStr\n }\n};\n\n/** Helper functions **/\n\nfunction decodeToString(payload) {\n return String.fromCharCode.apply(String, payload);\n}\n\nfunction decodeToJson(payload) {\n // covert payload to string.\n var str = decodeToString(payload);\n\n // parse string to JSON\n var data = JSON.parse(str);\n return data;\n}\n\nreturn result;", diff --git a/VENDORS/Yobiiq/RM200/ThingsStackCommunity/downlink/converter.json b/VENDORS/Yobiiq/RM200/ThingsStackCommunity/downlink/converter.json index ba9a3997..85408215 100644 --- a/VENDORS/Yobiiq/RM200/ThingsStackCommunity/downlink/converter.json +++ b/VENDORS/Yobiiq/RM200/ThingsStackCommunity/downlink/converter.json @@ -1,9 +1,7 @@ { "name": "The Things Stack Downlink data converter for Yobiiq RM200", "type": "DOWNLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": "// Decode an uplink message from a buffer\n// payload - array of bytes\n// metadata - key/value object\n\n/** Decoder **/\n\n// decode payload to string\nvar payloadStr = decodeToString(payload);\n\n// decode payload to JSON\n// var data = decodeToJson(payload);\n\nvar deviceName = 'Device A';\nvar deviceType = 'thermostat';\nvar customerName = 'Customer C';\nvar groupName = 'thermostat devices';\nvar manufacturer = 'Example corporation';\n// use assetName and assetType instead of deviceName and deviceType\n// to automatically create assets instead of devices.\n// var assetName = 'Asset A';\n// var assetType = 'building';\n\n// Result object with device/asset attributes/telemetry data\nvar result = {\n// Use deviceName and deviceType or assetName and assetType, but not both.\n deviceName: deviceName,\n deviceType: deviceType,\n// assetName: assetName,\n// assetType: assetType,\n// customerName: customerName,\n groupName: groupName,\n attributes: {\n model: 'Model A',\n serialNumber: 'SN111',\n integrationName: metadata['integrationName'],\n manufacturer: manufacturer\n },\n telemetry: {\n temperature: 42,\n humidity: 80,\n rawData: payloadStr\n }\n};\n\n/** Helper functions **/\n\nfunction decodeToString(payload) {\n return String.fromCharCode.apply(String, payload);\n}\n\nfunction decodeToJson(payload) {\n // covert payload to string.\n var str = decodeToString(payload);\n\n // parse string to JSON\n var data = JSON.parse(str);\n return data;\n}\n\nreturn result;", diff --git a/VENDORS/Yobiiq/RM200/ThingsStackCommunity/uplink/converter.json b/VENDORS/Yobiiq/RM200/ThingsStackCommunity/uplink/converter.json index ca63dc0b..7f59f28a 100644 --- a/VENDORS/Yobiiq/RM200/ThingsStackCommunity/uplink/converter.json +++ b/VENDORS/Yobiiq/RM200/ThingsStackCommunity/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "The Things Stack Uplink data converter for Yobiiq RM200", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": "// Decode an uplink message from a buffer\n// payload - array of bytes\n// metadata - key/value object\n\n/** Decoder **/\n\n// decode payload to string\nvar payloadStr = decodeToString(payload);\n\n// decode payload to JSON\n// var data = decodeToJson(payload);\n\nvar deviceName = 'Device A';\nvar deviceType = 'thermostat';\nvar customerName = 'Customer C';\nvar groupName = 'thermostat devices';\nvar manufacturer = 'Example corporation';\n// use assetName and assetType instead of deviceName and deviceType\n// to automatically create assets instead of devices.\n// var assetName = 'Asset A';\n// var assetType = 'building';\n\n// Result object with device/asset attributes/telemetry data\nvar result = {\n// Use deviceName and deviceType or assetName and assetType, but not both.\n deviceName: deviceName,\n deviceType: deviceType,\n// assetName: assetName,\n// assetType: assetType,\n// customerName: customerName,\n groupName: groupName,\n attributes: {\n model: 'Model A',\n serialNumber: 'SN111',\n integrationName: metadata['integrationName'],\n manufacturer: manufacturer\n },\n telemetry: {\n temperature: 42,\n humidity: 80,\n rawData: payloadStr\n }\n};\n\n/** Helper functions **/\n\nfunction decodeToString(payload) {\n return String.fromCharCode.apply(String, payload);\n}\n\nfunction decodeToJson(payload) {\n // covert payload to string.\n var str = decodeToString(payload);\n\n // parse string to JSON\n var data = JSON.parse(str);\n return data;\n}\n\nreturn result;", diff --git a/VENDORS/Yobiiq/RM200/ThingsStackIndustries/downlink/converter.json b/VENDORS/Yobiiq/RM200/ThingsStackIndustries/downlink/converter.json index ba9a3997..85408215 100644 --- a/VENDORS/Yobiiq/RM200/ThingsStackIndustries/downlink/converter.json +++ b/VENDORS/Yobiiq/RM200/ThingsStackIndustries/downlink/converter.json @@ -1,9 +1,7 @@ { "name": "The Things Stack Downlink data converter for Yobiiq RM200", "type": "DOWNLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": "// Decode an uplink message from a buffer\n// payload - array of bytes\n// metadata - key/value object\n\n/** Decoder **/\n\n// decode payload to string\nvar payloadStr = decodeToString(payload);\n\n// decode payload to JSON\n// var data = decodeToJson(payload);\n\nvar deviceName = 'Device A';\nvar deviceType = 'thermostat';\nvar customerName = 'Customer C';\nvar groupName = 'thermostat devices';\nvar manufacturer = 'Example corporation';\n// use assetName and assetType instead of deviceName and deviceType\n// to automatically create assets instead of devices.\n// var assetName = 'Asset A';\n// var assetType = 'building';\n\n// Result object with device/asset attributes/telemetry data\nvar result = {\n// Use deviceName and deviceType or assetName and assetType, but not both.\n deviceName: deviceName,\n deviceType: deviceType,\n// assetName: assetName,\n// assetType: assetType,\n// customerName: customerName,\n groupName: groupName,\n attributes: {\n model: 'Model A',\n serialNumber: 'SN111',\n integrationName: metadata['integrationName'],\n manufacturer: manufacturer\n },\n telemetry: {\n temperature: 42,\n humidity: 80,\n rawData: payloadStr\n }\n};\n\n/** Helper functions **/\n\nfunction decodeToString(payload) {\n return String.fromCharCode.apply(String, payload);\n}\n\nfunction decodeToJson(payload) {\n // covert payload to string.\n var str = decodeToString(payload);\n\n // parse string to JSON\n var data = JSON.parse(str);\n return data;\n}\n\nreturn result;", diff --git a/VENDORS/Yobiiq/RM200/ThingsStackIndustries/uplink/converter.json b/VENDORS/Yobiiq/RM200/ThingsStackIndustries/uplink/converter.json index ca63dc0b..7f59f28a 100644 --- a/VENDORS/Yobiiq/RM200/ThingsStackIndustries/uplink/converter.json +++ b/VENDORS/Yobiiq/RM200/ThingsStackIndustries/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "The Things Stack Uplink data converter for Yobiiq RM200", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": "// Decode an uplink message from a buffer\n// payload - array of bytes\n// metadata - key/value object\n\n/** Decoder **/\n\n// decode payload to string\nvar payloadStr = decodeToString(payload);\n\n// decode payload to JSON\n// var data = decodeToJson(payload);\n\nvar deviceName = 'Device A';\nvar deviceType = 'thermostat';\nvar customerName = 'Customer C';\nvar groupName = 'thermostat devices';\nvar manufacturer = 'Example corporation';\n// use assetName and assetType instead of deviceName and deviceType\n// to automatically create assets instead of devices.\n// var assetName = 'Asset A';\n// var assetType = 'building';\n\n// Result object with device/asset attributes/telemetry data\nvar result = {\n// Use deviceName and deviceType or assetName and assetType, but not both.\n deviceName: deviceName,\n deviceType: deviceType,\n// assetName: assetName,\n// assetType: assetType,\n// customerName: customerName,\n groupName: groupName,\n attributes: {\n model: 'Model A',\n serialNumber: 'SN111',\n integrationName: metadata['integrationName'],\n manufacturer: manufacturer\n },\n telemetry: {\n temperature: 42,\n humidity: 80,\n rawData: payloadStr\n }\n};\n\n/** Helper functions **/\n\nfunction decodeToString(payload) {\n return String.fromCharCode.apply(String, payload);\n}\n\nfunction decodeToJson(payload) {\n // covert payload to string.\n var str = decodeToString(payload);\n\n // parse string to JSON\n var data = JSON.parse(str);\n return data;\n}\n\nreturn result;", diff --git a/VENDORS/Yobiiq/SD1001/ChirpStack/downlink/converter.json b/VENDORS/Yobiiq/SD1001/ChirpStack/downlink/converter.json index a4142cff..c30380fd 100644 --- a/VENDORS/Yobiiq/SD1001/ChirpStack/downlink/converter.json +++ b/VENDORS/Yobiiq/SD1001/ChirpStack/downlink/converter.json @@ -1,9 +1,7 @@ { "name": "ChirpStack Downlink data converter for Yobiiq SD-1001", "type": "DOWNLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": null, diff --git a/VENDORS/Yobiiq/SD1001/ChirpStack/uplink/converter.json b/VENDORS/Yobiiq/SD1001/ChirpStack/uplink/converter.json index f718f4a7..5a97455a 100644 --- a/VENDORS/Yobiiq/SD1001/ChirpStack/uplink/converter.json +++ b/VENDORS/Yobiiq/SD1001/ChirpStack/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "ChirpStack Uplink data converter for Yobiiq SD-1001", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": "// Decode an uplink message from a buffer\n// payload - array of bytes\n// metadata - key/value object\n\n/** Decoder **/\n\n// decode payload to string\nvar payloadStr = decodeToString(payload);\n\n// decode payload to JSON\n// var data = decodeToJson(payload);\n\nvar deviceName = 'Device A';\nvar deviceType = 'thermostat';\nvar customerName = 'Customer C';\nvar groupName = 'thermostat devices';\nvar manufacturer = 'Example corporation';\n// use assetName and assetType instead of deviceName and deviceType\n// to automatically create assets instead of devices.\n// var assetName = 'Asset A';\n// var assetType = 'building';\n\n// Result object with device/asset attributes/telemetry data\nvar result = {\n// Use deviceName and deviceType or assetName and assetType, but not both.\n deviceName: deviceName,\n deviceType: deviceType,\n// assetName: assetName,\n// assetType: assetType,\n// customerName: customerName,\n groupName: groupName,\n attributes: {\n model: 'Model A',\n serialNumber: 'SN111',\n integrationName: metadata['integrationName'],\n manufacturer: manufacturer\n },\n telemetry: {\n temperature: 42,\n humidity: 80,\n rawData: payloadStr\n }\n};\n\n/** Helper functions **/\n\nfunction decodeToString(payload) {\n return String.fromCharCode.apply(String, payload);\n}\n\nfunction decodeToJson(payload) {\n // covert payload to string.\n var str = decodeToString(payload);\n\n // parse string to JSON\n var data = JSON.parse(str);\n return data;\n}\n\nreturn result;", diff --git a/VENDORS/Yobiiq/SD1001/LORIOT/downlink/converter.json b/VENDORS/Yobiiq/SD1001/LORIOT/downlink/converter.json index ced34c66..f1fcba08 100644 --- a/VENDORS/Yobiiq/SD1001/LORIOT/downlink/converter.json +++ b/VENDORS/Yobiiq/SD1001/LORIOT/downlink/converter.json @@ -1,9 +1,7 @@ { "name": "Loriot Downlink data converter for Yobiiq SD-1001", "type": "DOWNLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": "// Decode an uplink message from a buffer\n// payload - array of bytes\n// metadata - key/value object\n\n/** Decoder **/\n\n// decode payload to string\nvar payloadStr = decodeToString(payload);\n\n// decode payload to JSON\n// var data = decodeToJson(payload);\n\nvar deviceName = 'Device A';\nvar deviceType = 'thermostat';\nvar customerName = 'Customer C';\nvar groupName = 'thermostat devices';\nvar manufacturer = 'Example corporation';\n// use assetName and assetType instead of deviceName and deviceType\n// to automatically create assets instead of devices.\n// var assetName = 'Asset A';\n// var assetType = 'building';\n\n// Result object with device/asset attributes/telemetry data\nvar result = {\n// Use deviceName and deviceType or assetName and assetType, but not both.\n deviceName: deviceName,\n deviceType: deviceType,\n// assetName: assetName,\n// assetType: assetType,\n// customerName: customerName,\n groupName: groupName,\n attributes: {\n model: 'Model A',\n serialNumber: 'SN111',\n integrationName: metadata['integrationName'],\n manufacturer: manufacturer\n },\n telemetry: {\n temperature: 42,\n humidity: 80,\n rawData: payloadStr\n }\n};\n\n/** Helper functions **/\n\nfunction decodeToString(payload) {\n return String.fromCharCode.apply(String, payload);\n}\n\nfunction decodeToJson(payload) {\n // covert payload to string.\n var str = decodeToString(payload);\n\n // parse string to JSON\n var data = JSON.parse(str);\n return data;\n}\n\nreturn result;", diff --git a/VENDORS/Yobiiq/SD1001/LORIOT/uplink/converter.json b/VENDORS/Yobiiq/SD1001/LORIOT/uplink/converter.json index 84f30f73..e2c23235 100644 --- a/VENDORS/Yobiiq/SD1001/LORIOT/uplink/converter.json +++ b/VENDORS/Yobiiq/SD1001/LORIOT/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "Loriot Uplink data converter for Yobiiq SD-1001", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": "// Decode an uplink message from a buffer\n// payload - array of bytes\n// metadata - key/value object\n\n/** Decoder **/\n\n// decode payload to string\nvar payloadStr = decodeToString(payload);\n\n// decode payload to JSON\n// var data = decodeToJson(payload);\n\nvar deviceName = 'Device A';\nvar deviceType = 'thermostat';\nvar customerName = 'Customer C';\nvar groupName = 'thermostat devices';\nvar manufacturer = 'Example corporation';\n// use assetName and assetType instead of deviceName and deviceType\n// to automatically create assets instead of devices.\n// var assetName = 'Asset A';\n// var assetType = 'building';\n\n// Result object with device/asset attributes/telemetry data\nvar result = {\n// Use deviceName and deviceType or assetName and assetType, but not both.\n deviceName: deviceName,\n deviceType: deviceType,\n// assetName: assetName,\n// assetType: assetType,\n// customerName: customerName,\n groupName: groupName,\n attributes: {\n model: 'Model A',\n serialNumber: 'SN111',\n integrationName: metadata['integrationName'],\n manufacturer: manufacturer\n },\n telemetry: {\n temperature: 42,\n humidity: 80,\n rawData: payloadStr\n }\n};\n\n/** Helper functions **/\n\nfunction decodeToString(payload) {\n return String.fromCharCode.apply(String, payload);\n}\n\nfunction decodeToJson(payload) {\n // covert payload to string.\n var str = decodeToString(payload);\n\n // parse string to JSON\n var data = JSON.parse(str);\n return data;\n}\n\nreturn result;", diff --git a/VENDORS/Yobiiq/SD1001/ThingsStackCommunity/downlink/converter.json b/VENDORS/Yobiiq/SD1001/ThingsStackCommunity/downlink/converter.json index 3b50cd63..df61e815 100644 --- a/VENDORS/Yobiiq/SD1001/ThingsStackCommunity/downlink/converter.json +++ b/VENDORS/Yobiiq/SD1001/ThingsStackCommunity/downlink/converter.json @@ -1,9 +1,7 @@ { "name": "The Things Stack Community Downlink data converter for Yobiiq SD-1001", "type": "DOWNLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": "// Decode an uplink message from a buffer\n// payload - array of bytes\n// metadata - key/value object\n\n/** Decoder **/\n\n// decode payload to string\nvar payloadStr = decodeToString(payload);\n\n// decode payload to JSON\n// var data = decodeToJson(payload);\n\nvar deviceName = 'Device A';\nvar deviceType = 'thermostat';\nvar customerName = 'Customer C';\nvar groupName = 'thermostat devices';\nvar manufacturer = 'Example corporation';\n// use assetName and assetType instead of deviceName and deviceType\n// to automatically create assets instead of devices.\n// var assetName = 'Asset A';\n// var assetType = 'building';\n\n// Result object with device/asset attributes/telemetry data\nvar result = {\n// Use deviceName and deviceType or assetName and assetType, but not both.\n deviceName: deviceName,\n deviceType: deviceType,\n// assetName: assetName,\n// assetType: assetType,\n// customerName: customerName,\n groupName: groupName,\n attributes: {\n model: 'Model A',\n serialNumber: 'SN111',\n integrationName: metadata['integrationName'],\n manufacturer: manufacturer\n },\n telemetry: {\n temperature: 42,\n humidity: 80,\n rawData: payloadStr\n }\n};\n\n/** Helper functions **/\n\nfunction decodeToString(payload) {\n return String.fromCharCode.apply(String, payload);\n}\n\nfunction decodeToJson(payload) {\n // covert payload to string.\n var str = decodeToString(payload);\n\n // parse string to JSON\n var data = JSON.parse(str);\n return data;\n}\n\nreturn result;", diff --git a/VENDORS/Yobiiq/SD1001/ThingsStackCommunity/uplink/converter.json b/VENDORS/Yobiiq/SD1001/ThingsStackCommunity/uplink/converter.json index 438157e5..6a580742 100644 --- a/VENDORS/Yobiiq/SD1001/ThingsStackCommunity/uplink/converter.json +++ b/VENDORS/Yobiiq/SD1001/ThingsStackCommunity/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "The Things Stack Community Uplink data converter for Yobiiq SD-1001", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": "// Decode an uplink message from a buffer\n// payload - array of bytes\n// metadata - key/value object\n\n/** Decoder **/\n\n// decode payload to string\nvar payloadStr = decodeToString(payload);\n\n// decode payload to JSON\n// var data = decodeToJson(payload);\n\nvar deviceName = 'Device A';\nvar deviceType = 'thermostat';\nvar customerName = 'Customer C';\nvar groupName = 'thermostat devices';\nvar manufacturer = 'Example corporation';\n// use assetName and assetType instead of deviceName and deviceType\n// to automatically create assets instead of devices.\n// var assetName = 'Asset A';\n// var assetType = 'building';\n\n// Result object with device/asset attributes/telemetry data\nvar result = {\n// Use deviceName and deviceType or assetName and assetType, but not both.\n deviceName: deviceName,\n deviceType: deviceType,\n// assetName: assetName,\n// assetType: assetType,\n// customerName: customerName,\n groupName: groupName,\n attributes: {\n model: 'Model A',\n serialNumber: 'SN111',\n integrationName: metadata['integrationName'],\n manufacturer: manufacturer\n },\n telemetry: {\n temperature: 42,\n humidity: 80,\n rawData: payloadStr\n }\n};\n\n/** Helper functions **/\n\nfunction decodeToString(payload) {\n return String.fromCharCode.apply(String, payload);\n}\n\nfunction decodeToJson(payload) {\n // covert payload to string.\n var str = decodeToString(payload);\n\n // parse string to JSON\n var data = JSON.parse(str);\n return data;\n}\n\nreturn result;", diff --git a/VENDORS/Yobiiq/SD1001/ThingsStackIndustries/downlink/converter.json b/VENDORS/Yobiiq/SD1001/ThingsStackIndustries/downlink/converter.json index 7c92d1a3..dfdf81ea 100644 --- a/VENDORS/Yobiiq/SD1001/ThingsStackIndustries/downlink/converter.json +++ b/VENDORS/Yobiiq/SD1001/ThingsStackIndustries/downlink/converter.json @@ -1,9 +1,7 @@ { "name": "The Things Stack Industries Downlink data converter for Yobiiq SD-1001", "type": "DOWNLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": "// Decode an uplink message from a buffer\n// payload - array of bytes\n// metadata - key/value object\n\n/** Decoder **/\n\n// decode payload to string\nvar payloadStr = decodeToString(payload);\n\n// decode payload to JSON\n// var data = decodeToJson(payload);\n\nvar deviceName = 'Device A';\nvar deviceType = 'thermostat';\nvar customerName = 'Customer C';\nvar groupName = 'thermostat devices';\nvar manufacturer = 'Example corporation';\n// use assetName and assetType instead of deviceName and deviceType\n// to automatically create assets instead of devices.\n// var assetName = 'Asset A';\n// var assetType = 'building';\n\n// Result object with device/asset attributes/telemetry data\nvar result = {\n// Use deviceName and deviceType or assetName and assetType, but not both.\n deviceName: deviceName,\n deviceType: deviceType,\n// assetName: assetName,\n// assetType: assetType,\n// customerName: customerName,\n groupName: groupName,\n attributes: {\n model: 'Model A',\n serialNumber: 'SN111',\n integrationName: metadata['integrationName'],\n manufacturer: manufacturer\n },\n telemetry: {\n temperature: 42,\n humidity: 80,\n rawData: payloadStr\n }\n};\n\n/** Helper functions **/\n\nfunction decodeToString(payload) {\n return String.fromCharCode.apply(String, payload);\n}\n\nfunction decodeToJson(payload) {\n // covert payload to string.\n var str = decodeToString(payload);\n\n // parse string to JSON\n var data = JSON.parse(str);\n return data;\n}\n\nreturn result;", diff --git a/VENDORS/Yobiiq/SD1001/ThingsStackIndustries/uplink/converter.json b/VENDORS/Yobiiq/SD1001/ThingsStackIndustries/uplink/converter.json index c5980a5d..43c30d9a 100644 --- a/VENDORS/Yobiiq/SD1001/ThingsStackIndustries/uplink/converter.json +++ b/VENDORS/Yobiiq/SD1001/ThingsStackIndustries/uplink/converter.json @@ -1,9 +1,7 @@ { "name": "The Things Stack Industries Uplink data converter for Yobiiq SD-1001", "type": "UPLINK", - "debugFailures" : false, - "debugAll" : true, - "debugAllUntil": 0, + "debugMode": true, "configuration": { "scriptLang": "TBEL", "decoder": "// Decode an uplink message from a buffer\n// payload - array of bytes\n// metadata - key/value object\n\n/** Decoder **/\n\n// decode payload to string\nvar payloadStr = decodeToString(payload);\n\n// decode payload to JSON\n// var data = decodeToJson(payload);\n\nvar deviceName = 'Device A';\nvar deviceType = 'thermostat';\nvar customerName = 'Customer C';\nvar groupName = 'thermostat devices';\nvar manufacturer = 'Example corporation';\n// use assetName and assetType instead of deviceName and deviceType\n// to automatically create assets instead of devices.\n// var assetName = 'Asset A';\n// var assetType = 'building';\n\n// Result object with device/asset attributes/telemetry data\nvar result = {\n// Use deviceName and deviceType or assetName and assetType, but not both.\n deviceName: deviceName,\n deviceType: deviceType,\n// assetName: assetName,\n// assetType: assetType,\n// customerName: customerName,\n groupName: groupName,\n attributes: {\n model: 'Model A',\n serialNumber: 'SN111',\n integrationName: metadata['integrationName'],\n manufacturer: manufacturer\n },\n telemetry: {\n temperature: 42,\n humidity: 80,\n rawData: payloadStr\n }\n};\n\n/** Helper functions **/\n\nfunction decodeToString(payload) {\n return String.fromCharCode.apply(String, payload);\n}\n\nfunction decodeToJson(payload) {\n // covert payload to string.\n var str = decodeToString(payload);\n\n // parse string to JSON\n var data = JSON.parse(str);\n return data;\n}\n\nreturn result;",