<id>
Web socket client identifier
<status>
Default:0; 0 → Normal Closure; 1 → Going Away; For a
complete list of the status values defined for the web socket,
refer to the related standard
Note:
When a web socket client receives an indication about web socket server gone (WIND:89), the web socket
resource is not automatically cleared. Moreover, flushing pending data (using the AT+S.WSOCKR command) is
mandatory before closing the socket connection (AT+S.WSOCKC). If the buffer is not empty, the
“ERROR:Pending data” is raised.
6.64
AT+S.WSOCKW
To write data to a web socket.
Usage:
AT+S.WSOCKW=<id>,[<last_frame>],[<last_frag>],[<binary>],<len><cr>{data}
Parameters:
<id>
Web socket client identifier
<last_frame>
Default:0. 1 → Last frame flag
<last_frag>
Default:0. 1 → Last frag flag
<binary>
Default:0, textual. 1 → Binary flag
6.65
AT+S.WSOCKR
To read data from a web socket client.
Usage:
AT+S.WSOCKR=<id>,[<len>]<cr>
Parameters:
<id>
Web socket client identifier
<len>
Default 0. 0 value indicates read the full buffer
6.66
AT+S.WSOCKL
To list opened web socket clients.
Usage:
AT+S.WSOCKL<cr>
UM2114
AT+S.WSOCKW
UM2114
-
Rev 3
page 39/66