pymammotion 0.2.90__py3-none-any.whl → 0.2.91__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,6 @@
1
1
  # === sendOrderMsg_Net ===
2
+ import time
3
+
2
4
  from pymammotion import logger
3
5
  from pymammotion.mammotion.commands.messages.navigation import MessageNavigation
4
6
  from pymammotion.proto import dev_net_pb2, luba_msg_pb2
@@ -18,6 +20,7 @@ class MessageNetwork:
18
20
  version=1,
19
21
  subtype=1,
20
22
  net=build,
23
+ timestamp=round(time.time() * 1000),
21
24
  )
22
25
 
23
26
  return luba_msg.SerializeToString()
@@ -1,5 +1,6 @@
1
1
  # === sendOrderMsg_Sys ===
2
2
  import datetime
3
+ import time
3
4
  from abc import ABC
4
5
 
5
6
  from pymammotion import logger
@@ -28,19 +29,30 @@ class MessageSystem(AbstractMessage, ABC):
28
29
  def send_order_msg_sys(self, sys):
29
30
  luba_msg = LubaMsg(
30
31
  msgtype=MsgCmdType.MSG_CMD_TYPE_EMBED_SYS,
32
+ msgattr=MsgAttr.MSG_ATTR_REQ,
31
33
  sender=MsgDevice.DEV_MOBILEAPP,
32
34
  rcver=self.get_msg_device(MsgCmdType.MSG_CMD_TYPE_EMBED_SYS, MsgDevice.DEV_MAINCTL),
33
35
  sys=sys,
36
+ seqs=1,
37
+ version=1,
38
+ subtype=1,
39
+ timestamp=round(time.time() * 1000)
34
40
  )
35
41
 
36
42
  return luba_msg.SerializeToString()
37
43
 
38
- def send_order_msg_sys_legacy(self, sys):
44
+ @staticmethod
45
+ def send_order_msg_sys_legacy(sys):
39
46
  luba_msg = LubaMsg(
40
47
  msgtype=MsgCmdType.MSG_CMD_TYPE_EMBED_SYS,
48
+ msgattr=MsgAttr.MSG_ATTR_REQ,
41
49
  sender=MsgDevice.DEV_MOBILEAPP,
42
50
  rcver=MsgDevice.DEV_MAINCTL,
43
51
  sys=sys,
52
+ seqs=1,
53
+ version=1,
54
+ subtype=1,
55
+ timestamp=round(time.time() * 1000)
44
56
  )
45
57
 
46
58
  return luba_msg.SerializeToString()
@@ -1,9 +1,10 @@
1
1
  # === sendOrderMsg_Video ===
2
+ import time
2
3
  from abc import ABC
3
4
 
4
5
  from pymammotion.mammotion.commands.abstract_message import AbstractMessage
5
6
  from pymammotion.proto import luba_msg_pb2, luba_mul_pb2
6
- from pymammotion.proto.luba_msg import MsgCmdType, MsgDevice
7
+ from pymammotion.proto.luba_msg import MsgCmdType, MsgDevice, MsgAttr
7
8
  from pymammotion.utility.device_type import DeviceType
8
9
 
9
10
 
@@ -11,9 +12,14 @@ class MessageVideo(AbstractMessage, ABC):
11
12
  async def send_order_msg_video(self, mul):
12
13
  luba_msg = luba_msg_pb2.LubaMsg(
13
14
  msgtype=luba_msg_pb2.MSG_CMD_TYPE_MUL,
15
+ msgattr=MsgAttr.MSG_ATTR_REQ,
14
16
  sender=luba_msg_pb2.DEV_MOBILEAPP,
15
17
  rcver=self.get_msg_device(MsgCmdType.MSG_CMD_TYPE_MUL, MsgDevice.SOC_MODULE_MULTIMEDIA),
16
18
  mul=mul,
19
+ seqs=1,
20
+ version=1,
21
+ subtype=1,
22
+ timestamp=round(time.time() * 1000)
17
23
  )
18
24
 
19
25
  return luba_msg.SerializeToString()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pymammotion
