HTTP Server and Client for both Wemos D1 Mini and NodeMCU
Hello dear readers,
I am giving you code for HTTP Server and Client for both Wemos D1 Mini and NodeMCU. You can use this code in your Arduino IDE.
You can make one device HTTP Server and the other HTTP Client and both will communicate with each other.
You can also use it to call a web API if you have internet access.
I have tested it on Wemos D1 Mini, and I am pretty sure that it will work just fine in NodeMCU also.
This code will create a hotspot and a HTTP web server. It will print out its IP Address after creating the hotspot(or Access Point).
Note this IP Address and pass it to HTTP Client to connect to this device(Server).