File tree 1 file changed +3
-2
lines changed
tasmota/tasmota_xdrv_driver
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -88,7 +88,8 @@ void LoraWanDecode(struct LoraNodeData_t* node_data) {
88
88
uint8_t FPort;
89
89
*/
90
90
if (bitRead (Lora->settings .flags , TAS_LORA_FLAG_DECODE_ENABLED)) { // LoraOption3 1
91
- if (0x00161600 == Lora->settings .end_node [node_data->node ].DevEUIh ) { // MerryIoT
91
+ uint32_t manufacturer = Lora->settings .end_node [node_data->node ].DevEUIh >> 8 ;
92
+ if (0x001616 == manufacturer) { // MerryIoT
92
93
if (120 == node_data->FPort ) { // MerryIoT door/window Sensor (DW10)
93
94
if (9 == node_data->payload_len ) { // MerryIoT Sensor state
94
95
// 1 2 3 4 5 6 7 8 9
@@ -122,7 +123,7 @@ void LoraWanDecode(struct LoraNodeData_t* node_data) {
122
123
}
123
124
}
124
125
125
- else if (0xA840410E == Lora-> settings . end_node [node_data-> node ]. DevEUIh ) { // Dragino
126
+ else if (0xA84041 == manufacturer ) { // Dragino
126
127
if (10 == node_data->FPort ) { // Dragino LDS02
127
128
// 8CD2 01 000010 000000 00 - Door Open, 3.282V
128
129
// 0CD2 01 000011 000000 00 - Door Closed
You can’t perform that action at this time.
0 commit comments