Category : sockets

I want to send 2MB wave file via android device and esp8266 real time.And esp8266 is connected to STM32F030 . I used wifi bridge library from this site. I changed BaudRate to 2.4M bit per second . Because Flash and RAM of STM32 is low , I have to send data as 512 byte from ..

Read more

I have code to refresh data from server which I need to run even when screen is off. I tried to do this with an isolate: static void isolateFunc(SendPort mainSendPort) async{ String _answer = ""; while(true){ Socket socket = await Socket.connect(ipAddress, port, timeout: Duration(seconds: 5)); socket.add(utf8.encode("connection test")); socket.listen((List<int> event) { _answer = utf8.decode(event); }); socket.close(); ..

Read more

I’m trying to connect an Android app using Native Socket.IO to an Express server. The server has a very simple job (currently) of taking incoming traffic on 4200 and sending it back out to other clients so they can display it – although right now I’m just debugging the server and this Android implementation, hoping ..

Read more

I am new to react-native & facing a hard time to keep the socket connection alive in the background/killed app. I have started a foreground service to track the user’s location and sending the location every time the location changes through client socket in react-native. When the app is in foreground, every thing works fine ..

Read more