-
Notifications
You must be signed in to change notification settings - Fork 378
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
watteco vendor recreation, th device added to test devices addition.
- Loading branch information
Showing
7 changed files
with
508 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# This example contains just one end device: windsensor. It is referenced here in the index. | ||
|
||
endDevices: | ||
# Unique identifier of the end device (lowercase, alphanumeric with dashes, max 36 characters) | ||
- th-sensor |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,301 @@ | ||
# Uplink decoder decodes binary data uplink into a JSON object (optional) | ||
# For documentation on writing encoders and decoders, see: https://thethingsstack.io/integrations/payload-formatters/javascript/ | ||
uplinkDecoder: | ||
fileName: th-sensor.js | ||
# Examples (optional) | ||
# examples: | ||
# [ | ||
# { | ||
# "type": "uplink", | ||
# "description": "uplink standard report containing temperature value | payload:110A04020000290B89", | ||
# "input": { | ||
# "bytes": [ | ||
# 17, | ||
# 10, | ||
# 4, | ||
# 2, | ||
# 0, | ||
# 0, | ||
# 41, | ||
# 11, | ||
# 137 | ||
# ], | ||
# "fPort": 125, | ||
# "recvTime": "2023-07-19T07:51:31.598957793Z" | ||
# }, | ||
# "output": { | ||
# "data": [{ | ||
# "variable": "temperature", | ||
# "value": 29.53, | ||
# "date": "2023-07-19T07:51:31.598957793Z" | ||
# }], | ||
# "warnings": [""] | ||
# } | ||
# }, | ||
# { | ||
# "type": "uplink", | ||
# "description": "uplink standard report containing 2 short threshold alarms on temperature value | payload:118A0402000029075590B0B1", | ||
# "input": { | ||
# "bytes": [ | ||
# 17, 138, 4, 2, 0, | ||
# 0, 41, 7, 85, 144, | ||
# 176, 177 | ||
# ], | ||
# "fPort": 125, | ||
# "recvTime": "2023-07-19T07:51:25.508306410Z" | ||
# }, | ||
# "output": { | ||
# "data": [ | ||
# { | ||
# "variable": "temperature", | ||
# "value": 18.77, | ||
# "date": "2023-07-19T07:51:25.508306410Z" | ||
# } | ||
# ], | ||
# "warnings": | ||
# [ | ||
# "alarm, criterion_index: 0, mode: threshold, crossing: fall", | ||
# "alarm, criterion_index: 1, mode: threshold, crossing: fall" | ||
# ] | ||
# | ||
# } | ||
# }, | ||
# { | ||
# "type": "uplink", | ||
# "description": "uplink standard report containing 3 long threshold alarms on temperature value | payload:118a0402000029010ea0b008fc000001b10834000001b207d0000001", | ||
# "input": { | ||
# "bytes": [ | ||
# 17, 138, 4, 2, 0, 0, 41, 1, | ||
# 14, 160, 176, 8, 252, 0, 0, 1, | ||
# 177, 8, 52, 0, 0, 1, 178, 7, | ||
# 208, 0, 0, 1 | ||
# ], | ||
# "fPort": 125, | ||
# "recvTime": "2023-07-19T07:51:25.508306410Z" | ||
# }, | ||
# "output":{ | ||
# "data": [ | ||
# { | ||
# "variable": "temperature", | ||
# "value": 2.7, | ||
# "date": "2023-07-19T07:51:25.508306410Z" | ||
# } | ||
# ], | ||
# "warnings": [ | ||
# "alarm, criterion_index: 0, mode: threshold, crossing: fall, value: 23, gap: 0, occurences: 1", | ||
# "alarm, criterion_index: 1, mode: threshold, crossing: fall, value: 21, gap: 0, occurences: 1", | ||
# "alarm, criterion_index: 2, mode: threshold, crossing: fall, value: 20, gap: 0, occurences: 1" | ||
# ] | ||
# | ||
# } | ||
# | ||
# }, | ||
# { | ||
# "type": "uplink", | ||
# "description": "uplink standard report containing a long delta alarm on temperature value | payload:118A04020000290B35A0C80014", | ||
# "input": { | ||
# "bytes": [ | ||
# 17, 138, 4, 2, 0, 0, | ||
# 41, 11, 53, 160, 200, 0, | ||
# 20 | ||
# ], | ||
# "fPort": 125, | ||
# "recvTime": "2023-07-19T07:51:25.508306410Z" | ||
# }, | ||
# "output": { | ||
# "data": [ | ||
# { | ||
# "variable": "temperature", | ||
# "value": 28.69, | ||
# "date": "2023-07-19T07:51:25.508306410Z" | ||
# } | ||
# ], | ||
# "warnings": [ "alarm, criterion_index: 0, mode: delta, value: 0.2" ] | ||
# } | ||
# }, | ||
# { | ||
# "type": "uplink", | ||
# "description": "uplink standard report containing humidity value | payload:110A04050000210E89", | ||
# "input": { | ||
# "bytes": [ | ||
# 17, | ||
# 10, | ||
# 4, | ||
# 5, | ||
# 0, | ||
# 0, | ||
# 33, | ||
# 14, | ||
# 137 | ||
# ], | ||
# "fPort": 125, | ||
# "recvTime": "2023-07-19T07:51:25.508306410Z" | ||
# }, | ||
# "output": { | ||
# "data": [{ | ||
# "variable": "humidity", | ||
# "value": 37.21, | ||
# "date": "2023-07-19T07:51:25.508306410Z" | ||
# }], | ||
# "warnings": [ | ||
# "" | ||
# ] | ||
# } | ||
# }, | ||
# { | ||
# "type": "uplink", | ||
# "description": "uplink standard report containing state of case | payload:110A000F00551001", | ||
# "input": { | ||
# "bytes": [ | ||
# 17, | ||
# 10, | ||
# 0, | ||
# 15, | ||
# 0, | ||
# 85, | ||
# 16, | ||
# 1 | ||
# ], | ||
# "fPort": 125, | ||
# "recvTime": "2023-07-19T07:51:25.508306410Z" | ||
# }, | ||
# "output": { | ||
# "data": [{ | ||
# "variable": "violation_detection", | ||
# "value": true, | ||
# "date": "2023-07-19T07:51:25.508306410Z" | ||
# }], | ||
# "warnings": [ | ||
# "" | ||
# ] | ||
# } | ||
# }, | ||
# { | ||
# "type": "uplink", | ||
# "description": "uplink standard report containing number of pulse detection on input 1 | payload:110A000F04022300000000", | ||
# "input": { | ||
# "bytes": [ | ||
# 17, | ||
# 10, | ||
# 0, | ||
# 15, | ||
# 4, | ||
# 2, | ||
# 35, | ||
# 0, | ||
# 0, | ||
# 0, | ||
# 0 | ||
# ], | ||
# "fPort": 125, | ||
# "recvTime": "2023-07-19T07:51:25.508306410Z" | ||
# }, | ||
# "output": { | ||
# "data": [ | ||
# { | ||
# "variable": "index", | ||
# "value": 0, | ||
# "date": "2023-07-19T07:51:25.508306410Z" | ||
# } | ||
# ], | ||
# "warnings": [""] | ||
# } | ||
# }, | ||
# { | ||
# "type": "uplink", | ||
# "description": "uplink standard report containing cmdID 0x07 response for temperature cluster | payload:1107040200800000", | ||
# "input": { | ||
# "bytes": [ | ||
# 17, 7, 4, 2, | ||
# 0, 128, 0, 0 | ||
# ], | ||
# "fPort": 125, | ||
# "recvTime": "2023-07-19T07:51:25.508306410Z" | ||
# }, | ||
# "output": { | ||
# "data": { | ||
# "report": "standard", | ||
# "endpoint": 0, | ||
# "cmdID": "0x07", | ||
# "clustID": "0x0402", | ||
# "attID": "0x0000", | ||
# "status": 0, | ||
# "report_parameters": { | ||
# "new_mode_configuration": "1", | ||
# "cause_request": "none", | ||
# "secured_if_alarm": "0", | ||
# "secured": "0", | ||
# "no_hearde_port": "0", | ||
# "batch": "0" | ||
# } | ||
# }, | ||
# "warnings": [ "" ] | ||
# } | ||
# }, | ||
# { | ||
# "type": "uplink", | ||
# "description": "uplink of read current value on cluster 0x0402 | payload:11010402000000290992", | ||
# "input": { | ||
# "bytes": [ | ||
# 17, 1, 4, 2, 0, | ||
# 0, 0, 41, 9, 146 | ||
# ], | ||
# "fPort": 125, | ||
# "recvTime": "2023-07-19T07:51:25.508306410Z" | ||
# } | ||
# , | ||
# "output": { | ||
# "data": [{ | ||
# "variable": "temperature", | ||
# "value": 24.5, | ||
# "date": "2023-07-19T07:51:25.508306410Z" | ||
# }], | ||
# "warnings": [ "" ] | ||
# } | ||
# }, | ||
# { | ||
# "type": "uplink", | ||
# "description": "uplink containing a batch of values | payload:362100808098c31ecb824d7b07ba3d", | ||
# "input": { | ||
# "bytes": [ | ||
# 54, | ||
# 33, | ||
# 0, | ||
# 128, | ||
# 128, | ||
# 152, | ||
# 195, | ||
# 30, | ||
# 203, | ||
# 130, | ||
# 77, | ||
# 123, | ||
# 7, | ||
# 186, | ||
# 61 | ||
# ], | ||
# "fPort": 125, | ||
# "recvTime": "2023-07-18T12:19:53.243Z" | ||
# }, | ||
# "output": { | ||
# "data": [ | ||
# { | ||
# "variable": "temperature", | ||
# "value": 28.7, | ||
# "date": "2023-07-18T12:19:53.243Z" | ||
# }, | ||
# { | ||
# "variable": "humidity", | ||
# "value": 37, | ||
# "date": "2023-07-18T12:19:53.243Z" | ||
# }, | ||
# { | ||
# "variable": "battery_voltage", | ||
# "value": 3.707, | ||
# "date": "2023-07-18T12:19:52.243Z" | ||
# } | ||
# ], | ||
# "warnings": [""] | ||
# } | ||
# } | ||
# ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# Vendor profile ID, can be freely issued by the vendor | ||
# This vendor profile ID is also used on the QR code for LoRaWAN devices, see | ||
# https://lora-alliance.org/sites/default/files/2020-10/LoRa_Alliance_Vendor_ID_for_QR_Code.pdf | ||
vendorProfileID: 296 | ||
|
||
# LoRaWAN MAC version: 1.0, 1.0.1, 1.0.2, 1.0.3, 1.0.4 or 1.1 | ||
macVersion: 1.0.2 | ||
# LoRaWAN Regional Parameters version. Values depend on the LoRaWAN version: | ||
# 1.0: TS001-1.0 | ||
# 1.0.1: TS001-1.0.1 | ||
# 1.0.2: RP001-1.0.2 or RP001-1.0.2-RevB | ||
# 1.0.3: RP001-1.0.3-RevA | ||
# 1.0.4: RP002-1.0.0 or RP002-1.0.1 | ||
# 1.1: RP001-1.1-RevA or RP001-1.1-RevB | ||
regionalParametersVersion: RP001-1.0.2-RevB | ||
|
||
# Whether the end device supports join (OTAA) or not (ABP) | ||
supportsJoin: true | ||
# If your device is an ABP device (supportsJoin is false), uncomment the following fields: | ||
# RX1 delay | ||
#rx1Delay: 5 | ||
# RX1 data rate offset | ||
#rx1DataRateOffset: 0 | ||
# RX2 data rate index | ||
#rx2DataRateIndex: 0 | ||
# RX2 frequency (MHz) | ||
#rx2Frequency: 869.525 | ||
# Factory preset frequencies (MHz) | ||
#factoryPresetFrequencies: [868.1, 868.3, 868.5, 867.1, 867.3, 867.5, 867.7, 867.9] | ||
|
||
# Maximum EIRP | ||
maxEIRP: 16 | ||
# Whether the end device supports 32-bit frame counters | ||
supports32bitFCnt: true | ||
|
||
# Whether the end device supports class B | ||
supportsClassB: false | ||
# If your device supports class B, uncomment the following fields: | ||
# Maximum delay for the end device to answer a MAC request or confirmed downlink frame (seconds) | ||
#classBTimeout: 60 | ||
# Ping slot period (seconds) | ||
#pingSlotPeriod: 128 | ||
# Ping slot data rate index | ||
#pingSlotDataRateIndex: 0 | ||
# Ping slot frequency (MHz). Set to 0 if the band supports ping slot frequency hopping. | ||
#pingSlotFrequency: 869.525 | ||
|
||
# Whether the end device supports class C | ||
supportsClassC: false | ||
# If your device supports class C, uncomment the following fields: | ||
# Maximum delay for the end device to answer a MAC request or confirmed downlink frame (seconds) | ||
#classCTimeout: 60 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.