Skip to content

Commit d044441

Browse files
committed
packets: xbee blu: fix some missing DictKey members
Related to commit 'Add support for the new XBee BLU device/product.' (187afbf) https://onedigi.atlassian.net/browse/XBPL-391 https://onedigi.atlassian.net/browse/XBPL-396 Signed-off-by: Tatiana Leon <Tatiana.Leon@digi.com>
1 parent 5a8f03e commit d044441

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

digi/xbee/packets/base.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,15 @@ class DictKeys(Enum):
3131

3232
ACK_TIMEOUT_COUNT = "ack_timeout_count"
3333
ADDITIONAL_DATA = "additional_data"
34+
ADVERTISEMENT_SET_ID = "advertisement_set_id"
3435
ANALOG_MASK = "analog_mask"
3536
API_DATA = "api_spec_data"
3637
AT_CMD_STATUS = "at_command_status"
3738
BROADCAST_RADIUS = "broadcast_radius"
3839
BLE_ADDRESS = "ble_address"
3940
BLE_ADDRESS_TYPE = "ble_address_type"
4041
BLE_ADVERTISEMENT_FLAGS = "advertisement_flags"
42+
BLE_SCAN_DURATION = "scan_duration"
4143
BLE_SCAN_FILTER_TYPE = "scan_filter_type"
4244
BLE_SCAN_INTERVAL = "scan_interval"
4345
BLE_SCAN_START = "scan_start"
@@ -54,6 +56,7 @@ class DictKeys(Enum):
5456
CONTENT_TYPE = "content_type"
5557
CONTENT_TYPE_LENGTH = "content_type_length"
5658
DATA = "data"
59+
DATA_COMPLETENESS = "data_completeness"
5760
DC_STATUS = "device_cloud_status"
5861
DEST_ADDR = "dest_address"
5962
DEST_ADDR_TYPE = "dest_address_type"
@@ -91,7 +94,9 @@ class DictKeys(Enum):
9194
PATH_ID = "path_id"
9295
PATH_LENGTH = "path_length"
9396
PAYLOAD = "payload"
97+
PERIODIC_INTERVAL = "periodic_interval"
9498
PHONE_NUMBER = "phone_number"
99+
PRIMARY_PHY = "primary_phy"
95100
PROFILE_ID = "profile_id"
96101
RECEIVE_OPTIONS = "receive_options"
97102
REQUEST_ID = "request_id"
@@ -102,7 +107,9 @@ class DictKeys(Enum):
102107
RF_DATA = "rf_data"
103108
ROUTE_CMD_OPTIONS = "route_command_options"
104109
RSSI = "rssi"
110+
SCAN_STATUS = "scan_status"
105111
SIZE = "size"
112+
SECONDARY_PHY = "secondary_phy"
106113
SOCKET_ID = "socket_id"
107114
SOURCE_ENDPOINT = "source_endpoint"
108115
SOURCE_INTERFACE = "source_interface"
@@ -121,6 +128,7 @@ class DictKeys(Enum):
121128
TIMESTAMP = "timestamp"
122129
TS_STATUS = "ts_status"
123130
TX_BLOCKED_COUNT = "tx_blocked_count"
131+
TX_POWER = "tx_power"
124132
UPDATER_16BIT_ADDR = "updater_x16_addr"
125133
X16BIT_ADDR = "x16_addr"
126134
X64BIT_ADDR = "x64_addr"

digi/xbee/packets/bluetooth.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def __init__(self, start_command, scan_duration, scan_window,
108108
raise ValueError("The scan duration cannot be None")
109109

110110
if not (self.INDEFINITE_SCAN_DURATION <= scan_duration <= self.__SCAN_DURATION_MAXIMUM):
111-
raise ValueError(f"scan_duration must be between {self.__SCAN_DURATION_INDEFINITELY} and {self.__SCAN_DURATION_MAXIMUM}")
111+
raise ValueError(f"scan_duration must be between {self.INDEFINITE_SCAN_DURATION} and {self.__SCAN_DURATION_MAXIMUM}")
112112

113113
if scan_window is None:
114114
raise ValueError("The scan window cannot be None")

0 commit comments

Comments
 (0)