A place users can post their projects. If you have a small project and would like your own dedicated place to post and have others chat about it then this is your spot.

User avatar
By hellohydration
#59148
rom wrote:I would think about a simple TCP Connection with Socket, in your case TCPConnection Client in Java for your Android Phone and simply send the data raw to the phone, it needs to connect to the socket though.
You can't send from a server when there is no client connected to a socket.

I tried it already with this kind of connection and I got an example if you're interested. It works well but I couldn't send data back to the esp on a simple TCP Connection except with AT Firmware and a Telnet Connection.

So you have to connect with the Phone/Application to the ESP8266 server constantly because there is also a timeout on keep-alive connections of 1-5minutes, I'm not sure if it's settable to unlimited on both sides.


Hi,

I'm interested in the example you have, currently trying to do exactly this. Please share a github link to the arduino and android. Thanks!