3
- Version: 0.2.90
3
+ Version: 0.2.91
4
4
  Summary:
5
5
  License: GNU-3.0
6
6
  Author: Michael Arthur
@@ -54,10 +54,10 @@ pymammotion/mammotion/commands/messages/__init__.py,sha256=47DEQpj8HBSa-_TImW-5J
54
54
  pymammotion/mammotion/commands/messages/driver.py,sha256=DlOAC_yi1ycO5hKr5rfCpLmrqao6Mb6Fv1JWwMISnKE,3766
55
55
  pymammotion/mammotion/commands/messages/media.py,sha256=l-m4l2Vp1ZOHPHyJTceuLaLvdgHOEfmykkbDncCDUI4,1359
56
56
  pymammotion/mammotion/commands/messages/navigation.py,sha256=Z6RQK-pMh8o7_K_1yTENx3lkNBFQTU_ojunolSre0oM,23241
57
- pymammotion/mammotion/commands/messages/network.py,sha256=HjB6oz4_g_vgYybuTuzCxIXmy83mgTAl9A0CBNuLTfI,7901
57
+ pymammotion/mammotion/commands/messages/network.py,sha256=EfygxR_-nZDmLr04-DJPXv2Z6HQgaY_obZcj0fF0Vu8,7963
58
58
  pymammotion/mammotion/commands/messages/ota.py,sha256=g937HT_-OQXV6A3zUiZ53b45cOX6y-rzs5m-4b0IcTk,1473
59
- pymammotion/mammotion/commands/messages/system.py,sha256=pUdV8z-pnoXvDM29DQbfAi2mG6uK7EHQzJL2sWZLHrc,12843
60
- pymammotion/mammotion/commands/messages/video.py,sha256=ne1YSuQChaDFfmHgMO5Jc9_O_7vkt5yV1EXVEh3LTbg,1141
59
+ pymammotion/mammotion/commands/messages/system.py,sha256=tNHZAm0ckN6F1VyepmJF1ZHyXcmodjLyc0yZsnaqL2A,13179
60
+ pymammotion/mammotion/commands/messages/video.py,sha256=-6Knr0eJurr9vmUTvZZ6q_gk_h_5yvDlSirgyqt30T4,1318
61
61
  pymammotion/mammotion/control/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
62
62
  pymammotion/mammotion/control/joystick.py,sha256=QfBVxM_gxpWsZAGO90whtgxCI2tIZ3TTad9wHIPsU9s,5640
63
63
  pymammotion/mammotion/devices/__init__.py,sha256=f2qQFPgLGmV85W2hSlMUh5BYuht9o_Ar_JEAAMD4fsE,102
@@ -119,7 +119,7 @@ pymammotion/utility/map.py,sha256=GYscVMg2cX3IPlNpCBNHDW0S55yS1WGRf1iHnNZ7TfQ,22
119
119
  pymammotion/utility/movement.py,sha256=N75oAoAgFydqoaOedYIxGUHmuTCtPzAOtb-d_29tpfI,615
120
120
  pymammotion/utility/periodic.py,sha256=MbeSb9cfhxzYmdT_RiE0dZe3H9IfbQW_zSqhmSX2RUc,3321
121
121
  pymammotion/utility/rocker_util.py,sha256=6tX7sS87qoQC_tsxbx3NLL-HgS08wtzXiZkhDiz7uo0,7179
122
- pymammotion-0.2.90.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
123
- pymammotion-0.2.90.dist-info/METADATA,sha256=t37I4jjWd0cx1DdU3wqfgDD-X2CZevhmkQyeIF4ukiE,3896
124
- pymammotion-0.2.90.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
125
- pymammotion-0.2.90.dist-info/RECORD,,
122
+ pymammotion-0.2.91.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
123
+ pymammotion-0.2.91.dist-info/METADATA,sha256=PcXaLrtohyUF6o1T8Zw3NHwKFUZ2XEANTdDRplC9Wuc,3896
124
+ pymammotion-0.2.91.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
125
+ pymammotion-0.2.91.dist-info/RECORD,,