LPWA Module Series
BG95&BG77&BG600L Series TCP/IP Application Note
BG95&BG77&BG600L_Series_TCP/IP_Application_Note 21 / 56
Parameter
Integer type. Query type.
0 Query connection status of all socket services in a specified context
1 Query connection status of a specified socket service
Integer type. Context ID. Range: 1–16.
Integer type. Socket service index. Range: 0–11.
String type. The socket service type.
"TCP" Start a TCP connection as a client
"UDP" Start a UDP connection as a client
"TCP LISTENER" Start a TCP server to listen for TCP incoming connections
"TCP INCOMING" Start a TCP connection accepted by a TCP server
"UDP SERVICE" Start a UDP service
String type. IP address.
If <service_type> is "TCP" or "UDP", it is the IP address of a remote server.
If <service_type> is "TCP LISTENER" or "UDP SERVICE", it is the local IP
address.
If <service_type> is "TCP INCOMING", it is the IP address of a remote client.
Integer type. Remote port number.
If <service_type> is "TCP" or "UDP", it is the port of a remote server.
If <service_type> is "TCP LISTENER" or "UDP SERVICE", the port is invalid.
If <service_type> is "TCP INCOMING", it is the port of a remote client.
Integer type. Local port number.
If <local_port> is 0, then the local port is assigned automatically.
Integer type. Socket service status.
0 "Initial": connection has not been established
1 "Opening": client is connecting or server is trying to listen
2 "Connected": client/incoming connection has been established
3 "Listening": server is listening
4 "Closing": connection is closing
Integer type. Only valid when <service_type> is "TCP INCOMING". <serverID>
represents the ID of the server that accepts this TCP incoming connection, and the
value is the same as <connectID> of "TCP LISTENER".
Integer type. Data access mode.
0 Buffer access mode
1 Direct push mode
2 Transparent transmission mode
String type. COM port of socket service.
"usbmodem" USB modem port
"uart1" UART1 port