I got some "Amazon Dash" buttons which I want to use as a WiFi remote switch, together with an ESP8266, directly, not via the Internet - if it is possible.
I found the code for a "Wifi Sniffer" which detects all wifi signals in my area (the MAC address and SSID), it also detects the Dash button when I press it.
I now need some advice on how to "capture" the MAC address in order to use it for my switch function.
The idea is to match the MAC address of the wifi codes captured to that of the Dash button and then set an output on the ESP8266 high or low.
Attached is the code of the sniffer I found.
Thank you for any advice.
https://www.hackster.io/rayburne/esp8266-mini-sniff-f6b93a