tplinkrouterc6u 5.9.4__py3-none-any.whl → 5.10.0__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.
@@ -274,6 +274,36 @@ class LTEStatus:
274
274
  rsrq: int | None = None
275
275
  snr: int | None = None
276
276
  isp_name: str | None = None
277
+ network_types = {
278
+ 0: "No Service",
279
+ 1: "GSM",
280
+ 2: "WCDMA",
281
+ 3: "4G LTE",
282
+ 4: "TD-SCDMA",
283
+ 5: "CDMA 1x",
284
+ 6: "CDMA 1x Ev-Do",
285
+ 7: "4G+ LTE"
286
+ }
287
+ sim_statuses = {
288
+ 0: "No SIM card detected or SIM card error.",
289
+ 1: "No SIM card detected.",
290
+ 2: "SIM card error.",
291
+ 3: "SIM card prepared.",
292
+ 4: "SIM locked.",
293
+ 5: "SIM unlocked. Authentication succeeded.",
294
+ 6: "PIN locked.",
295
+ 7: "SIM card is locked permanently.",
296
+ 8: "suspension of transmission",
297
+ 9: "Unopened"
298
+ }
299
+
300
+ @property
301
+ def network_type_info(self) -> str:
302
+ return self.network_types.get(self.network_type, "Unknown network type")
303
+
304
+ @property
305
+ def sim_status_info(self) -> str:
306
+ return self.sim_statuses.get(self.sim_status, "Unknown SIM status")
277
307
 
278
308
 
279
309
  @dataclass
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tplinkrouterc6u
3
- Version: 5.9.4
3
+ Version: 5.10.0
4
4
  Summary: TP-Link Router API (supports also Mercusys Router)
5
5
  Home-page: https://github.com/AlexandrErohin/TP-Link-Archer-C6U
6
6
  Author: Alex Erohin
@@ -258,7 +258,9 @@ or you have TP-link C5400X or similar router you need to get web encrypted passw
258
258
  | enable | is enabled | int |
259
259
  | connect_status | connect status | int |
260
260
  | network_type | network type | int |
261
+ | network_type_info | Example: 4G LTE | str |
261
262
  | sim_status | sim status | int |
263
+ | sim_status_info | Example: SIM locked. | str |
262
264
  | total_statistics | total statistics in bytes | int |
263
265
  | cur_rx_speed | current download speed in bytes per second | int |
264
266
  | cur_tx_speed | current upload speed in bytes per second | int |
@@ -268,6 +270,8 @@ or you have TP-link C5400X or similar router you need to get web encrypted passw
268
270
  | rsrq | RSRQ | int |
269
271
  | snr | SNR | int |
270
272
  | isp_name | ISP name | str |
273
+ | network_types | All possible network types - {0: "No Service", 1: "GSM", 2: "WCDMA", 3: "4G LTE", 4: "TD-SCDMA", 5: "CDMA 1x", 6: "CDMA 1x Ev-Do", 7: "4G+ LTE"} | dict |
274
+ | sim_statuses | All possible sim statuses - {0: "No SIM card detected or SIM card error.", 1: "No SIM card detected.", 2: "SIM card error.", 3: "SIM card prepared.", 4: "SIM locked.", 5: "SIM unlocked. Authentication succeeded.", 6: "PIN locked.", 7: "SIM card is locked permanently.", 8: "suspension of transmission", 9: "Unopened"} | dict |
271
275
 
272
276
  ## Enum
273
277
  ### <a id="connection">Connection</a>
@@ -22,13 +22,13 @@ tplinkrouterc6u/client/vr.py,sha256=7Tbu0IrWtr4HHtyrnLFXEJi1QctzhilciL7agtwQ0R8,
22
22
  tplinkrouterc6u/client/wdr.py,sha256=i54PEifjhfOScDpgNBXygw9U4bfsVtle846_YjnDoBs,21679
23
23
  tplinkrouterc6u/client/xdr.py,sha256=QaZ_5vCaf8BV_JEs3S2Nz-QDREBYHGh3OUWIVS-fefY,10406
24
24
  tplinkrouterc6u/common/__init__.py,sha256=pCTvVZ9CAwgb7MxRnLx0y1rI0sTKSwT24FfxWfQXeTM,33
25
- tplinkrouterc6u/common/dataclass.py,sha256=wgVfBEyWgXHfuy2yAxgcFkEO-S4PvX7nNBVs3-JNEGw,6843
25
+ tplinkrouterc6u/common/dataclass.py,sha256=mIQFJoDmKZccV5M3NjguIGm7N9ROEt71Weg0ExYWrEQ,7709
26
26
  tplinkrouterc6u/common/encryption.py,sha256=4HelTxzN6esMfDZRBt3m8bwB9Nj_biKijnCnrGWPWKg,6228
27
27
  tplinkrouterc6u/common/exception.py,sha256=_0G8ZvW5__CsGifHrsZeULdl8c6EUD071sDCQsQgrHY,140
28
28
  tplinkrouterc6u/common/helper.py,sha256=23b04fk9HuVinrZXMCS5R1rmF8uZ7eM-Cdnp7Br9NR0,572
29
29
  tplinkrouterc6u/common/package_enum.py,sha256=4ykL_2Pw0nDEIH_qR9UJlFF6stTgSfhPz32r8KT-sh8,1624
30
- tplinkrouterc6u-5.9.4.dist-info/licenses/LICENSE,sha256=YF6QR6Vjxcg5b_sYIyqkME7FZYau5TfEUGTG-0JeRK0,35129
31
- tplinkrouterc6u-5.9.4.dist-info/METADATA,sha256=_3Ic6Mg31bZ1TM-yym5utr5053CXx12mixtsRAw2VL8,15760
32
- tplinkrouterc6u-5.9.4.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
33
- tplinkrouterc6u-5.9.4.dist-info/top_level.txt,sha256=1iSCCIueqgEkrTxtQ-jiHe99jAB10zqrVdBcwvNfe_M,21
34
- tplinkrouterc6u-5.9.4.dist-info/RECORD,,
30
+ tplinkrouterc6u-5.10.0.dist-info/licenses/LICENSE,sha256=YF6QR6Vjxcg5b_sYIyqkME7FZYau5TfEUGTG-0JeRK0,35129
31
+ tplinkrouterc6u-5.10.0.dist-info/METADATA,sha256=33mzp1gSyNl5dsHOZQfSCs-ZC530hhC70nn-kXxxqBs,16373
32
+ tplinkrouterc6u-5.10.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
33
+ tplinkrouterc6u-5.10.0.dist-info/top_level.txt,sha256=1iSCCIueqgEkrTxtQ-jiHe99jAB10zqrVdBcwvNfe_M,21
34
+ tplinkrouterc6u-5.10.0.dist-info/RECORD,,