torntrousers wrote:Code: Select all#include <ESP8266WiFi.h>
String ssids[] = { "Apple", "Banana", "Orange"};
int howManySsids = 3;
void setup() {
WiFi.persistent(false);
WiFi.mode(WIFI_AP);
}
int i;
void loop() {
WiFi.softAP(ssids[i++].c_str());
if (i >= howManySsids) i = 0;
delay(10000);
}
Thanks again torntrousers
OK, trying to code this but getting my logic messed up (Can code a bit - but its been a while!)
#include <ESP8266WiFi.h>
String ssids[] = { "Apple", "Banana", "Orange"};
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);
delay(2000);
}
}
Which is returning:
exit status 1
no matching function for call to 'ESP8266WiFiClass::softAP(String [3])'
Any suggestions welcome and thanks for your time.