Hi RNT team,
I have just started working through the excellent tutorials I have just purchased from you, starting with the ‘Building Web Servers with ESP32 and ESP8266‘. I have ordered an ESP32 DOIT DevKit online but won’t have it for another couple of weeks apparently. Can’t get one locally here in NZ. In the meantime I am trying to use my dual Mega2650+ESP2886 Wifi board (https://www.jaycar.co.nz/mega-with-wi-fi/p/XC4421?pos=1&queryId=f342858cc56eb6f7350e5f1f7afe0e27) which I have used successfully with the Arduino IDE to build webservers including your NTP Client-Server. However in VS Code / Platform IO I can’t get your ESP8266 ‘Hello World’ webserver going. It all loads normally and finishes with “Hash of data verified. Leaving… Soft resetting… ==== [SUCCESS] Took 21.89 seconds“, but when I run it (I have to change the DIP switches on the board and reset it to do that), nothing appears on the serial monitor, which incidentally says “— Terminal on COM5 | 9600 8-N-1” even though we specified monitor speed = 115200 baud in platformio.ini. If I open the Arduino IDE with board connected and open the serial monitor at 115200 baud I don’t see anything there either even though the board is connected. Furthermore I can’t see it as a connected device on my router monitoring tool so the webserver doesn’t seem to be running on the board.
One possibly related issue is that I’m not sure which board to select when I start the project. I have tried a couple of the generic ESP8266 options. One doesn’t work and the other esp07 at least permits sketch upload as described. The ESP8266 on this dual processor board has 4Mb Flash. Could the board selection be a problem even though the sketch uploads ok and it has plenty of Flash memory?
Can you explain why the serial monitor in VS Code states 9600 baud when we have requested 115200?
Perhaps I’ll just have to wait for my ESP32 DOIT Devkit board to do any more testing?? I do have an ESP32CAM board I can play with in the meantime. Its already running a webserver that I can access the camera through but there’s lots more I’d like to explore.
Your tutorials are beautifully written. Very thorough and clear. Thank you.
Thanks in anticipation of your help.
I tried another one of the generic ESP8266 board options (esp07s) and everything worked as expected, including the serial monitor showing the correct speed (115200). Apologies for my premature call for help. Hopefully it will be smooth sailing from here on.
Yes thank you Sara. All working as expected. I will have to delay the next bit of my working through the tutorial because you can’t access the on-board LED or other pins from the ESP8266 chip on the “MegaWiFI” board except by messaging the Mega2560 to do it for you. My ESP32 DOIT Devkit has been despatched 🙂 but is not due for delivery until end of the month. Coming by pony express from US I think.
I later found under “boards” on my PIO Home that the espo7s board option indicates it is for a 4Mb board (which is what the ESP8266 chip on the MegaWiFi board has). This wasn’t visible when selecting a board when opening a new project.
I’ll mark this issue as resolved. If you need further help, you just need to open a new question in our forum.