esp32-tutorial
esp32-tutorial copied to clipboard
Update main.c
current alreadyDiscovered function only looks for a one byte difference, this way checks for all possible combinations and does it faster with memcmp. discovered_devices_num is the number of discovered devices, is increased with each new discover. Is used to speed up the process so it doesn't check MAX_DISCOVERED_DEVICES