Socket issues on android platform
I am developing an android app, which should be able to send and receive data to a stm32-MCU over tcp/ip (using an spwf01sa serial-to-wifi module). The s2w-module provides a server...
My application can be connected to this server to start communication. The data-transfer is logged and displayed in the app and on the stm32-chip (over a simple lcd).
So now, everything is working on windows, except some performance issues (exactly every 10 seconds, there is a little timeout, where the data-transfer is stucked but continues after a second maybe).
The same code using android is also working, but the data-transfer stopps after this little timeout...sometimes the transfer restarts him-self, but stucks again after some seconds.
I am using the non-blocking approach, very similar to the fortune-example. I guess this is a OS-issue..
Can anyone help me? I'm very thankful for every comment..thank you
This post is deleted!
Pablo J. Rogina
In addition, could you please clarify (maybe a block diagram) where the spwf01sa serial-to-wifi module sits? I suspect this module goes together with the stm32-mcu but just to be sure...