Skip to content

Connect to AP using SSID, Password, and BSSID? How exactly? #9163

Closed
@madmacks59

Description

@madmacks59

Platform

  • Hardware: ESP-12
  • Development Env: Arduino IDE 2.x
  • Operating System: Windows
  • Module: Generic ESP8266 Module

Problem Description

I've been trying to connect to a specific AP using its SSID/Password and the MAC address of the AP. I have several APs spread around my property and most of my devices attach to the strongest AP. In my particular application I want the ESP8266 to connect to a specific AP and ignore all the others. To do this I should be able to use the "WiFi.begin(ssid, password, channel, bssid, connect)" option.

But, I've tried multiple ways to define the bssid parameter properly and none of the are working. Can someone provide an example of how exactly to do this within the Arduino IDE?

And example of the definition code and the call code would really help...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions