-
Notifications
You must be signed in to change notification settings - Fork 13.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WifiEvent Handling #2910
Comments
@igrr I think you may be working on this. Has there been any progress? |
No, I'm not working on this issue. I don't know of a way to monitor probe requests in the non-OS SDK in SoftAP mode. So no clue how this can be implemented. |
@igrr Apologies - I saw your comment here: #2100 (comment) and thought you were referring to passing the structures associated with events into the event handler so this data could be read. I know it's possible in LUA and by using the SDK directly but I'd like to find a way to do this in Arduino |
- add probe request event handler (#2910) - update WiFi events handling example to use new handler Pro tip: replace blinking LED with ‘analogWrite’ and connect the pin to a loudspeaker (or use a servo to hit a bell). Get notified when someone with a smartphone wanders around your country house.
Sorry — I haven't understood your question correctly last time. Opened #2917 which implements the method you need. If you're using the git version of ESP8266 Arduino core, you can give it a go by doing |
That works perfectly! Thanks very much for your help with this @igrr |
- add probe request event handler (#2910) - update WiFi events handling example to use new handler Pro tip: replace blinking LED with ‘analogWrite’ and connect the pin to a loudspeaker (or use a servo to hit a bell). Get notified when someone with a smartphone wanders around your country house.
@igrr I'm a bit confused on this one. I could swear I had the onProbeRequest handler in use in my own app, but I just checked, and I have it commented out, which means I was waiting on something. No idea what now... |
Thanks @devyte, indeed this has been implemented and is available in master. Applied the right labels. |
Description
Is there a way to use the WiFi Event Handling to recover the RSSI and Mac Address of received probe requests?
Specifically I would like to setup an AP using SoftAP and monitor for any probes it receives, logging the time, MAC and RSSI.
I've taken a good look at the WifiEvent example for a client but it doesn't cover how to access the data in the structures associated with the events. In particular I'm looking to read from this data in ESP8266WiFiType.h
+struct WiFiEventSoftAPModeProbeRequestReceived
+{
+};
Ideallu I'd like to expand this to both run as a dummy AP, but connect to an access point as a client to get the time from NTP and forward Probe requests to an MQTT server
The text was updated successfully, but these errors were encountered: