Xbee Cat-M AT Command Error

XBXC3 running modem firmware L05.08, A.02.04 and xbee firmware 11415

The modem is online and connected to a tower.

Receiving the following error when running these AT commands in REPL console in PyCharm ({DB, 1}, SQ, SW, AS):

>>> xbee.atcmd(‘SW’)
Traceback (most recent call last):
File “”, line 1, in
ValueError: command pending

It seems the modem is preoccupied, any insight is appreciated, thanks.

Some commands (labeled as “pending commands”) cannot be run by MicroPython. Most of the time there is another API that presents similar functionality. For example, instead of ATDB1, ATSW, ATSQ, you may use the network.Cellular() objects .signal() function which returns a dictionary of different signal values. Reference: https://www.digi.com/resources/documentation/digidocs/90002219/default.htm#reference/r_function_signal__.htm%3FTocPath%3DCellular%2520network%2520configuration%2520module|class%2520Cellular|_____9

For the XBee 3 Zigbee there is also a native APIs as well:

Here are a list of AT commands that do not work:


Much appreciated DigiFan.