Author Topic: Wifi switch with Amazon Dash button  (Read 585 times)

0 Members and 1 Guest are viewing this topic.

Offline jdev99

  • Contributor
  • Posts: 16
  • Country: england
Wifi switch with Amazon Dash button
« on: October 13, 2018, 03:03:10 pm »
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
 

Offline jdev99

  • Contributor
  • Posts: 16
  • Country: england
Re: Wifi switch with Amazon Dash button
« Reply #1 on: October 14, 2018, 05:46:31 pm »
Never mind, I figured it out, by using the hacked version of the above.

"ESP8266 enhanced sniffer by Kosme https://github.com/kosme"

For those who want to do the same, find attached 2 options.
I just added a little bit to the original versions, and I am a total beginner so please excuse any wrong programming structures.
Take note, that there are things to change in the   "functions.h"   and   "structures.h"     files to make it work for your Dash buttons.

It works. ;)
« Last Edit: October 14, 2018, 05:50:21 pm by jdev99 »
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf