Chat freely about anything...

User avatar
By djbetty2004
#26558 Hello all.
My name is Elisavet and I am new here.

I bought a ESP8266 module in order my Arduino board support wireless connectivity.

I have a question about it:
Is there any way to connect my Arduino/ESP8266 board to my Laptop and every time I change network, I want be able to set different SSID and password for my network. Until know I have observe in websites that I have to set the SSID and password in programming phase. But I dont want that. I want to change the network configuration with another way. Is that possible?
User avatar
By aalku
#26662 I guess you are using the AT Command (default) firmware. You have to make your own way to get the new WIFI configuration into the ESP8266 when it changes. You can "tell" that config to your arduino and it uses AT commands to program it into the ESP8266.

I gave up using the AT Commands. In my oppinion they are not good to be used with arduino at least to make a web server.
Now I'm using the ESP8266 as arduino board itself as it has a lot more memory, it is faster and you can get rid of AT commands. More info here https://github.com/esp8266/Arduino

On that approach I made the ESP8266 set a softAP with a captive portal. You connecto to it (direcly vía wifi) and a web page appears to allow you to setup your WLAN. Then you connect back to your WLAN and the ESP8266 will be there too. I posted it as example here https://github.com/esp8266/Arduino/tree ... alAdvanced

I insist this is all about running arduino sketches INSIDE the ESP8266.
User avatar
By djbetty2004
#26930 Thank you for your answer.

How can I program the ESP8266? I think, it needs a 3V breakout board in order to connect it to computer. I have only a 5V breakout board. Can I change it somehow, in order to program the ESP8266?

I saw these files: https://github.com/esp8266/Arduino/tree ... alAdvanced

Which of these files I should upload to the ESP8266? Can I upload multiple files? (newbie questions :roll: )
User avatar
By djbetty2004
#27696
aalku wrote:I guess you are using the AT Command (default) firmware. You have to make your own way to get the new WIFI configuration into the ESP8266 when it changes. You can "tell" that config to your arduino and it uses AT commands to program it into the ESP8266.

I gave up using the AT Commands. In my oppinion they are not good to be used with arduino at least to make a web server.
Now I'm using the ESP8266 as arduino board itself as it has a lot more memory, it is faster and you can get rid of AT commands. More info here https://github.com/esp8266/Arduino

On that approach I made the ESP8266 set a softAP with a captive portal. You connecto to it (direcly vía wifi) and a web page appears to allow you to setup your WLAN. Then you connect back to your WLAN and the ESP8266 will be there too. I posted it as example here https://github.com/esp8266/Arduino/tree ... alAdvanced

I insist this is all about running arduino sketches INSIDE the ESP8266.


Hi, I compiled the "CaptivePortalAdvanced" but it shows me some errors.
Have you done any changes in the code?

The Error is - > 'ESP8266WiFi' was not declared in this scope