Its the code you need to run on the ESP8266 or on the microprocessor that is the much harder bit.
The code that you need to write in AppGameKit is very simple. Its the same code you would write to connect to another PC using sockets.
You create a socket connection to the ESP8266 device:
sid = ConnectSocket( szIP$, 8080, 3000 )
szIP$ = "192.168.0.37" <- this has to be the IP address of the ESP8266 device
You can get this manually by hardcoding it on the ESP8266 or by using MDNS or a proprietary multicasting or even checking your local router for IP's
Check that it connects ok and if it has, then send a packet if a key is pressed
if GetRawKeyPressed(87) and GetSocketConnected(sid)
// Create a packet
SendSocketByte(sid,20) // start byte
SendSocketByte(sid,dataval) // data value could be whether to turn on an LED or set PWM value etc....
SendSocketByte(sid,dataval2)
SendSocketByte(sid,checksum)
FlushSocket(sid)
endif
This would then send a packet of data (just 4bytes in this case) to the ESP8266. It can then interpret this packet however you want to depending on what code you have written on the module itself. Most of the work is writing the code to run on the ESP8266 device itself to interpret packets of data to do something useful like turn on a relay or set a LED colours etc.... The ESP8266 can have the standard AT firmware on it or custom code written by a user so its on that device where most of the work is. Its the same with most IOT devices. Sending HTTP requests is another way and you use the HTTP commands to do that.