- Notifications
You must be signed in to change notification settings - Fork13.3k
Request for Help with Implementing MAC Filter on ESP8266 in AP Mode using Arduino Platform(PlatformIO)#9177
-
Hello Everybody, I am working on a project using the ESP8266 and need to implement a MAC filter in Access Point (AP) mode. I am using the Arduino platform(PlatformIO) for programming and require your assistance. My main issue is how to define a list of allowed MAC addresses and disconnect a client if its MAC address is not on the allowed list. I have tried several different codes so far, but it seems that some of these codes do not work correctly. For example, the code that was previously suggested to me: struct auth_deauth_frame frame; wifi_send_pkt_freedom((uint8_t *)&frame, sizeof(frame), 0); This code does not disconnect clients whose MAC addresses are not on the allowed list. I have been using standard Arduino library functions as well as lower-level SDK functions, but I have not been able to resolve the issue. Has anyone had a similar experience or can provide a comprehensive guide for creating an effective MAC filter on the ESP8266? Any sample code or suggestions in this regard would be greatly appreciated. Thank you in advance for your help and guidance. Best regards, |
BetaWas this translation helpful?Give feedback.
All reactions
Replies: 2 comments
-
Hi, I'm not a C/C++ expert, but Iread that it is not recommended to use pointers with packed structures. |
BetaWas this translation helpful?Give feedback.
All reactions
-
hi enjoyneering |
BetaWas this translation helpful?Give feedback.
All reactions
This discussion was converted from issue #9162 on July 30, 2024 16:40.