pass
+class _SET_PHONE(BeeSurePkt):
+ OUT_KWARGS = (("phonenumber", str, ""),)
+
+ def out_encode(self) -> str:
+ self.phonenumber: str
+ return self.phonenumber
+
+
class _LOC_DATA(BeeSurePkt):
def in_decode(self, *args: str) -> None:
p = SimpleNamespace()
RESPOND = Respond.INL
+class CALL(_SET_PHONE):
+ pass
+
+
+class CENTER(_SET_PHONE):
+ pass
+
+
class CONFIG(BeeSurePkt):
pass
pass
+class FIND(BeeSurePkt):
+ pass
+
+
class FLOWER(BeeSurePkt):
OUT_KWARGS = (("number", int, 1),)
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, ""),)
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, []),
return ",".join(self.phonenumbers)
-class _SET_PHONE(BeeSurePkt):
- OUT_KWARGS = (("phonenumber", str, ""),)
-
- def out_encode(self) -> str:
- self.phonenumber: str
- return self.phonenumber
-
-
class SOS1(_SET_PHONE):
pass
pass
+class UPLOAD(BeeSurePkt):
+ OUT_KWARGS = (("interval", int, 600),)
+
+ def out_encode(self) -> str:
+ return str(self.interval)
+
+
# Build dicts protocol number -> class and class name -> protocol number
CLASSES = {}
if True: # just to indent the code, sorry!