Skip to content

Commit 191668b

Browse files
committed
digi.xbee.models.status: Expand enumeration values to cover all XBee Cellular/XBee3 Cellular features
1 parent 50dc641 commit 191668b

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

digi/xbee/models/status.py

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,22 @@ class TransmitStatus(Enum):
182182
"that a new connection is not attempted.")
183183
UDP_SRC_PORT_NOT_MATCH_LISTENING_PORT = (0x78, "Source port on a UDP transmission doesn't match a listening port "
184184
"on the transmitting module.")
185+
TCP_SRC_PORT_NOT_MATCH_LISTENING_PORT = (0x79, "Source port on a TCP transmission doesn't match a listening port "
186+
"on the transmitting module.")
187+
INVALID_IP_ADDRESS = (0x7A, "Destination IPv4 address is not valid.")
188+
INVALID_IP_PROTOCOL = (0x7B, "Protocol on an IPv4 transmission is not valid.")
189+
RELAY_INTERFACE_INVALID = (0x7C, "Destination interface on a User Data Relay Frame "
190+
"doesn't exist.")
191+
RELAY_INTERFACE_REJECTED = (0x7D, "Destination interface on a User Data Relay Frame "
192+
"exists, but the interface is not accepting data.")
193+
SOCKET_CONNECTION_REFUSED = (0x80, "Destination server refused the connection.")
194+
SOCKET_CONNECTION_LOST = (0x81, "The existing connection was lost before the data was sent.")
195+
SOCKET_ERROR_NO_SERVER = (0x82, "The attempted connection timed out.")
196+
SOCKET_ERROR_CLOSED = (0x83, "The existing connection was closed.")
197+
SOCKET_ERROR_UNKNOWN_SERVER = (0x84, "The server could not be found.")
198+
SOCKET_ERROR_UNKNOWN_ERROR = (0x85, "An unknown error occurred.")
199+
INVALID_TLS_CONFIGURATION = (0x86, "TLS Profile on a 0x23 API request doesn't exist, or "
200+
"one or more certificates is not valid.")
185201
KEY_NOT_AUTHORIZED = (0xBB, "Key not authorized.")
186202
UNKNOWN = (0xFF, "Unknown.")
187203

@@ -254,6 +270,9 @@ class ModemStatus(Enum):
254270
REMOTE_MANAGER_CONNECTED = (0x0E, "Remote Manager connected")
255271
REMOTE_MANAGER_DISCONNECTED = (0x0F, "Remote Manager disconnected")
256272
MODEM_CONFIG_CHANGED_WHILE_JOINING = (0x11, "Modem configuration changed while joining")
273+
BLUETOOTH_CONNECTED = (0x32, "A Bluetooth connection has been made and API mode has been unlocked.")
274+
BLUETOOTH_DISCONNECTED = (0x33, "An unlocked Bluetooth connection has been disconnected.")
275+
BANDMASK_CONFIGURATION_ERROR = (0x34, "LTE-M/NB-IoT bandmask configuration has failed.")
257276
ERROR_STACK = (0x80, "Stack error")
258277
ERROR_AP_NOT_CONNECTED = (0x82, "Send/join command issued without connecting from AP")
259278
ERROR_AP_NOT_FOUND = (0x83, "Access point not found")
@@ -477,6 +496,11 @@ class CellularAssociationIndicationStatus(Enum):
477496
SUCCESSFULLY_CONNECTED = (0x00, "Connected to the Internet.")
478497
REGISTERING_CELLULAR_NETWORK = (0x22, "Registering to cellular network")
479498
CONNECTING_INTERNET = (0x23, "Connecting to the Internet")
499+
MODEM_FIRMWARE_CORRUPT = (0x24, "The cellular component requires a new firmware image.")
500+
REGISTRATION_DENIED = (0x25, "Cellular network registration was denied.")
501+
AIRPLANE_MODE = (0x2A, "Airplane mode is active.")
502+
USB_DIRECT = (0x2B, "USB Direct mode is active.")
503+
PSM_LOW_POWER = (0x2C, "The cellular component is in the PSM low-power state.")
480504
BYPASS_MODE = (0x2F, "Bypass mode active")
481505
INITIALIZING = (0xFF, "Initializing")
482506

0 commit comments

Comments
 (0)