In your previous message you wrote...
...used in the system? For example like "http:// ipaddress/gpio/0". Based on here, is it...
that's why I used the example like http:// ipaddress
If it is an access point or WiFi client and you already know the IP, you can put
http:// 192.168.43.42/
After that number you write an expression, for example
gpio/on
gpio/off
on_led
off_led
give_me_random
...
that expression will reach the ESP8266 by...
GET /gpio/on HTTP/1.1
GET /gpio/off HTTP/1.1
GET /on_led HTTP/1.1
GET /off_led HTTP/1.1
GET /give_me_random HTTP/1.1
The code will check if that message contains the sent expression...
if (received.indexOf("gpio/on") != -1){
if (received.indexOf("gpio/off") != -1){
if (received.indexOf("gpio/led_on") != -1){
if (received.indexOf("gpio/led_off") != -1){
if (received.indexOf("give_me_random") != -1){
The webpage is used in case you want the ESP8266 to send you a response message, it will receive it in Web.GotText.responseContent
Check this example...