I want to create a web server with Arduino méga and module esp8266 with one (single) code (I put it in Arduino méga), if I can.
I search in many sites but couldn't find it.
Web server like: address IP (192.168.1.14)
Simple text html (hello word)
I want to create a web server with Arduino méga and module esp8266 with one (single) code (I put it in Arduino méga), if I can.
I search in many sites but couldn't find it.
Web server like: address IP (192.168.1.14)
Simple text html (hello word)
Try this:
Which library are you using for the ESP8266 module?
If you mean using your ESP8266 as AT module, the libraries WiFiEsp or WiFiEspAT contains several examples
I've not tested it with esp8266 as wifi module, but also with this library should be possible because you need to pass the client reference to the library.
if this is for exploration purpose that's ok, otherwise you should just get an ESP32 and leverage what the chip / OS has to offer
the mega uses 5V logic the ESP-01 3.3V - you should use a potential divider on the Mega TX to ESP-01 RX line, e.g.
are you using an ESP-01 or a ESP01S?
upload a schematic of your wiring?
I support that.
If you just need some free pins, get a makerfriendly NodeMCU or Wemos D1 and program the ESP8266.
If you need more pins, use the ESP32.
If you still need more pins, use I2C expanders and extend the pins.
The ESP's have fare more SRAM, you can write larger programs and are running far higher clock rate. There is absolute no need to limit yourself on the 16MHz of the Arduino.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.