Neo_M590E V1 GPRS Module AT Command Set
Copyright © Neoway Technology Co., Ltd
If there are multiple pieces of base station information, the data circulates between MCC
and ENDED.
9.2 Getting the Local Port of a Socket: +GETLPORT
To get the local port of a socket
<n>: Socket ID, ranging from 0 to 5
<CR><LF>+GETLPORT: <port_num><CR><LF>
<CR><LF>OK<CR><LF>
or
<CR><LF>ERROR<CR><LF>
<port_num>: Local port ID
Obtain the local port ID of socket 1.
Obtain the local port of socket 2.
Error is returned because no link is set
up on socket 2.