-->
Page 1 of 2

Android App which send data to ESP8266!

PostPosted: Sat Aug 29, 2015 8:32 am
by Arthur Vasilyev
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.

Re: Android App which send data to ESP8266!

PostPosted: Sat Aug 29, 2015 12:14 pm
by Barnabybear
Hi, your question is not very clear, this link may give you some ideas. https://github.com/openhomeautomation/esp8266-relay

Re: Android App which send data to ESP8266!

PostPosted: Sat Aug 29, 2015 1:47 pm
by Arthur Vasilyev
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.

Re: Android App which send data to ESP8266!

PostPosted: Sat Aug 29, 2015 2:04 pm
by martinayotte
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.