ESP8266 Webserver Project

Moderator: Sprite_tm

User avatar
By Arthur Vasilyev
#27315 There is a microcircuit with ESP8266, when it gets "200" value the light turns on and microcircuit send a "100" value. I need to write an Android app which will send a byte value to it and will get an answer. I already connected to this WI-Fi module. Programming lang is Java.
User avatar
By Arthur Vasilyev
#27346
Barnabybear wrote:Hi, your question is not very clear, this link may give you some ideas. https://github.com/openhomeautomation/esp8266-relay


I need to send some data to ESP8266. I am trying to do it using TCP protocol but it doesn't work. Think it cause I don't know what port of ESP I should connect to. I found an example of code here but my app crashes. I wondered that anybody tried to write a simple Android app just to send a single value to ESP8266.
User avatar
By martinayotte
#27348 You can take a look at WiFiTelnetToSerial example, and remove the serial portion, and simply parse incoming data received by the telnet port 23. On Android side, I'm sure you can find a piece of code that can connect to port 23 and send some data.