Robot Docu updated
This commit is contained in:
parent
a8f365cd4f
commit
99b1bbb065
Binary file not shown.
File diff suppressed because it is too large
Load Diff
@ -216,7 +216,7 @@ def get_position(clients: mqtt.Client, userdata, message: mqtt.MQTTMessage):
|
||||
clients.publish(Topics["ROBOT_DATA_POSITION"], json.dumps(position, indent=4), qos=1)
|
||||
|
||||
|
||||
def get_BatteryStatus(client: mqtt.Client, userdata, message: mqtt.MQTTMessage):
|
||||
def get_batteryStatus(client: mqtt.Client, userdata, message: mqtt.MQTTMessage):
|
||||
"""
|
||||
Callback function for battery status request
|
||||
Function to read battery status from ev3 and send via MQTT in form of BATTERY
|
||||
|
@ -30,7 +30,7 @@ def on_connect(client: mqtt.Client, userdata, flags, rc):
|
||||
#Add callbacks
|
||||
client.message_callback_add(Topics["ROBOT_ACTION_DRIVE"], functions.drive_plant)
|
||||
client.message_callback_add(Topics["ROBOT_ACTION_GETPOSITION"], functions.get_position)
|
||||
client.message_callback_add(Topics["ROBOT_ACTION_GETBATTERY"], functions.get_BatteryStatus)
|
||||
client.message_callback_add(Topics["ROBOT_ACTION_GETBATTERY"], functions.get_batteryStatus)
|
||||
client.message_callback_add(Topics["ROBOT_ACTION_DRIVEALL"], functions.drive_plant_all)
|
||||
|
||||
#Subscribe to topics
|
||||
|
Loading…
x
Reference in New Issue
Block a user