pymammotion 0.4.0b3__py3-none-any.whl → 0.4.0b5__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.
- pymammotion/data/model/report_info.py +1 -1
- pymammotion/proto/luba_mul.proto +1 -0
- pymammotion/proto/luba_mul.py +1 -0
- pymammotion/utility/constant/device_constant.py +14 -5
- {pymammotion-0.4.0b3.dist-info → pymammotion-0.4.0b5.dist-info}/METADATA +1 -1
- {pymammotion-0.4.0b3.dist-info → pymammotion-0.4.0b5.dist-info}/RECORD +8 -8
- {pymammotion-0.4.0b3.dist-info → pymammotion-0.4.0b5.dist-info}/LICENSE +0 -0
- {pymammotion-0.4.0b3.dist-info → pymammotion-0.4.0b5.dist-info}/WHEEL +0 -0
pymammotion/proto/luba_mul.proto
CHANGED
pymammotion/proto/luba_mul.py
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
from enum import IntEnum
|
2
2
|
|
3
|
+
from pymammotion.data.model.report_info import ConnectData
|
4
|
+
|
3
5
|
|
4
6
|
class bleOrderCmd:
|
5
7
|
allpowerfullRW = 67
|
@@ -211,15 +213,22 @@ class WorkMode:
|
|
211
213
|
MODE_CHARGING_PAUSE = 39
|
212
214
|
|
213
215
|
|
214
|
-
def device_connection(
|
216
|
+
def device_connection(connect: ConnectData) -> str:
|
215
217
|
"""Return string representation of device connection."""
|
216
|
-
if value == 1:
|
217
|
-
return "BLE"
|
218
218
|
|
219
|
-
if
|
219
|
+
if connect.wifi_rssi != 0 and connect.ble_rssi != 0:
|
220
|
+
return "WIFI/BLE"
|
221
|
+
|
222
|
+
if connect.connect_type == 2 or connect.used_net == "NET_USED_TYPE_WIFI" or connect.wifi_rssi != 0:
|
220
223
|
return "WIFI"
|
221
224
|
|
222
|
-
|
225
|
+
if connect.connect_type == 1 or connect.used_net == "NET_USED_TYPE_MNET":
|
226
|
+
return "3G/4G"
|
227
|
+
|
228
|
+
if connect.ble_rssi != 0:
|
229
|
+
return "BLE"
|
230
|
+
|
231
|
+
return "None"
|
223
232
|
|
224
233
|
|
225
234
|
def device_mode(value: int) -> str:
|
@@ -38,7 +38,7 @@ pymammotion/data/model/plan.py,sha256=wGlcJT-w0EdbWK9jI838TCOm_MABFg7WoR664VB8RW
|
|
38
38
|
pymammotion/data/model/rapid_state.py,sha256=mIdhAG_LZXpVcybxqTLgLXkNOmVmDTn04B9PGIDA8Ls,1251
|
39
39
|
pymammotion/data/model/raw_data.py,sha256=oO8JX4JP8YuWGj_-6XdooCQn8MnXuNYJ3S6e502NzpU,6754
|
40
40
|
pymammotion/data/model/region_data.py,sha256=VokMRqB_o4OFL1TWAM90Fvm-1z4jcYrw3X2o760qpx4,2949
|
41
|
-
pymammotion/data/model/report_info.py,sha256=
|
41
|
+
pymammotion/data/model/report_info.py,sha256=cWr0FC9B0M4ZHS2bY4V5nzjXSMd8qHq2NRhm6TzNXnw,3440
|
42
42
|
pymammotion/data/mqtt/__init__.py,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
43
43
|
pymammotion/data/mqtt/event.py,sha256=r14gzZVxmlGVAwFdZQ1CUsMZFHHwRKnbt2VHnjugP28,5123
|
44
44
|
pymammotion/data/mqtt/properties.py,sha256=pX5JRVmmpVO04CSPm5xAGcSWA_OeLd0JnBagLsfiSEc,3755
|
@@ -89,8 +89,8 @@ pymammotion/proto/luba_msg.proto,sha256=KfEKnPy4HyI2msoFyE5tY2tp913PGyWuki9G6tuj
|
|
89
89
|
pymammotion/proto/luba_msg.py,sha256=Q9I8R7xmhLuenn5r0XOmYzH3UmWrPk6KJF0xzkjfvDM,2473
|
90
90
|
pymammotion/proto/luba_msg_pb2.py,sha256=tM_jjxnRcAL_PFbNSbY2i11YP27boXYxysB0VE1Rjdc,4514
|
91
91
|
pymammotion/proto/luba_msg_pb2.pyi,sha256=u1YgUrGoqfuizHt2ckQUL1Y_u9tLOievwrJ2e_ySOss,4288
|
92
|
-
pymammotion/proto/luba_mul.proto,sha256=
|
93
|
-
pymammotion/proto/luba_mul.py,sha256=
|
92
|
+
pymammotion/proto/luba_mul.proto,sha256=kHe_dfxCNR9Yu0-3xjjxMoDVNVWdLH_SWbVKBWxCHbc,1135
|
93
|
+
pymammotion/proto/luba_mul.py,sha256=pAnz7MpGLhnsMcuWIltNwksxT-E9hL-bjZ-pc1cUBL0,2083
|
94
94
|
pymammotion/proto/luba_mul_pb2.py,sha256=nJ25xWmuBldTQsAddTR5EImTEN-D2FSUCd_5vBUUTwA,3399
|
95
95
|
pymammotion/proto/luba_mul_pb2.pyi,sha256=_ndK0hvvHtMOzsJ8rGSXZbp7fVEsiafycbYfWG1WPKo,3913
|
96
96
|
pymammotion/proto/mctrl_driver.proto,sha256=I0BncdAa3laeqT17Sn95r_1HuBD3dSc9IVu9U3o0fU4,1385
|
@@ -115,7 +115,7 @@ pymammotion/proto/mctrl_sys_pb2.py,sha256=DYemb514mlC7c27t-k1YqqBif0xxhLmnIWk8rX
|
|
115
115
|
pymammotion/proto/mctrl_sys_pb2.pyi,sha256=Dj_1UM86kZ5MfcVyNC76Z0gKrfl5YFsVWP2b-bKoZvk,38912
|
116
116
|
pymammotion/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
117
117
|
pymammotion/utility/constant/__init__.py,sha256=tcY0LDeD-qDDHx2LKt55KOyv9ZI0UfCNM6fknLCmm8s,110
|
118
|
-
pymammotion/utility/constant/device_constant.py,sha256=
|
118
|
+
pymammotion/utility/constant/device_constant.py,sha256=6uTZReQxMJvZxgHuJWAPYR9pQmK-VNz4FwJZJBjtIao,7906
|
119
119
|
pymammotion/utility/conversions.py,sha256=v3YICy0zZwwBBzrUZgabI7GRfiDBnkiAX2qdtk3NxOY,89
|
120
120
|
pymammotion/utility/datatype_converter.py,sha256=SPM_HuaaD_XOawlqEnA8qlRRZXGba3WjA8kGOZgeBlQ,4284
|
121
121
|
pymammotion/utility/device_config.py,sha256=hHVyT8uSsHZB4_kuaN6K5wfsC2V5Ixevm1aFi2oYDFk,27956
|
@@ -124,7 +124,7 @@ pymammotion/utility/map.py,sha256=GYscVMg2cX3IPlNpCBNHDW0S55yS1WGRf1iHnNZ7TfQ,22
|
|
124
124
|
pymammotion/utility/movement.py,sha256=N75oAoAgFydqoaOedYIxGUHmuTCtPzAOtb-d_29tpfI,615
|
125
125
|
pymammotion/utility/periodic.py,sha256=MbeSb9cfhxzYmdT_RiE0dZe3H9IfbQW_zSqhmSX2RUc,3321
|
126
126
|
pymammotion/utility/rocker_util.py,sha256=6tX7sS87qoQC_tsxbx3NLL-HgS08wtzXiZkhDiz7uo0,7179
|
127
|
-
pymammotion-0.4.
|
128
|
-
pymammotion-0.4.
|
129
|
-
pymammotion-0.4.
|
130
|
-
pymammotion-0.4.
|
127
|
+
pymammotion-0.4.0b5.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
128
|
+
pymammotion-0.4.0b5.dist-info/METADATA,sha256=PsPs5lRcwlZ1FY1eCf-4pbvsEJGef4hTt1Wgp6K11ek,3938
|
129
|
+
pymammotion-0.4.0b5.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
|
130
|
+
pymammotion-0.4.0b5.dist-info/RECORD,,
|
File without changes
|
File without changes
|