monitor mode led blink & documentation in readme.md

This commit is contained in:
Klaus K Wilting 2018-07-24 21:54:40 +02:00
parent 9b145a95e4
commit c7fd32068c
2 changed files with 5 additions and 0 deletions

View File

@ -102,6 +102,7 @@ Paxcounter generates identifiers for sniffed MAC adresses and collects them temp
- Quick blink (20ms on each 1/5 second): joining LoRaWAN network in progress or pending
- Small blink (10ms on each 1/2 second): LoRaWAN data transmit in progress or pending
- Long blink (200ms on each 2 seconds): LoRaWAN stack error
- Single long flash (2ec): Known beacon detected
**RGB LED:**
@ -110,6 +111,7 @@ Paxcounter generates identifiers for sniffed MAC adresses and collects them temp
- Yellow quick blink: joining LoRaWAN network in progress or pending
- Blue blink: LoRaWAN data transmit in progress or pending
- Red long blink: LoRaWAN stack error
- White long blink: Known Beacon detected
# Payload format

View File

@ -95,6 +95,9 @@ bool mac_add(uint8_t *paddr, int8_t rssi, bool sniff_type) {
if (cfg.monitormode) {
beaconID = isBeacon(addr2int);
if (beaconID) {
#if (HAS_LED != NOT_A_PIN) || defined(HAS_RGB_LED)
blink_LED(COLOR_WHITE, 2000);
#endif
payload.reset();
payload.addAlarm(rssi, beaconID);
senddata(BEACONPORT);