JosephHewitt / wardriver_rev3

A portable ESP32-based WiFi/Bluetooth scanner for Wigle.net.
https://wardriver.uk
GNU General Public License v3.0
221 stars 19 forks source link

Add support for using ESP32 pins to identify board for configuration. #147

Closed CoD-Segfault closed 2 months ago

CoD-Segfault commented 3 months ago

Adding initial support for using GPIO pin-based board variant detection. This will allow different boards to be identified and configuration be made without needing to use the config file on the SD card. This uses GPIO13 to identify whether it is a ESP32 A or B, and GPIO25, 26, 32, and 33 to create an identification byte. This will allow for up to 15 variants (1-15) to be detected, with the pulldowns creating a default configuration (0) that falls back on the config file as it has been functioning.

As we have already discussed, more work will need to be done to parameterize the device string for the CSV header.