NB IoT
This category contains functions specific to NB-IoT devices.
- Overview
- Arguments
- Return
- Examples
Sends message to NB-IoT on specified IP, port and protocol type.
info
Maximum length of Rx and Tx messages is 512
Bytes. Maximum execution time is limited by timeout
in milliseconds.
api.nbSend(addr, port, msg, timeout, type, nownewdatatimeout, rxport)
- addr (string) - IP address
- port (integer) - Port
- msg (string) - Message to be sent to NB-IoT
- timeout (integer) - The maximum execution time in milliseconds
- type (string) - Protocol type:
"UDP"
,"TCP"
or"DTLS"
. - nownewdatatimeout (integer, optional) - The maximum delay between data chunks on reception
- rxport (integer, optional) - Port to use for reception, if not specified, Port value is used
api.nbSend(addr, port, bufferlen, timeout, type, nownewdatatimeout, rxport)
- addr (string) - IP address
- port (integer) - Port
- bufferlen (integer) - Scratchpad (api.nbReceiveBuffer) buffer is sent in given length
- timeout (integer) - The maximum execution time in milliseconds
- type (string) - Protocol type:
"UDP"
,"TCP"
or"DTLS"
- nownewdatatimeout (integer, optional) - The maximum delay between data chunks on reception
- rxport (integer, optional) - Port to use for reception, if not specified, Port value is used
api.nbSend(addr, port, msg, timeout, type, nownewdatatimeout, rxport)
- status (integer) - Zero for success, negative for failure
- rxbuffer (string) - Received data or
nil
for failure