|
@@ -59,19 +59,19 @@ if __name__ == '__main__':
|
|
|
|
|
|
|
|
|
|
|
|
- c1 = Client(host='10.10.10.116', port=41883)
|
|
|
+
|
|
|
+ c1 = Client(host='10.10.60.237', port=41883)
|
|
|
|
|
|
|
|
|
|
|
|
def m1(_, __, p3):
|
|
|
-
|
|
|
- print(f"#message.payload: {json.loads(p3.payload)}")
|
|
|
+ print(f'#message: {p3.payload}')
|
|
|
+
|
|
|
|
|
|
-
|
|
|
-
|
|
|
|
|
|
|
|
|
- subscribe_topic = 'Vehicle/ControlVehicle/Veh001'
|
|
|
+
|
|
|
+ subscribe_topic = 'client'
|
|
|
c1.start_subscribe_loop(decorate_method=m1, subscribe_topic=subscribe_topic)
|
|
|
|
|
|
|