TCP/UDP??
Posted: Fri May 20, 2016 1:42 am
I had created a project where one could send data between an Android and the ESP.
The ESP code was written in Lua, and the Android side had a B4A app. I cant claim to be an expert either with Lua, or B4A, but I managed to get it working by cut-pasting snippets found on the respective forums.
This used a TCP port for communications between the two. Now, I'd really love to re-write my ESP code in ESP8266Basic, preferably not having to change anything in my Android app. However, I dont see a command to set up a TCP comms port, although there seems to be tons of support for UDP. Have I missed this?
Or is the only way to go is by using UDP instead of TCP? B4A does support UDP, but the task of re-writing the app feels daunting, and I'd like to avoid that if I can.
Any pointers would be highly appreciated, guys!
The ESP code was written in Lua, and the Android side had a B4A app. I cant claim to be an expert either with Lua, or B4A, but I managed to get it working by cut-pasting snippets found on the respective forums.
This used a TCP port for communications between the two. Now, I'd really love to re-write my ESP code in ESP8266Basic, preferably not having to change anything in my Android app. However, I dont see a command to set up a TCP comms port, although there seems to be tons of support for UDP. Have I missed this?
Or is the only way to go is by using UDP instead of TCP? B4A does support UDP, but the task of re-writing the app feels daunting, and I'd like to avoid that if I can.
Any pointers would be highly appreciated, guys!