Android Question Wifi_socket receiving time more than 2sec

sohail786

Member
Hi,
I write a Program to Received Socket program to Received data from Esp32. its works ok But for Receiving data inB4X I have to call Evetime

WiFi_Socket.Initialize("Wifi_socket")
WiFi_Socket.Connect(ServerIp,Port,5000).

Then Sub WiFi_Socket_Connected (Connected As Boolean) & Sub TcpStreams_NewData (Buffer1() As Byte) take 2 to 3 Second .

I have to used timer every 4 sec to execute sub. I want to send & Received Data in Real time & why i have to initialize Socket every time Can someone Guide how can I do.

Kindy Guide in my program as I am new user its difficult to understand Complex Programs.
 

Attachments

  • Backup Wifi2 2022-07-30 01.08.zip
    231.7 KB · Views: 79
  • wifi.txt
    1.5 KB · Views: 86

MicroDrie

Well-Known Member
Licensed User
This search gives a lot of examples how to implement a web socket connection for different B4X environments.
 
Upvote 0
Top