At+Nsost Sendto Command (Udp Only) - Quectel BC95 Manual

Hide thumbs Also See for BC95:
Table of Contents

Advertisement

<listen port>
A number in the range 0-65535. This is the local port that will be included in sent
messages and on which messages will be received.
<socket>
This is a reference to the created socket. It is an integer greater than or equal to 0.
<receive control>
Set to 1 if incoming messages should be received, 0 if incoming messages should
be ignored. Default is 1 (messages will be received).
Example
AT+NSOCR=DGRAM,17,5683,1
0
OK
AT+NSOCR=DGRAM,17,1234,1
1
OK
Neul Hi2110 Implementation
A maximum of 7 sockets are supported, but other services may reduce this number.
Only UDP, protocol 17, is supported.
<type>=RAW and <protocol>=6 will be accepted, but are not supported and should not be used.

4.12. AT+NSOST SendTo Command (UDP Only)

Send a UDP datagram containing length bytes of data to remote_port on remote_addr.
This command sends a UDP datagram containing length bytes of data to the specified host:port. It will
return with the socket that it was sent on, and the number of bytes of data sent. If the amount of data is
larger than the largest datagram that can be sent, +NSOST return value will indicate how much of the
data was successfully sent. Refer to Chapter 6 for possible <err> values.
AT+NSOST SendTo Command (UDP Only)
Set Command
AT+NSOST=socket,remote_addr,rem
ote_port, length,data
BC95_AT_Commands_Manual
Response
<socket>,<length>
OK
+CME ERROR: <err>
Confidential / Released
NB-IoT Module Series
BC95 AT Commands Manual
44 / 58

Advertisement

Table of Contents
loading

Table of Contents