-->
Page 1 of 1

ESP8266 Arduino Ide StationAp Mode

PostPosted: Thu Jun 16, 2016 2:55 pm
by szymonm2
I cannot find this information anywhere online, how do I make the esp8266 into stationap using the arduino ide?

Re: ESP8266 Arduino Ide StationAp Mode

PostPosted: Thu Jun 16, 2016 6:54 pm
by flagtrax
szymonm2 wrote:I cannot find this information anywhere online, how do I make the esp8266 into stationap using the arduino ide?


Interestingly, I'm searching for that same information. There is a statement in the ESP8266wIfI library here https://github.com/esp8266/Arduino/blob ... fi-library
(WiFi.mode(m): set mode to WIFI_AP, WIFI_STA, WIFI_AP_STA or WIFI_OFF. )
But I haven't been able to figure out the syntax. I've put it in my sketch several ways and get the same error ("WIFI" does not name a type) . I've done this using the lua version under NodeMCU successfully, but not using the Arduino IDE.

Re: ESP8266 Arduino Ide StationAp Mode

PostPosted: Thu Jun 16, 2016 11:21 pm
by Pablo2048
Look into Examples in Your Arduino IDE. There is one called WiFiAccessPoint in ESP8266WiFi section...

Re: ESP8266 Arduino Ide StationAp Mode

PostPosted: Fri Jun 17, 2016 8:36 am
by flagtrax
Pablo2048 wrote:Look into Examples in Your Arduino IDE. There is one called WiFiAccessPoint in ESP8266WiFi section...

Thanks Pablo, I got it to work using " Wifi.mode(WIFI_STA) ". I think I was putting it in the wrong location in the sketch..