14.03.2015 Views

AT Commands Reference Manual - wireless netcontrol GmbH

AT Commands Reference Manual - wireless netcontrol GmbH

AT Commands Reference Manual - wireless netcontrol GmbH

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 4: Using the <strong>Commands</strong><br />

Autosend Data by Watermark and by Timeout Iteraction<br />

Let's configure a socket #3 data storage watermark to 3 bytes and socket autopush timeout to<br />

1000 (1 sec).<br />

<strong>AT</strong>+MIPSETS = 3,3,1000<br />

OK<br />

+MIPSETS: 3,0<br />

Write 4 bytes of data (8 bytes in encoded form) to empty socket #3:<br />

<strong>AT</strong>+MIPSEND=3,"61626364"<br />

OK<br />

+MIPSEND: 3,0,1371<br />

A +MIPSEND unsolicited response returns 1371 empty bytes value - it means, that only one byte<br />

(last byte) was stored, because first three bytes was sent as result watermark reach. The last byte<br />

will send when autosend timeout expired (after 1000 mS). The remote side will receive two<br />

packets of data:<br />

+MIPRTCP: 1,0,616263<br />

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!