diff --git a/src/infuse_iot/generated/kv_definitions.py b/src/infuse_iot/generated/kv_definitions.py index 0a05c513..70630973 100644 --- a/src/infuse_iot/generated/kv_definitions.py +++ b/src/infuse_iot/generated/kv_definitions.py @@ -439,6 +439,18 @@ class memfault_disable(VLACompatLittleEndianStruct): ] _pack_ = 1 + class gateway_bluetooth_forward_options(VLACompatLittleEndianStruct): + """Forwarding configuration for Bluetooth advertising packets""" + + NAME = "GATEWAY_BLUETOOTH_FORWARD_OPTIONS" + BASE_ID = 55 + RANGE = 1 + _fields_ = [ + ("flags", ctypes.c_uint8), + ("percent", ctypes.c_uint8), + ] + _pack_ = 1 + class gravity_reference(VLACompatLittleEndianStruct): """Reference gravity vector for tilt calculations""" @@ -583,6 +595,7 @@ class secure_storage_reserved(VLACompatLittleEndianStruct): 52: bluetooth_throughput_limit, 53: led_disable_daily_time_range, 54: memfault_disable, + 55: gateway_bluetooth_forward_options, 60: gravity_reference, 100: geofence, 101: geofence, diff --git a/src/infuse_iot/generated/tdf_definitions.py b/src/infuse_iot/generated/tdf_definitions.py index 2d9dee40..86165c94 100644 --- a/src/infuse_iot/generated/tdf_definitions.py +++ b/src/infuse_iot/generated/tdf_definitions.py @@ -194,7 +194,7 @@ class tdf_struct_eui48(TdfStructBase): @property def val(self): - return int.from_bytes(self._val, byteorder="little") + return int.from_bytes(self._val, byteorder="big") class tdf_struct_wifi_network_params(TdfStructBase): """WiFi network parameters""" diff --git a/src/infuse_iot/zephyr/errno.py b/src/infuse_iot/zephyr/errno.py index a15b7f90..aa3069e7 100644 --- a/src/infuse_iot/zephyr/errno.py +++ b/src/infuse_iot/zephyr/errno.py @@ -43,6 +43,14 @@ class errno(enum.IntEnum): ENOMSG = (35, "Unexpected message type") EDEADLK = (45, "Resource deadlock avoided") ENOLCK = (46, "No locks available") + EBADE = (50, "Invalid exchange") + EBADR = (51, "Invalid request descriptor") + EXFULL = (52, "Exchange full") + ENOANO = (53, "No anode") + EBADRQC = (54, "Invalid request code") + EBADSLT = (55, "Invalid slot") + EDEADLOCK = (56, "File locking deadlock error") + EBFONT = (57, "Bad font file fmt") ENOSTR = (60, "STREAMS device required") ENODATA = (61, "Missing expected message data") ETIME = (62, "STREAMS timeout occurred") @@ -96,4 +104,7 @@ def __new__(cls, value: int, description: str = ""): @classmethod def strerror(cls, int) -> str: - return cls(int).description + try: + return cls(int).description + except ValueError: + return f"Unknown errno ({int})"