torntrousers wrote:also, the semantics of the for loop are subtly different than the original code I suggested so you also need to use just < instead of <= in the for loop, soCode: Select allfor (i = 0; i < howManySsids; i++) {
Kicking myself!
Explore... Chat... Share...
torntrousers wrote:also, the semantics of the for loop are subtly different than the original code I suggested so you also need to use just < instead of <= in the for loop, soCode: Select allfor (i = 0; i < howManySsids; i++) {
pablopablo wrote:torntrousers wrote:also, the semantics of the for loop are subtly different than the original code I suggested so you also need to use just < instead of <= in the for loop, soCode: Select allfor (i = 0; i < howManySsids; i++) {
Kicking myself!
wifi disconnect ()
#include <ESP8266WiFi.h>
String ssids[] = { “The Apple is on the table “, "Banana is on the floor“, "Orange is everywhere“};
int howManySsids = 3;
void setup() {
WiFi.persistent(false);
WiFi.mode(WIFI_AP);
}
int i;
void loop() {
for (i = 0; i<howManySsids; i++){
WiFi.softAP(ssids[i].c_str());
delay(2000);
WiFi.disconnect();
}
}
pablopablo wrote:I now see another issue:
The former ssid is still visible when the new one comes up...I am wondering if it is possible to remove the former one before the next one appears...
I'm not sure that we can do anything about that from the ESP8266 end, I'm guessing its the remote client - your phone or PC -- that is caching the recent Wifi access points that its discovered and showing them its its list of SSID's. So all you can do is wait for the client timeout to drop them off its available SSID list.
It takes about 20-25 seconds for home assistant c[…]
I tried to upgrade tof my sonoff basic R2 with the[…]
a problem Perhaps you want to define "Probl[…]
Rebooting your router will not give you a faster I[…]
There are no other notifications from esptool.py i[…]
Using the Arduino IDE, you'll learn how to set up […]
In this project, you will post to Twitter using an[…]
In this project, we will build a water level contr[…]
I guess I'm late, but I had the same problem and f[…]
Last night I received my first D1 Minis for a lear[…]
Although I am aware that this is an old post, I fe[…]