wiliot-certificate 1.4.0a1__py3-none-any.whl → 1.5.0a1__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.
Files changed (77) hide show
  1. brg_certificate/ag/energous_v0_defines.py +12 -12
  2. brg_certificate/ag/energous_v1_defines.py +12 -12
  3. brg_certificate/ag/energous_v2_defines.py +12 -12
  4. brg_certificate/ag/energous_v3_defines.py +12 -12
  5. brg_certificate/ag/energous_v4_defines.py +12 -12
  6. brg_certificate/ag/fanstel_lan_v0_defines.py +12 -12
  7. brg_certificate/ag/fanstel_lte_v0_defines.py +12 -12
  8. brg_certificate/ag/fanstel_wifi_v0_defines.py +12 -12
  9. brg_certificate/ag/minew_lte_v0_defines.py +12 -12
  10. brg_certificate/ag/wlt_cmd_if.html +1 -1
  11. brg_certificate/ag/wlt_types.html +3 -3
  12. brg_certificate/ag/wlt_types_ag.py +12 -12
  13. brg_certificate/brg_certificate.py +9 -6
  14. brg_certificate/cert_common.py +21 -13
  15. brg_certificate/cert_config.py +1 -1
  16. brg_certificate/cert_defines.py +21 -3
  17. brg_certificate/cert_gw_sim.py +6 -4
  18. brg_certificate/cert_mqtt.py +8 -2
  19. brg_certificate/cert_prints.py +7 -5
  20. brg_certificate/cert_protobuf.py +5 -1
  21. brg_certificate/cert_results.py +99 -69
  22. brg_certificate/cert_utils.py +10 -14
  23. brg_certificate/restore_brg.py +2 -0
  24. brg_certificate/tests/calibration/interval_test/interval_test.py +1 -1
  25. brg_certificate/tests/calibration/output_power_test/output_power_test.py +1 -1
  26. brg_certificate/tests/calibration/pattern_test/pattern_test.py +1 -1
  27. brg_certificate/tests/datapath/adaptive_pacer_algo_test/adaptive_pacer_algo_test.py +4 -4
  28. brg_certificate/tests/datapath/num_of_tags_test/num_of_tags_test.py +2 -2
  29. brg_certificate/tests/datapath/output_power_test/output_power_test.py +1 -1
  30. brg_certificate/tests/datapath/pacer_interval_ble5_test/pacer_interval_ble5_test.py +1 -1
  31. brg_certificate/tests/datapath/pacer_interval_tags_count_test/pacer_interval_tags_count_test.py +2 -2
  32. brg_certificate/tests/datapath/pacer_interval_test/pacer_interval_test.py +1 -1
  33. brg_certificate/tests/datapath/pattern_test/pattern_test.py +1 -1
  34. brg_certificate/tests/datapath/pkt_filter_ble5_test/pkt_filter_ble5_test.py +1 -1
  35. brg_certificate/tests/datapath/pkt_filter_gen3_test/pkt_filter_gen3_test.py +1 -1
  36. brg_certificate/tests/datapath/pkt_filter_test/pkt_filter_test.py +1 -1
  37. brg_certificate/tests/datapath/rssi_threshold_test/rssi_threshold_test.py +1 -1
  38. brg_certificate/tests/datapath/rx_channel_test/rx_channel_test.py +1 -1
  39. brg_certificate/tests/datapath/rx_rate_gen2_test/rx_rate_gen2_test.py +1 -1
  40. brg_certificate/tests/datapath/rx_rate_gen3_test/rx_rate_gen3_test.py +1 -1
  41. brg_certificate/tests/datapath/stress_gen3_test/stress_gen3_test.py +2 -2
  42. brg_certificate/tests/datapath/stress_test/stress_test.py +2 -2
  43. brg_certificate/tests/datapath/tx_repetition_algo_test/tx_repetition_algo_test.py +1 -1
  44. brg_certificate/tests/datapath/tx_repetition_test/tx_repetition_test.py +1 -1
  45. brg_certificate/tests/edge_mgmt/actions_test/actions_test.py +4 -4
  46. brg_certificate/tests/edge_mgmt/brg2brg_ota_ble5_test/brg2brg_ota_ble5_test.py +1 -1
  47. brg_certificate/tests/edge_mgmt/brg2brg_ota_test/brg2brg_ota_test.py +1 -1
  48. brg_certificate/tests/edge_mgmt/leds_test/leds_test.py +1 -1
  49. brg_certificate/tests/edge_mgmt/ota_test/ota_test.py +1 -1
  50. brg_certificate/tests/edge_mgmt/stat_test/stat_test.py +1 -1
  51. brg_certificate/tests/energy2400/duty_cycle_test/duty_cycle_test.py +1 -1
  52. brg_certificate/tests/energy2400/output_power_test/output_power_test.py +1 -1
  53. brg_certificate/tests/energy2400/pattern_test/pattern_test.py +1 -1
  54. brg_certificate/tests/energy2400/signal_indicator_ble5_test/signal_indicator_ble5_test.py +1 -1
  55. brg_certificate/tests/energy2400/signal_indicator_sub1g_2_4_test/signal_indicator_sub1g_2_4_test.py +1 -1
  56. brg_certificate/tests/energy_sub1g/duty_cycle_test/duty_cycle_test.py +1 -1
  57. brg_certificate/tests/energy_sub1g/pattern_test/pattern_test.py +1 -1
  58. brg_certificate/tests/energy_sub1g/signal_indicator_functionality_test/signal_indicator_functionality_test.py +1 -1
  59. brg_certificate/tests/energy_sub1g/signal_indicator_test/signal_indicator_test.py +1 -1
  60. brg_certificate/wltPb_pb2.py +50 -38
  61. brg_certificate/wltPb_pb2.pyi +32 -32
  62. brg_certificate/wlt_types.py +4 -6
  63. common/wlt_logo.png +0 -0
  64. gw_certificate/ag/ut_defines.py +4 -1
  65. gw_certificate/cert_results.py +138 -0
  66. gw_certificate/gw_certificate.py +20 -6
  67. gw_certificate/interface/mqtt.py +1 -0
  68. gw_certificate/interface/uart_if.py +1 -1
  69. gw_certificate/tests/actions.py +0 -1
  70. gw_certificate/tests/connection.py +1 -1
  71. gw_certificate/tests/generic.py +43 -17
  72. {wiliot_certificate-1.4.0a1.dist-info → wiliot_certificate-1.5.0a1.dist-info}/METADATA +6 -4
  73. {wiliot_certificate-1.4.0a1.dist-info → wiliot_certificate-1.5.0a1.dist-info}/RECORD +77 -75
  74. {wiliot_certificate-1.4.0a1.dist-info → wiliot_certificate-1.5.0a1.dist-info}/top_level.txt +1 -0
  75. {wiliot_certificate-1.4.0a1.dist-info → wiliot_certificate-1.5.0a1.dist-info}/LICENSE +0 -0
  76. {wiliot_certificate-1.4.0a1.dist-info → wiliot_certificate-1.5.0a1.dist-info}/WHEEL +0 -0
  77. {wiliot_certificate-1.4.0a1.dist-info → wiliot_certificate-1.5.0a1.dist-info}/entry_points.txt +0 -0
@@ -10,7 +10,7 @@ import time
10
10
 
11
11
  def configure_pacer_n_times(test, num_of_times, pacer_interval, datapath_module):
12
12
  test = cert_config.brg_configure(test, fields=[BRG_PACER_INTERVAL], values=[pacer_interval], module=datapath_module)[0]
13
- if test.rc == TEST_FAILED and test.reason != TEST_SUCCESS:
13
+ if test.rc == TEST_FAILED:
14
14
  for i in range(num_of_times):
15
15
  if test.rc == TEST_PASSED:
16
16
  return test
@@ -178,7 +178,7 @@ def run(test):
178
178
  # Test prolog
179
179
  datapath_module = eval_pkt(f'ModuleDatapathV{test.active_brg.api_version}')
180
180
  test = cert_common.test_prolog(test)
181
- if test.rc == TEST_FAILED or test.reason != TEST_SUCCESS:
181
+ if test.rc == TEST_FAILED:
182
182
  return cert_common.test_epilog(test)
183
183
  #config GW deduplication pkts = 0 "
184
184
  print("Configuring GW with !deduplication_pkts 0")
@@ -92,7 +92,7 @@ def tx_rep_analysis(test):
92
92
  def run(test):
93
93
 
94
94
  test = cert_common.test_prolog(test)
95
- if test.rc == TEST_FAILED or test.reason != TEST_SUCCESS:
95
+ if test.rc == TEST_FAILED:
96
96
  return cert_common.test_epilog(test)
97
97
 
98
98
  datapath_module = eval_pkt(f'ModuleDatapathV{test.active_brg.api_version}')
@@ -52,7 +52,7 @@ def run(test):
52
52
  datapath_module = eval_pkt(f'ModuleDatapathV{test.active_brg.api_version}')
53
53
 
54
54
  test = cert_common.test_prolog(test)
55
- if test.rc == TEST_FAILED or test.reason != TEST_SUCCESS:
55
+ if test.rc == TEST_FAILED:
56
56
  return cert_common.test_epilog(test)
57
57
 
58
58
  print("Configuring GW with !deduplication_pkts 0")
@@ -51,9 +51,9 @@ def get_brg_non_default_module_pkt(test, module):
51
51
  dynamic_keep_alive_scan=BRG_NON_DEFAULT_PWR_MGMT_KEEP_ALIVE_SCAN)
52
52
  elif 'Custom' in module.__name__:
53
53
  return cert_config.get_default_brg_pkt(test, pkt_type=eval_pkt(f'ModuleCustomV{test.active_brg.api_version}'),
54
- state_threshold=LIS2DW12_NON_DEFAULT_STATE_THRESHOLD,
55
- wake_up_duration=LIS2DW12_NON_DEFAULT_WAKE_UP_DURATION,
56
- sleep_duration=LIS2DW12_NON_DEFAULT_SLEEP_DURATION)
54
+ motion_sensitivity_threshold=LIS2DW12_NON_DEFAULT_STATE_THRESHOLD,
55
+ s2d_transition_time=LIS2DW12_NON_DEFAULT_WAKE_UP_DURATION,
56
+ d2s_transition_time=LIS2DW12_NON_DEFAULT_SLEEP_DURATION)
57
57
  elif 'Datapath' in module.__name__:
58
58
  return cert_config.get_default_brg_pkt(test, pkt_type=eval_pkt(f'ModuleDatapathV{test.active_brg.api_version}'),
59
59
  tx_repetition=BRG_NON_DEFAULT_TX_REPETITION,
@@ -412,7 +412,7 @@ ACTIONS_TEST_MAP = {ag.ACTION_GW_HB: test_action_gw_hb, ag.ACTION_BLINK: test_ac
412
412
 
413
413
  def run(test):
414
414
  test = cert_common.test_prolog(test)
415
- if test.rc == TEST_FAILED or test.reason != TEST_SUCCESS:
415
+ if test.rc == TEST_FAILED:
416
416
  return cert_common.test_epilog(test)
417
417
 
418
418
  for param in test.params:
@@ -42,7 +42,7 @@ def run(test):
42
42
  test.add_reason(BOARDS_MISMATCH)
43
43
  test.rc = TEST_FAILED
44
44
 
45
- if test.rc == TEST_FAILED or test.reason != TEST_SUCCESS:
45
+ if test.rc == TEST_FAILED:
46
46
  return cert_common.test_epilog(test, revert_brgs=True)
47
47
 
48
48
  # Decide on source and destination bridges
@@ -42,7 +42,7 @@ def run(test):
42
42
  test.add_reason(BOARDS_MISMATCH)
43
43
  test.rc = TEST_FAILED
44
44
 
45
- if test.rc == TEST_FAILED or test.reason != TEST_SUCCESS:
45
+ if test.rc == TEST_FAILED:
46
46
  return cert_common.test_epilog(test, revert_brgs=True)
47
47
 
48
48
  # Decide on source and destination bridges
@@ -43,7 +43,7 @@ def compare_versions(gw_version, brg_version):
43
43
 
44
44
  def run(test):
45
45
  test = cert_common.test_prolog(test)
46
- if test.rc == TEST_FAILED or test.reason != TEST_SUCCESS:
46
+ if test.rc == TEST_FAILED:
47
47
  return cert_common.test_epilog(test)
48
48
 
49
49
  test.mqttc.flush_pkts()
@@ -55,7 +55,7 @@ def breakdown_steps_timing(test, start_ts):
55
55
  def run(test):
56
56
 
57
57
  test = cert_common.test_prolog(test)
58
- if test.rc == TEST_FAILED or test.reason != TEST_SUCCESS:
58
+ if test.rc == TEST_FAILED:
59
59
  return cert_common.test_epilog(test, revert_brgs=True)
60
60
 
61
61
  versions_mgmt = cert_utils.load_module('versions_mgmt.py', f'{UTILS_BASE_REL_PATH}/versions_mgmt.py')
@@ -39,7 +39,7 @@ def scan_for_brg_stat(test, timeout=BRG_STAT_SCAN_TIMEOUT, only_hb=False):
39
39
  def run(test):
40
40
 
41
41
  test = cert_common.test_prolog(test)
42
- if test.rc == TEST_FAILED or test.reason != TEST_SUCCESS:
42
+ if test.rc == TEST_FAILED:
43
43
  return cert_common.test_epilog(test)
44
44
 
45
45
  test = scan_for_brg_stat(test)
@@ -10,7 +10,7 @@ def run(test):
10
10
  energy2400_module = eval_pkt(f'ModuleEnergy2400V{test.active_brg.api_version}')
11
11
 
12
12
  test = cert_common.test_prolog(test)
13
- if test.rc == TEST_FAILED or test.reason != TEST_SUCCESS:
13
+ if test.rc == TEST_FAILED:
14
14
  return cert_common.test_epilog(test)
15
15
  for param in test.params:
16
16
  test = cert_config.brg_configure(test, fields=fields, values=[param.value], module=energy2400_module)[0]
@@ -10,7 +10,7 @@ def run(test):
10
10
  energy2400_module = eval_pkt(f'ModuleEnergy2400V{test.active_brg.api_version}')
11
11
 
12
12
  test = cert_common.test_prolog(test)
13
- if test.rc == TEST_FAILED or test.reason != TEST_SUCCESS:
13
+ if test.rc == TEST_FAILED:
14
14
  return cert_common.test_epilog(test)
15
15
 
16
16
  for param in test.params:
@@ -10,7 +10,7 @@ def run(test):
10
10
  energy2400_module = eval_pkt(f'ModuleEnergy2400V{test.active_brg.api_version}')
11
11
 
12
12
  test = cert_common.test_prolog(test)
13
- if test.rc == TEST_FAILED or test.reason != TEST_SUCCESS:
13
+ if test.rc == TEST_FAILED:
14
14
  return cert_common.test_epilog(test)
15
15
 
16
16
  for param in test.params:
@@ -119,7 +119,7 @@ def run(test):
119
119
 
120
120
  # Test prolog
121
121
  test = cert_common.test_prolog(test)
122
- if test.rc == TEST_FAILED or test.reason != TEST_SUCCESS:
122
+ if test.rc == TEST_FAILED:
123
123
  return terminate_test(test)
124
124
 
125
125
  for param in test.params:
@@ -82,7 +82,7 @@ def run(test):
82
82
 
83
83
  # Test prolog
84
84
  test = cert_common.test_prolog(test)
85
- if test.rc == TEST_FAILED or test.reason != TEST_SUCCESS:
85
+ if test.rc == TEST_FAILED:
86
86
  return terminate_test(test)
87
87
 
88
88
  tx_signal_ind_cycle, tx_signal_ind_rep = 15, 4
@@ -10,7 +10,7 @@ def run(test):
10
10
  sub1g_module = eval_pkt(f'ModuleEnergySub1GV{test.active_brg.api_version}')
11
11
 
12
12
  test = cert_common.test_prolog(test)
13
- if test.rc == TEST_FAILED or test.reason != TEST_SUCCESS:
13
+ if test.rc == TEST_FAILED:
14
14
  return cert_common.test_epilog(test)
15
15
  for param in test.params:
16
16
  param_name = f"{param.name}"
@@ -10,7 +10,7 @@ def run(test):
10
10
  sub1g_module = eval_pkt(f'ModuleEnergySub1GV{test.active_brg.api_version}')
11
11
 
12
12
  test = cert_common.test_prolog(test)
13
- if test.rc == TEST_FAILED or test.reason != TEST_SUCCESS:
13
+ if test.rc == TEST_FAILED:
14
14
  return cert_common.test_epilog(test)
15
15
  for param in test.params:
16
16
  test = cert_config.brg_configure(test, fields=fields, values=[param.value], module=sub1g_module)[0]
@@ -108,7 +108,7 @@ def run(test):
108
108
 
109
109
  # Test prolog
110
110
  test = cert_common.test_prolog(test)
111
- if test.rc == TEST_FAILED or test.reason != TEST_SUCCESS:
111
+ if test.rc == TEST_FAILED:
112
112
  return terminate_test(test)
113
113
 
114
114
  phase = 0
@@ -10,7 +10,7 @@ def run(test):
10
10
  sub1g_module = eval_pkt(f'ModuleEnergySub1GV{test.active_brg.api_version}')
11
11
 
12
12
  test = cert_common.test_prolog(test)
13
- if test.rc == TEST_FAILED or test.reason != TEST_SUCCESS:
13
+ if test.rc == TEST_FAILED:
14
14
  return cert_common.test_epilog(test)
15
15
  for param in test.params:
16
16
  param_name = f"{param.name}"
@@ -1,12 +1,22 @@
1
1
  # -*- coding: utf-8 -*-
2
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # NO CHECKED-IN PROTOBUF GENCODE
3
4
  # source: wltPb.proto
4
- # Protobuf Python Version: 4.25.1
5
+ # Protobuf Python Version: 5.29.1
5
6
  """Generated protocol buffer code."""
6
7
  from google.protobuf import descriptor as _descriptor
7
8
  from google.protobuf import descriptor_pool as _descriptor_pool
9
+ from google.protobuf import runtime_version as _runtime_version
8
10
  from google.protobuf import symbol_database as _symbol_database
9
11
  from google.protobuf.internal import builder as _builder
12
+ _runtime_version.ValidateProtobufRuntimeVersion(
13
+ _runtime_version.Domain.PUBLIC,
14
+ 5,
15
+ 29,
16
+ 1,
17
+ '',
18
+ 'wltPb.proto'
19
+ )
10
20
  # @@protoc_insertion_point(imports)
11
21
 
12
22
  _sym_db = _symbol_database.Default()
@@ -14,20 +24,20 @@ _sym_db = _symbol_database.Default()
14
24
 
15
25
 
16
26
 
17
- DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0bwltPb.proto\x12\x05wltPb\"$\n\x08Location\x12\x0b\n\x03lat\x18\x01 \x01(\x01\x12\x0b\n\x03lng\x18\x02 \x01(\x01\"j\n\x05Value\x12\x16\n\x0cintegerValue\x18\x01 \x01(\x03H\x00\x12\x15\n\x0bnumberValue\x18\x02 \x01(\x01H\x00\x12\x15\n\x0bstringValue\x18\x03 \x01(\tH\x00\x12\x13\n\tboolValue\x18\x04 \x01(\x08H\x00\x42\x06\n\x04type\"\x89\x02\n\x0bGatewayData\x12\x11\n\tgatewayId\x18\x01 \x01(\t\x12\x11\n\ttimestamp\x18\x02 \x01(\x04\x12*\n\x07packets\x18\x03 \x03(\x0b\x32\x19.wltPb.GatewayData.Packet\x12&\n\x08location\x18\x04 \x01(\x0b\x32\x0f.wltPb.LocationH\x00\x88\x01\x01\x1as\n\x06Packet\x12\x0f\n\x07payload\x18\x01 \x01(\x0c\x12\x11\n\ttimestamp\x18\x02 \x01(\x04\x12\x12\n\nsequenceId\x18\x03 \x01(\r\x12\x11\n\x04rssi\x18\x04 \x01(\rH\x00\x88\x01\x01\x12\x15\n\raliasBridgeId\x18\x05 \x01(\tB\x07\n\x05_rssiB\x0b\n\t_location\"\xc9\x01\n\rUplinkMessage\x12-\n\rgatewayStatus\x18\x01 \x01(\x0b\x32\x14.wltPb.GatewayStatusH\x00\x12)\n\x0bgatewayInfo\x18\x02 \x01(\x0b\x32\x12.wltPb.GatewayInfoH\x00\x12)\n\x0bgatewayLogs\x18\x03 \x01(\x0b\x32\x12.wltPb.GatewayLogsH\x00\x12+\n\x0c\x61\x63tionStatus\x18\x04 \x01(\x0b\x32\x13.wltPb.ActionStatusH\x00\x42\x06\n\x04type\"\xdb\x03\n\rGatewayStatus\x12\x11\n\tgatewayId\x18\x01 \x01(\t\x12\x13\n\x0bgatewayType\x18\x02 \x01(\t\x12\x19\n\x11\x64ownlinkSupported\x18\x03 \x01(\x08\x12!\n\x19\x62ridgeOtaUpgradeSupported\x18\x04 \x01(\x08\x12\x12\n\napiVersion\x18\x05 \x01(\r\x12\x14\n\x07version\x18\x06 \x01(\tH\x00\x88\x01\x01\x12\x19\n\x0c\x62leSwVersion\x18\x07 \x01(\tH\x01\x88\x01\x01\x12\x1f\n\x12interfaceSwVersion\x18\x08 \x01(\tH\x02\x88\x01\x01\x12&\n\x08location\x18\t \x01(\x0b\x32\x0f.wltPb.LocationH\x03\x88\x01\x01\x12\x30\n\x06\x63onfig\x18\n \x03(\x0b\x32 .wltPb.GatewayStatus.ConfigEntry\x12\x17\n\nbleAddress\x18\x0b \x01(\tH\x04\x88\x01\x01\x1a;\n\x0b\x43onfigEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x1b\n\x05value\x18\x02 \x01(\x0b\x32\x0c.wltPb.Value:\x02\x38\x01\x42\n\n\x08_versionB\x0f\n\r_bleSwVersionB\x15\n\x13_interfaceSwVersionB\x0b\n\t_locationB\r\n\x0b_bleAddress\"}\n\x0bGatewayInfo\x12\x30\n\x07\x65ntries\x18\x01 \x03(\x0b\x32\x1f.wltPb.GatewayInfo.EntriesEntry\x1a<\n\x0c\x45ntriesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x1b\n\x05value\x18\x02 \x01(\x0b\x32\x0c.wltPb.Value:\x02\x38\x01\"\x1b\n\x0bGatewayLogs\x12\x0c\n\x04logs\x18\x01 \x03(\t\".\n\x0c\x41\x63tionStatus\x12\x0e\n\x06\x61\x63tion\x18\x01 \x01(\r\x12\x0e\n\x06status\x18\x02 \x01(\r\"\xa7\x02\n\x0f\x44ownlinkMessage\x12#\n\x08txPacket\x18\x01 \x01(\x0b\x32\x0f.wltPb.TxPacketH\x00\x12-\n\rgatewayAction\x18\x02 \x01(\x0b\x32\x14.wltPb.GatewayActionH\x00\x12-\n\rbridgeUpgrade\x18\x03 \x01(\x0b\x32\x14.wltPb.BridgeUpgradeH\x00\x12-\n\rgatewayConfig\x18\x04 \x01(\x0b\x32\x14.wltPb.GatewayConfigH\x00\x12+\n\x0c\x63ustomBroker\x18\x05 \x01(\x0b\x32\x13.wltPb.CustomBrokerH\x00\x12-\n\rcustomMessage\x18\x06 \x01(\x0b\x32\x14.wltPb.CustomMessageH\x00\x42\x06\n\x04type\"F\n\x08TxPacket\x12\x0f\n\x07payload\x18\x01 \x01(\x0c\x12\x12\n\nmaxRetries\x18\x02 \x01(\r\x12\x15\n\rmaxDurationMs\x18\x03 \x01(\r\"\x1f\n\rGatewayAction\x12\x0e\n\x06\x61\x63tion\x18\x01 \x01(\t\"\xa5\x01\n\rBridgeUpgrade\x12\x14\n\x0crebootPacket\x18\x01 \x01(\x0c\x12\x17\n\x0ftxMaxDurationMs\x18\x02 \x01(\r\x12\x14\n\x0ctxMaxRetries\x18\x03 \x01(\r\x12\x10\n\x08\x62ridgeId\x18\x04 \x01(\t\x12\x13\n\x0bversionUuid\x18\x05 \x01(\t\x12\x13\n\x0bupgradeBlSd\x18\x06 \x01(\x08\x12\x13\n\x0bimageDirUrl\x18\x07 \x01(\t\"\xb9\x02\n\rGatewayConfig\x12\x14\n\x07version\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x19\n\x0c\x62leSwVersion\x18\x02 \x01(\tH\x01\x88\x01\x01\x12\x1f\n\x12interfaceSwVersion\x18\x03 \x01(\tH\x02\x88\x01\x01\x12&\n\x08location\x18\x04 \x01(\x0b\x32\x0f.wltPb.LocationH\x03\x88\x01\x01\x12\x30\n\x06\x63onfig\x18\x05 \x03(\x0b\x32 .wltPb.GatewayConfig.ConfigEntry\x1a;\n\x0b\x43onfigEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x1b\n\x05value\x18\x02 \x01(\x0b\x32\x0c.wltPb.Value:\x02\x38\x01\x42\n\n\x08_versionB\x0f\n\r_bleSwVersionB\x15\n\x13_interfaceSwVersionB\x0b\n\t_location\"\xa6\x01\n\x0c\x43ustomBroker\x12\x14\n\x0c\x63ustomBroker\x18\x01 \x01(\x08\x12\x0c\n\x04port\x18\x02 \x01(\r\x12\x11\n\tbrokerUrl\x18\x03 \x01(\t\x12\x10\n\x08username\x18\x04 \x01(\t\x12\x10\n\x08password\x18\x05 \x01(\t\x12\x13\n\x0bupdateTopic\x18\x06 \x01(\t\x12\x13\n\x0bstatusTopic\x18\x07 \x01(\t\x12\x11\n\tdataTopic\x18\x08 \x01(\t\"\x81\x01\n\rCustomMessage\x12\x32\n\x07\x65ntries\x18\x01 \x03(\x0b\x32!.wltPb.CustomMessage.EntriesEntry\x1a<\n\x0c\x45ntriesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x1b\n\x05value\x18\x02 \x01(\x0b\x32\x0c.wltPb.Value:\x02\x38\x01\x62\x06proto3')
27
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0bwltPb.proto\x12\x05wltPb\"$\n\x08Location\x12\x0b\n\x03lat\x18\x01 \x01(\x01\x12\x0b\n\x03lng\x18\x02 \x01(\x01\"j\n\x05Value\x12\x16\n\x0cintegerValue\x18\x01 \x01(\x03H\x00\x12\x15\n\x0bnumberValue\x18\x02 \x01(\x01H\x00\x12\x15\n\x0bstringValue\x18\x03 \x01(\tH\x00\x12\x13\n\tboolValue\x18\x04 \x01(\x08H\x00\x42\x06\n\x04type\"\x89\x02\n\x0bGatewayData\x12\x11\n\tgatewayId\x18\x01 \x01(\t\x12\x11\n\ttimestamp\x18\x02 \x01(\x04\x12*\n\x07packets\x18\x03 \x03(\x0b\x32\x19.wltPb.GatewayData.Packet\x12&\n\x08location\x18\x04 \x01(\x0b\x32\x0f.wltPb.LocationH\x00\x88\x01\x01\x1as\n\x06Packet\x12\x0f\n\x07payload\x18\x01 \x01(\x0c\x12\x11\n\ttimestamp\x18\x02 \x01(\x04\x12\x12\n\nsequenceId\x18\x03 \x01(\r\x12\x11\n\x04rssi\x18\x04 \x01(\rH\x00\x88\x01\x01\x12\x15\n\raliasBridgeId\x18\x05 \x01(\tB\x07\n\x05_rssiB\x0b\n\t_location\"\xc9\x01\n\rUplinkMessage\x12-\n\rgatewayStatus\x18\x01 \x01(\x0b\x32\x14.wltPb.GatewayStatusH\x00\x12)\n\x0bgatewayInfo\x18\x02 \x01(\x0b\x32\x12.wltPb.GatewayInfoH\x00\x12)\n\x0bgatewayLogs\x18\x03 \x01(\x0b\x32\x12.wltPb.GatewayLogsH\x00\x12+\n\x0c\x61\x63tionStatus\x18\x04 \x01(\x0b\x32\x13.wltPb.ActionStatusH\x00\x42\x06\n\x04type\"&\n\x03\x41\x43L\x12\x12\n\nmode_allow\x18\x01 \x01(\x08\x12\x0b\n\x03ids\x18\x02 \x03(\x0c\"\x97\x01\n\x12GatewayConfigValue\x12\x16\n\x0cintegerValue\x18\x01 \x01(\x03H\x00\x12\x15\n\x0bnumberValue\x18\x02 \x01(\x01H\x00\x12\x15\n\x0bstringValue\x18\x03 \x01(\tH\x00\x12\x13\n\tboolValue\x18\x04 \x01(\x08H\x00\x12\x1e\n\x08\x61\x63lValue\x18\x05 \x01(\x0b\x32\n.wltPb.ACLH\x00\x42\x06\n\x04type\"\xe8\x03\n\rGatewayStatus\x12\x11\n\tgatewayId\x18\x01 \x01(\t\x12\x13\n\x0bgatewayType\x18\x02 \x01(\t\x12\x19\n\x11\x64ownlinkSupported\x18\x03 \x01(\x08\x12!\n\x19\x62ridgeOtaUpgradeSupported\x18\x04 \x01(\x08\x12\x12\n\napiVersion\x18\x05 \x01(\r\x12\x14\n\x07version\x18\x06 \x01(\tH\x00\x88\x01\x01\x12\x19\n\x0c\x62leSwVersion\x18\x07 \x01(\tH\x01\x88\x01\x01\x12\x1f\n\x12interfaceSwVersion\x18\x08 \x01(\tH\x02\x88\x01\x01\x12&\n\x08location\x18\t \x01(\x0b\x32\x0f.wltPb.LocationH\x03\x88\x01\x01\x12\x30\n\x06\x63onfig\x18\n \x03(\x0b\x32 .wltPb.GatewayStatus.ConfigEntry\x12\x17\n\nbleAddress\x18\x0b \x01(\tH\x04\x88\x01\x01\x1aH\n\x0b\x43onfigEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12(\n\x05value\x18\x02 \x01(\x0b\x32\x19.wltPb.GatewayConfigValue:\x02\x38\x01\x42\n\n\x08_versionB\x0f\n\r_bleSwVersionB\x15\n\x13_interfaceSwVersionB\x0b\n\t_locationB\r\n\x0b_bleAddress\"}\n\x0bGatewayInfo\x12\x30\n\x07\x65ntries\x18\x01 \x03(\x0b\x32\x1f.wltPb.GatewayInfo.EntriesEntry\x1a<\n\x0c\x45ntriesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x1b\n\x05value\x18\x02 \x01(\x0b\x32\x0c.wltPb.Value:\x02\x38\x01\"\x1b\n\x0bGatewayLogs\x12\x0c\n\x04logs\x18\x01 \x03(\t\".\n\x0c\x41\x63tionStatus\x12\x0e\n\x06\x61\x63tion\x18\x01 \x01(\r\x12\x0e\n\x06status\x18\x02 \x01(\r\"\x8e\x02\n\x0f\x44ownlinkMessage\x12#\n\x08txPacket\x18\x01 \x01(\x0b\x32\x0f.wltPb.TxPacketH\x00\x12-\n\rgatewayAction\x18\x02 \x01(\x0b\x32\x14.wltPb.GatewayActionH\x00\x12-\n\rbridgeUpgrade\x18\x03 \x01(\x0b\x32\x14.wltPb.BridgeUpgradeH\x00\x12-\n\rgatewayConfig\x18\x04 \x01(\x0b\x32\x14.wltPb.GatewayConfigH\x00\x12-\n\rcustomMessage\x18\x06 \x01(\x0b\x32\x14.wltPb.CustomMessageH\x00\x42\x06\n\x04typeJ\x04\x08\x05\x10\x06R\x0c\x63ustomBroker\"F\n\x08TxPacket\x12\x0f\n\x07payload\x18\x01 \x01(\x0c\x12\x12\n\nmaxRetries\x18\x02 \x01(\r\x12\x15\n\rmaxDurationMs\x18\x03 \x01(\r\"\x1f\n\rGatewayAction\x12\x0e\n\x06\x61\x63tion\x18\x01 \x01(\t\"\xa5\x01\n\rBridgeUpgrade\x12\x14\n\x0crebootPacket\x18\x01 \x01(\x0c\x12\x17\n\x0ftxMaxDurationMs\x18\x02 \x01(\r\x12\x14\n\x0ctxMaxRetries\x18\x03 \x01(\r\x12\x10\n\x08\x62ridgeId\x18\x04 \x01(\t\x12\x13\n\x0bversionUuid\x18\x05 \x01(\t\x12\x13\n\x0bupgradeBlSd\x18\x06 \x01(\x08\x12\x13\n\x0bimageDirUrl\x18\x07 \x01(\t\"\xc6\x02\n\rGatewayConfig\x12\x14\n\x07version\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x19\n\x0c\x62leSwVersion\x18\x02 \x01(\tH\x01\x88\x01\x01\x12\x1f\n\x12interfaceSwVersion\x18\x03 \x01(\tH\x02\x88\x01\x01\x12&\n\x08location\x18\x04 \x01(\x0b\x32\x0f.wltPb.LocationH\x03\x88\x01\x01\x12\x30\n\x06\x63onfig\x18\x05 \x03(\x0b\x32 .wltPb.GatewayConfig.ConfigEntry\x1aH\n\x0b\x43onfigEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12(\n\x05value\x18\x02 \x01(\x0b\x32\x19.wltPb.GatewayConfigValue:\x02\x38\x01\x42\n\n\x08_versionB\x0f\n\r_bleSwVersionB\x15\n\x13_interfaceSwVersionB\x0b\n\t_location\"\x81\x01\n\rCustomMessage\x12\x32\n\x07\x65ntries\x18\x01 \x03(\x0b\x32!.wltPb.CustomMessage.EntriesEntry\x1a<\n\x0c\x45ntriesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x1b\n\x05value\x18\x02 \x01(\x0b\x32\x0c.wltPb.Value:\x02\x38\x01\x62\x06proto3')
18
28
 
19
29
  _globals = globals()
20
30
  _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
21
31
  _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'wltPb_pb2', _globals)
22
- if _descriptor._USE_C_DESCRIPTORS == False:
23
- DESCRIPTOR._options = None
24
- _globals['_GATEWAYSTATUS_CONFIGENTRY']._options = None
32
+ if not _descriptor._USE_C_DESCRIPTORS:
33
+ DESCRIPTOR._loaded_options = None
34
+ _globals['_GATEWAYSTATUS_CONFIGENTRY']._loaded_options = None
25
35
  _globals['_GATEWAYSTATUS_CONFIGENTRY']._serialized_options = b'8\001'
26
- _globals['_GATEWAYINFO_ENTRIESENTRY']._options = None
36
+ _globals['_GATEWAYINFO_ENTRIESENTRY']._loaded_options = None
27
37
  _globals['_GATEWAYINFO_ENTRIESENTRY']._serialized_options = b'8\001'
28
- _globals['_GATEWAYCONFIG_CONFIGENTRY']._options = None
38
+ _globals['_GATEWAYCONFIG_CONFIGENTRY']._loaded_options = None
29
39
  _globals['_GATEWAYCONFIG_CONFIGENTRY']._serialized_options = b'8\001'
30
- _globals['_CUSTOMMESSAGE_ENTRIESENTRY']._options = None
40
+ _globals['_CUSTOMMESSAGE_ENTRIESENTRY']._loaded_options = None
31
41
  _globals['_CUSTOMMESSAGE_ENTRIESENTRY']._serialized_options = b'8\001'
32
42
  _globals['_LOCATION']._serialized_start=22
33
43
  _globals['_LOCATION']._serialized_end=58
@@ -39,34 +49,36 @@ if _descriptor._USE_C_DESCRIPTORS == False:
39
49
  _globals['_GATEWAYDATA_PACKET']._serialized_end=421
40
50
  _globals['_UPLINKMESSAGE']._serialized_start=437
41
51
  _globals['_UPLINKMESSAGE']._serialized_end=638
42
- _globals['_GATEWAYSTATUS']._serialized_start=641
43
- _globals['_GATEWAYSTATUS']._serialized_end=1116
44
- _globals['_GATEWAYSTATUS_CONFIGENTRY']._serialized_start=977
45
- _globals['_GATEWAYSTATUS_CONFIGENTRY']._serialized_end=1036
46
- _globals['_GATEWAYINFO']._serialized_start=1118
47
- _globals['_GATEWAYINFO']._serialized_end=1243
48
- _globals['_GATEWAYINFO_ENTRIESENTRY']._serialized_start=1183
49
- _globals['_GATEWAYINFO_ENTRIESENTRY']._serialized_end=1243
50
- _globals['_GATEWAYLOGS']._serialized_start=1245
51
- _globals['_GATEWAYLOGS']._serialized_end=1272
52
- _globals['_ACTIONSTATUS']._serialized_start=1274
53
- _globals['_ACTIONSTATUS']._serialized_end=1320
54
- _globals['_DOWNLINKMESSAGE']._serialized_start=1323
55
- _globals['_DOWNLINKMESSAGE']._serialized_end=1618
56
- _globals['_TXPACKET']._serialized_start=1620
57
- _globals['_TXPACKET']._serialized_end=1690
58
- _globals['_GATEWAYACTION']._serialized_start=1692
59
- _globals['_GATEWAYACTION']._serialized_end=1723
60
- _globals['_BRIDGEUPGRADE']._serialized_start=1726
61
- _globals['_BRIDGEUPGRADE']._serialized_end=1891
62
- _globals['_GATEWAYCONFIG']._serialized_start=1894
63
- _globals['_GATEWAYCONFIG']._serialized_end=2207
64
- _globals['_GATEWAYCONFIG_CONFIGENTRY']._serialized_start=977
65
- _globals['_GATEWAYCONFIG_CONFIGENTRY']._serialized_end=1036
66
- _globals['_CUSTOMBROKER']._serialized_start=2210
67
- _globals['_CUSTOMBROKER']._serialized_end=2376
68
- _globals['_CUSTOMMESSAGE']._serialized_start=2379
69
- _globals['_CUSTOMMESSAGE']._serialized_end=2508
70
- _globals['_CUSTOMMESSAGE_ENTRIESENTRY']._serialized_start=1183
71
- _globals['_CUSTOMMESSAGE_ENTRIESENTRY']._serialized_end=1243
52
+ _globals['_ACL']._serialized_start=640
53
+ _globals['_ACL']._serialized_end=678
54
+ _globals['_GATEWAYCONFIGVALUE']._serialized_start=681
55
+ _globals['_GATEWAYCONFIGVALUE']._serialized_end=832
56
+ _globals['_GATEWAYSTATUS']._serialized_start=835
57
+ _globals['_GATEWAYSTATUS']._serialized_end=1323
58
+ _globals['_GATEWAYSTATUS_CONFIGENTRY']._serialized_start=1171
59
+ _globals['_GATEWAYSTATUS_CONFIGENTRY']._serialized_end=1243
60
+ _globals['_GATEWAYINFO']._serialized_start=1325
61
+ _globals['_GATEWAYINFO']._serialized_end=1450
62
+ _globals['_GATEWAYINFO_ENTRIESENTRY']._serialized_start=1390
63
+ _globals['_GATEWAYINFO_ENTRIESENTRY']._serialized_end=1450
64
+ _globals['_GATEWAYLOGS']._serialized_start=1452
65
+ _globals['_GATEWAYLOGS']._serialized_end=1479
66
+ _globals['_ACTIONSTATUS']._serialized_start=1481
67
+ _globals['_ACTIONSTATUS']._serialized_end=1527
68
+ _globals['_DOWNLINKMESSAGE']._serialized_start=1530
69
+ _globals['_DOWNLINKMESSAGE']._serialized_end=1800
70
+ _globals['_TXPACKET']._serialized_start=1802
71
+ _globals['_TXPACKET']._serialized_end=1872
72
+ _globals['_GATEWAYACTION']._serialized_start=1874
73
+ _globals['_GATEWAYACTION']._serialized_end=1905
74
+ _globals['_BRIDGEUPGRADE']._serialized_start=1908
75
+ _globals['_BRIDGEUPGRADE']._serialized_end=2073
76
+ _globals['_GATEWAYCONFIG']._serialized_start=2076
77
+ _globals['_GATEWAYCONFIG']._serialized_end=2402
78
+ _globals['_GATEWAYCONFIG_CONFIGENTRY']._serialized_start=1171
79
+ _globals['_GATEWAYCONFIG_CONFIGENTRY']._serialized_end=1243
80
+ _globals['_CUSTOMMESSAGE']._serialized_start=2405
81
+ _globals['_CUSTOMMESSAGE']._serialized_end=2534
82
+ _globals['_CUSTOMMESSAGE_ENTRIESENTRY']._serialized_start=1390
83
+ _globals['_CUSTOMMESSAGE_ENTRIESENTRY']._serialized_end=1450
72
84
  # @@protoc_insertion_point(module_scope)
@@ -62,6 +62,28 @@ class UplinkMessage(_message.Message):
62
62
  actionStatus: ActionStatus
63
63
  def __init__(self, gatewayStatus: _Optional[_Union[GatewayStatus, _Mapping]] = ..., gatewayInfo: _Optional[_Union[GatewayInfo, _Mapping]] = ..., gatewayLogs: _Optional[_Union[GatewayLogs, _Mapping]] = ..., actionStatus: _Optional[_Union[ActionStatus, _Mapping]] = ...) -> None: ...
64
64
 
65
+ class ACL(_message.Message):
66
+ __slots__ = ("mode_allow", "ids")
67
+ MODE_ALLOW_FIELD_NUMBER: _ClassVar[int]
68
+ IDS_FIELD_NUMBER: _ClassVar[int]
69
+ mode_allow: bool
70
+ ids: _containers.RepeatedScalarFieldContainer[bytes]
71
+ def __init__(self, mode_allow: bool = ..., ids: _Optional[_Iterable[bytes]] = ...) -> None: ...
72
+
73
+ class GatewayConfigValue(_message.Message):
74
+ __slots__ = ("integerValue", "numberValue", "stringValue", "boolValue", "aclValue")
75
+ INTEGERVALUE_FIELD_NUMBER: _ClassVar[int]
76
+ NUMBERVALUE_FIELD_NUMBER: _ClassVar[int]
77
+ STRINGVALUE_FIELD_NUMBER: _ClassVar[int]
78
+ BOOLVALUE_FIELD_NUMBER: _ClassVar[int]
79
+ ACLVALUE_FIELD_NUMBER: _ClassVar[int]
80
+ integerValue: int
81
+ numberValue: float
82
+ stringValue: str
83
+ boolValue: bool
84
+ aclValue: ACL
85
+ def __init__(self, integerValue: _Optional[int] = ..., numberValue: _Optional[float] = ..., stringValue: _Optional[str] = ..., boolValue: bool = ..., aclValue: _Optional[_Union[ACL, _Mapping]] = ...) -> None: ...
86
+
65
87
  class GatewayStatus(_message.Message):
66
88
  __slots__ = ("gatewayId", "gatewayType", "downlinkSupported", "bridgeOtaUpgradeSupported", "apiVersion", "version", "bleSwVersion", "interfaceSwVersion", "location", "config", "bleAddress")
67
89
  class ConfigEntry(_message.Message):
@@ -69,8 +91,8 @@ class GatewayStatus(_message.Message):
69
91
  KEY_FIELD_NUMBER: _ClassVar[int]
70
92
  VALUE_FIELD_NUMBER: _ClassVar[int]
71
93
  key: str
72
- value: Value
73
- def __init__(self, key: _Optional[str] = ..., value: _Optional[_Union[Value, _Mapping]] = ...) -> None: ...
94
+ value: GatewayConfigValue
95
+ def __init__(self, key: _Optional[str] = ..., value: _Optional[_Union[GatewayConfigValue, _Mapping]] = ...) -> None: ...
74
96
  GATEWAYID_FIELD_NUMBER: _ClassVar[int]
75
97
  GATEWAYTYPE_FIELD_NUMBER: _ClassVar[int]
76
98
  DOWNLINKSUPPORTED_FIELD_NUMBER: _ClassVar[int]
@@ -91,9 +113,9 @@ class GatewayStatus(_message.Message):
91
113
  bleSwVersion: str
92
114
  interfaceSwVersion: str
93
115
  location: Location
94
- config: _containers.MessageMap[str, Value]
116
+ config: _containers.MessageMap[str, GatewayConfigValue]
95
117
  bleAddress: str
96
- def __init__(self, gatewayId: _Optional[str] = ..., gatewayType: _Optional[str] = ..., downlinkSupported: bool = ..., bridgeOtaUpgradeSupported: bool = ..., apiVersion: _Optional[int] = ..., version: _Optional[str] = ..., bleSwVersion: _Optional[str] = ..., interfaceSwVersion: _Optional[str] = ..., location: _Optional[_Union[Location, _Mapping]] = ..., config: _Optional[_Mapping[str, Value]] = ..., bleAddress: _Optional[str] = ...) -> None: ...
118
+ def __init__(self, gatewayId: _Optional[str] = ..., gatewayType: _Optional[str] = ..., downlinkSupported: bool = ..., bridgeOtaUpgradeSupported: bool = ..., apiVersion: _Optional[int] = ..., version: _Optional[str] = ..., bleSwVersion: _Optional[str] = ..., interfaceSwVersion: _Optional[str] = ..., location: _Optional[_Union[Location, _Mapping]] = ..., config: _Optional[_Mapping[str, GatewayConfigValue]] = ..., bleAddress: _Optional[str] = ...) -> None: ...
97
119
 
98
120
  class GatewayInfo(_message.Message):
99
121
  __slots__ = ("entries",)
@@ -123,20 +145,18 @@ class ActionStatus(_message.Message):
123
145
  def __init__(self, action: _Optional[int] = ..., status: _Optional[int] = ...) -> None: ...
124
146
 
125
147
  class DownlinkMessage(_message.Message):
126
- __slots__ = ("txPacket", "gatewayAction", "bridgeUpgrade", "gatewayConfig", "customBroker", "customMessage")
148
+ __slots__ = ("txPacket", "gatewayAction", "bridgeUpgrade", "gatewayConfig", "customMessage")
127
149
  TXPACKET_FIELD_NUMBER: _ClassVar[int]
128
150
  GATEWAYACTION_FIELD_NUMBER: _ClassVar[int]
129
151
  BRIDGEUPGRADE_FIELD_NUMBER: _ClassVar[int]
130
152
  GATEWAYCONFIG_FIELD_NUMBER: _ClassVar[int]
131
- CUSTOMBROKER_FIELD_NUMBER: _ClassVar[int]
132
153
  CUSTOMMESSAGE_FIELD_NUMBER: _ClassVar[int]
133
154
  txPacket: TxPacket
134
155
  gatewayAction: GatewayAction
135
156
  bridgeUpgrade: BridgeUpgrade
136
157
  gatewayConfig: GatewayConfig
137
- customBroker: CustomBroker
138
158
  customMessage: CustomMessage
139
- def __init__(self, txPacket: _Optional[_Union[TxPacket, _Mapping]] = ..., gatewayAction: _Optional[_Union[GatewayAction, _Mapping]] = ..., bridgeUpgrade: _Optional[_Union[BridgeUpgrade, _Mapping]] = ..., gatewayConfig: _Optional[_Union[GatewayConfig, _Mapping]] = ..., customBroker: _Optional[_Union[CustomBroker, _Mapping]] = ..., customMessage: _Optional[_Union[CustomMessage, _Mapping]] = ...) -> None: ...
159
+ def __init__(self, txPacket: _Optional[_Union[TxPacket, _Mapping]] = ..., gatewayAction: _Optional[_Union[GatewayAction, _Mapping]] = ..., bridgeUpgrade: _Optional[_Union[BridgeUpgrade, _Mapping]] = ..., gatewayConfig: _Optional[_Union[GatewayConfig, _Mapping]] = ..., customMessage: _Optional[_Union[CustomMessage, _Mapping]] = ...) -> None: ...
140
160
 
141
161
  class TxPacket(_message.Message):
142
162
  __slots__ = ("payload", "maxRetries", "maxDurationMs")
@@ -179,8 +199,8 @@ class GatewayConfig(_message.Message):
179
199
  KEY_FIELD_NUMBER: _ClassVar[int]
180
200
  VALUE_FIELD_NUMBER: _ClassVar[int]
181
201
  key: str
182
- value: Value
183
- def __init__(self, key: _Optional[str] = ..., value: _Optional[_Union[Value, _Mapping]] = ...) -> None: ...
202
+ value: GatewayConfigValue
203
+ def __init__(self, key: _Optional[str] = ..., value: _Optional[_Union[GatewayConfigValue, _Mapping]] = ...) -> None: ...
184
204
  VERSION_FIELD_NUMBER: _ClassVar[int]
185
205
  BLESWVERSION_FIELD_NUMBER: _ClassVar[int]
186
206
  INTERFACESWVERSION_FIELD_NUMBER: _ClassVar[int]
@@ -190,28 +210,8 @@ class GatewayConfig(_message.Message):
190
210
  bleSwVersion: str
191
211
  interfaceSwVersion: str
192
212
  location: Location
193
- config: _containers.MessageMap[str, Value]
194
- def __init__(self, version: _Optional[str] = ..., bleSwVersion: _Optional[str] = ..., interfaceSwVersion: _Optional[str] = ..., location: _Optional[_Union[Location, _Mapping]] = ..., config: _Optional[_Mapping[str, Value]] = ...) -> None: ...
195
-
196
- class CustomBroker(_message.Message):
197
- __slots__ = ("customBroker", "port", "brokerUrl", "username", "password", "updateTopic", "statusTopic", "dataTopic")
198
- CUSTOMBROKER_FIELD_NUMBER: _ClassVar[int]
199
- PORT_FIELD_NUMBER: _ClassVar[int]
200
- BROKERURL_FIELD_NUMBER: _ClassVar[int]
201
- USERNAME_FIELD_NUMBER: _ClassVar[int]
202
- PASSWORD_FIELD_NUMBER: _ClassVar[int]
203
- UPDATETOPIC_FIELD_NUMBER: _ClassVar[int]
204
- STATUSTOPIC_FIELD_NUMBER: _ClassVar[int]
205
- DATATOPIC_FIELD_NUMBER: _ClassVar[int]
206
- customBroker: bool
207
- port: int
208
- brokerUrl: str
209
- username: str
210
- password: str
211
- updateTopic: str
212
- statusTopic: str
213
- dataTopic: str
214
- def __init__(self, customBroker: bool = ..., port: _Optional[int] = ..., brokerUrl: _Optional[str] = ..., username: _Optional[str] = ..., password: _Optional[str] = ..., updateTopic: _Optional[str] = ..., statusTopic: _Optional[str] = ..., dataTopic: _Optional[str] = ...) -> None: ...
213
+ config: _containers.MessageMap[str, GatewayConfigValue]
214
+ def __init__(self, version: _Optional[str] = ..., bleSwVersion: _Optional[str] = ..., interfaceSwVersion: _Optional[str] = ..., location: _Optional[_Union[Location, _Mapping]] = ..., config: _Optional[_Mapping[str, GatewayConfigValue]] = ...) -> None: ...
215
215
 
216
216
  class CustomMessage(_message.Message):
217
217
  __slots__ = ("entries",)
@@ -92,16 +92,11 @@ class WltPkt():
92
92
  self.pkt = ag.UnifiedEchoPktV1()
93
93
  elif self.data_hdr.group_id_major == ag.GROUP_ID_BLE5_EXTENDED:
94
94
  self.pkt = ag.UnifiedEchoExtPkt()
95
- else:
96
- print(f"Unidentified unified group id found: {hex(self.data_hdr.group_id_major)}")
97
95
  # SideInfo pkts
98
96
  elif self.hdr.group_id == ag.GROUP_ID_SIDE_INFO_SENSOR:
99
97
  self.pkt = ag.SideInfoSensor()
100
98
  elif self.hdr.group_id == ag.GROUP_ID_SIDE_INFO:
101
99
  self.pkt = ag.SideInfo()
102
- else:
103
- print(f"Unidentified sensor group id found: {hex(self.data_hdr.group_id_major)}")
104
-
105
100
  if self.pkt:
106
101
  if self.data_hdr.group_id_major == ag.GROUP_ID_BLE5_EXTENDED:
107
102
  self.pkt.set(string[14:84])
@@ -111,4 +106,7 @@ class WltPkt():
111
106
  elif self.hdr.group_id == ag.GROUP_ID_SIGNAL_INDICATOR:
112
107
  self.pkt = eval_pkt(f'SignalIndicatorDataV{ag.SIGNAL_INDICATOR_PACKET_VERSION_LATEST}')(string[8:62])
113
108
  elif self.hdr.uuid_lsb == ag.HDR_DEFAULT_BRG_SENSOR_UUID_LSB and self.hdr.uuid_msb == ag.HDR_DEFAULT_BRG_SENSOR_UUID_MSB:
114
- self.pkt = ag.SensorData(string)
109
+ self.pkt = ag.SensorData(string)
110
+ # Unparsed pkts
111
+ else:
112
+ print(f"Unable to parse packet with payload: {string}")
common/wlt_logo.png ADDED
Binary file
@@ -164,9 +164,12 @@ GLOBAL_PACING_GROUP_THRESHOLD = 0.70
164
164
  PACKETS_ECHO_OFF = 16
165
165
  TEST_PASSED = 0
166
166
  TEST_FAILED = -1
167
+ TEST_INCONCLUSIVE = 1
168
+ TEST_INFO = 2
169
+ TEST_WARNING = 3
170
+ TEST_OPTIONAL = 4
167
171
  NO_RESPONSE = "NO_RESPONSE"
168
172
  DONE = "DONE"
169
- TEST_SUCCESS = ":)"
170
173
  MGMT_PKT = "mgmt_pkt"
171
174
  UNIFIED_PKT = "unified_pkt"
172
175
  SIDE_INFO_PKT = "side_info_pkt"