+class ICCID(BeeSurePkt):
+ pass
+
+
+class LK(BeeSurePkt):
+ RESPOND = Respond.INL
+
+ def in_decode(self, *args: str) -> None:
+ numargs = len(args)
+ if numargs > 0:
+ self.step = args[0]
+ if numargs > 1:
+ self.tumbling_number = args[1]
+ if numargs > 2:
+ self.battery_percentage = args[2]
+
+ def in_encode(self) -> str:
+ return "LK"
+
+
+class LZ(BeeSurePkt):
+ OUT_KWARGS = (("language", int, 1), ("timezone", int, 0))
+
+ def out_encode(self) -> str:
+ return f"{self.language},{self.timezone}"
+
+
+class MESSAGE(BeeSurePkt):
+ OUT_KWARGS = (("message", str, ""),)
+
+ def out_encode(self) -> str:
+ return str(self.message.encode("utf_16_be").hex())
+
+
+class MONITOR(BeeSurePkt):
+ pass
+
+
+class _PHB(BeeSurePkt):
+ OUT_KWARGS: Tuple[Tuple[str, Callable[[Any], Any], Any], ...] = (
+ ("entries", pblist, []),
+ )
+
+ def out_encode(self) -> str:
+ self.entries: List[Tuple[str, str]]
+ return ",".join(
+ [
+ ",".join((num, name.encode("utf_16_be").hex()))
+ for name, num in self.entries
+ ]
+ )
+
+
+class PHB(_PHB):
+ pass
+
+
+class PHB2(_PHB):
+ pass
+
+