Skip to main content
Version: Next

NB IoT

This category contains functions specific to NB-IoT devices.

api.nbSend(addr, port, msg, timeout, type, nownewdatatimeout, rxport)

Sends buffer msg to NB on specified IP, port and protocol type. Maximum length of Rx and Tx messages is 512 Bytes. Maximum execution time is limited by timeout milliseconds.

api.nbReceiveBuffer(...)

Function to activate, configure and use NB-IoT scratchpad buffer.

api.nbAT(command, arg2, arg3, success, err, tryMore, setAwakeBefore, pollBeforeCommand, setAwakeOffAfter, receiveFixedBytes)

Sends an AT command to NB module with specified timeout. Or use one of the defined commands.

danger

api.nbAT() is a direct access to the AT command interface of the NB-IoT module. It is advanced and should be used with caution.

warning

For a backward-compatible interface, avoid using AT commands directly. Instead, use only api.nbSend() for sending.

api.nbReceiveBuffer(str)

Enables internal buffer to receive NB data. Increases memory efficiency.