WiFi - Set up WiFi AP Mode
In AP mode, Ameba can accept at most 3 station connections, and can be set to open mode or WPA2 mode.
AmebaD [AMB21 / AMB22 / AMB23 / BW16] x 1
In this example, we turn on the AP mode of Ameba and connect station to Ameba.
Open the WiFi AP example,
“File” → “Examples” → “WiFi” → “WiFiAPMode”
In the highlighted code snippet, fill in your SSID, PASSWORD and CHANNEL.
The code highlighted in green is the API we used to turn on the AP mode in security mode.
If you want to turn on the AP mode in open mode, please modify the code to
status = WiFi.apbegin(ssid, channel);
Then upload the sample code and press reset, and you can see related information shown in serial monitor.
In the figure below, we show the messages shown in serial monitor when two stations connect to Ameba AP in open mode:
In the figure below, we show the messages shown in serial monitor when a station connects to Ameba AP in security mode: