cyberman54 / ESP32-Paxcounter

Wifi & BLE driven passenger flow metering with cheap ESP32 boards
https://cyberman54.github.io/ESP32-Paxcounter/
Other
1.69k stars 397 forks source link

Sniffing parameters don't work #818

Closed rogerv95 closed 2 years ago

rogerv95 commented 3 years ago

I've noticed a weird situation with the boards I'm using (ttgo 2.1). Changing the sniffing parameters doesn't produce any effect in the board. The display messages change but I think it's confusing. Behaviour as follows:

Change BLECOUNTER to 1 / WIFICOUNTER to 0 Bluetooth sniffing works shows bluetooth devices, displays on lcd BLTH:off

Change BLECOUNTER to 0 / WIFICOUNTER to 1 Bluetooth sniffing keeps working because I see the same number of devices displayed and wifi devices. LCD displays wifi: off

In both cases, or with both set to 1 I always get the same reading for BLE devices even with it turned off. I've checked with two different boards running different configurations (one with ble 1 and other 0) and it shows exactly the same number of devices.

cyberman54 commented 3 years ago

You changed the build options, but this does not affect runtime settings once those are stored permanent in NVS of the board. See readme. To clear board NVS before uploading a firmware with modified build options, use pio run -t erase