cancel
Showing results for 
Search instead for 
Did you mean: 

Socket response time

hector
Associate II
Posted on June 25, 2015 at 15:29

Hi,

I'm trying to set up a communication between two SPWF01SA.

A is set as the server, B as the client. 

I wrote a text to send from A to B when the WIND 61 + WIND 60 are detected. If a try to do it just after the WIND 60, B misses some bytes (at the beginning of the frame).

The number of bytes lost changes randomly.

I put a delay of 3 milliseconds after the WIND60 and it worked just fine...

Why can't I send my frame just after the WIND60?

Thank you

3 REPLIES 3
Posted on June 26, 2015 at 08:18

Hi Hector,

thanks for signaling it.

That's required time to start/stop right tasks for command/data mode management.

Thanks again

jerry

hector
Associate II
Posted on June 29, 2015 at 12:46

Ok, got it.

Can the server B close the socket? Since AT+S.SOCKC can be used by the client B only...

Thanks again.

Posted on June 29, 2015 at 14:32

at+s.sockd=0 can be used to close the socket server