Getting MAC Address of Devices NOT connected in your network

All ESP8266 boards running MicroPython.
Official boards are the Adafruit Huzzah and Feather boards.
Target audience: MicroPython users with an ESP8266 board.
Post Reply
User avatar
MorseIot
Posts: 38
Joined: Fri Jun 29, 2018 12:32 am

Getting MAC Address of Devices NOT connected in your network

Post by MorseIot » Thu Jul 11, 2019 11:17 am

configuration:

esp8266
AP mode
wifi

problem:

I need to capture mac address, Rssi etc from mobile devices close to ESP8266 without being connected
promiscuous WiFi scanned
Does anyone know Micropython code?

User avatar
jimmo
Posts: 2754
Joined: Tue Aug 08, 2017 1:57 am
Location: Sydney, Australia
Contact:

Re: Getting MAC Address of Devices NOT connected in your network

Post by jimmo » Sat Jul 13, 2019 12:02 pm

I believe this requires promiscuous mode, as you say. This is supported on the ESP8266 (and ESP32) hardware, but not available in MicroPython. It would appear this wouldn't be too hard to add though -- via esp_wifi_set_promiscuous() & esp_wifi_set_promiscuous_rx_cb().

User avatar
MorseIot
Posts: 38
Joined: Fri Jun 29, 2018 12:32 am

Re: Getting MAC Address of Devices NOT connected in your network

Post by MorseIot » Tue Jul 16, 2019 8:56 pm

jimmo wrote:
Sat Jul 13, 2019 12:02 pm
I believe this requires promiscuous mode, as you say. This is supported on the ESP8266 (and ESP32) hardware, but not available in MicroPython. It would appear this wouldn't be too hard to add though -- via esp_wifi_set_promiscuous() & esp_wifi_set_promiscuous_rx_cb().
Correct, I already use with arduino and sming, I have interest to implement in micropython. Thank you

Post Reply