| Electronic Components Datasheet Search |
|
UM1695 Datasheet(PDF) 17 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
UM1695 Datasheet(HTML) 17 Page - STMicroelectronics |
|
17 / 46 page ![]() DocID025531 Rev 5 17/46 UM1695 Command reference 46 Example: AT+S.SOCKON=myserver,1234,t<cr> ID: 00<cr><lf> <cr><lf> OK<cr><lf> AT+S.SOCKON=myserver,456,u,ind<cr> ID: 01<cr><lf> <cr><lf> OK<cr><lf> 2.14 AT+S. SOCKW: write len bytes of data to socket AT+S. SOCKW allows to write data to socket. This command accepts data after the <cr> at the end of the command line. The host is expected to supply <len> characters of data after the end of the command line. Note: When the ok token has not been received is really important to handle properly the error stage. In fact, the "at+sockw" command is not reentrant. If bytes are lost during data transfer over the UART, the module remains in waiting stage for incoming bytes. Arguments: <ID>: socket identifier <len>: data length to send (in bytes), up to 4096 bytes Example: AT+S.SOCKW=00,11<cr> Test_socket <cr><lf> OK<cr><lf> 2.15 AT+S.SOCKQ: query pending data AT+S.SOCKQ returns the number of bytes of data waiting on socket. Arguments: <ID>: socket identifier Example: AT+S.SOCKQ=01<cr> <cr><lf> DATALEN: 12 <cr><lf> OK<cr><lf> 2.16 AT+S. SOCKR: return len bytes of data from socket AT+S. SOCKR allows to read data from socket. Arguments: <ID>: socket identifier <len>: data length to read Example: |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |