www.dragino.com
LSN50 LoRa Sensor Node User Manual
24
/
60
The above photos shows the two parts of the magnetic switch fitted to a door.
The software by default uses the falling edge on the signal line as an interrupt. We need to
modify it to accept both the rising edge (0v --> VCC , door close) and the falling edge (VCC -->
0v , door open) as the interrupt.
The command is:
AT+INTMOD=1 //(more info about INMOD please refer
AT Command Manual
. )
Below shows some screen captures in TTN: