Revert "10s BLE scan time looks enough"
This reverts commit 72193b0b3a
.
This commit is contained in:
parent
72193b0b3a
commit
9f2a2919c5
@ -1,8 +0,0 @@
|
|||||||
[
|
|
||||||
{
|
|
||||||
title: 'ESP32-Paxcounter'
|
|
||||||
settings:
|
|
||||||
'editor.tabLength': 4
|
|
||||||
'editor.showInvisibles': true
|
|
||||||
}
|
|
||||||
]
|
|
@ -33,7 +33,6 @@ bool mac_add(uint8_t *paddr, int8_t rssi, bool sniff_type) {
|
|||||||
uint16_t hashedmac;
|
uint16_t hashedmac;
|
||||||
std::pair<std::set<uint16_t>::iterator, bool> newmac;
|
std::pair<std::set<uint16_t>::iterator, bool> newmac;
|
||||||
|
|
||||||
rgb_set_color(COLOR_MAGENTA);
|
|
||||||
addr2int = ( (uint64_t)paddr[0] ) | ( (uint64_t)paddr[1] << 8 ) | ( (uint64_t)paddr[2] << 16 ) | \
|
addr2int = ( (uint64_t)paddr[0] ) | ( (uint64_t)paddr[1] << 8 ) | ( (uint64_t)paddr[2] << 16 ) | \
|
||||||
( (uint64_t)paddr[3] << 24 ) | ( (uint64_t)paddr[4] << 32 ) | ( (uint64_t)paddr[5] << 40 );
|
( (uint64_t)paddr[3] << 24 ) | ( (uint64_t)paddr[4] << 32 ) | ( (uint64_t)paddr[5] << 40 );
|
||||||
|
|
||||||
@ -74,8 +73,6 @@ bool mac_add(uint8_t *paddr, int8_t rssi, bool sniff_type) {
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
rgb_set_color(COLOR_NONE);
|
|
||||||
|
|
||||||
// True if MAC WiFi/BLE was new
|
// True if MAC WiFi/BLE was new
|
||||||
return newmac.second;
|
return newmac.second;
|
||||||
}
|
}
|
||||||
@ -141,3 +138,4 @@ void wifi_sniffer_packet_handler(void* buff, wifi_promiscuous_pkt_type_t type) {
|
|||||||
}
|
}
|
||||||
yield();
|
yield();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
#define BLECOUNTER 1 // comment out if you don't want BLE count
|
#define BLECOUNTER 1 // comment out if you don't want BLE count
|
||||||
|
|
||||||
// BLE scan time
|
// BLE scan time
|
||||||
#define BLESCANTIME 10 // [seconds]
|
#define BLESCANTIME 15 // [seconds]
|
||||||
#define BLESCANCYCLE 2 // BLE scan once after each <BLECYCLE> wifi scans
|
#define BLESCANCYCLE 2 // BLE scan once after each <BLECYCLE> wifi scans
|
||||||
|
|
||||||
// WiFi Sniffer cycle interval
|
// WiFi Sniffer cycle interval
|
||||||
|
Loading…
Reference in New Issue
Block a user