|
|
|
|
|
|
|
|
clients.publish(Topics["ROBOT_DATA_POSITION"], json.dumps(position, indent=4)) |
|
|
clients.publish(Topics["ROBOT_DATA_POSITION"], json.dumps(position, indent=4)) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def get_BatteryStatus(clients: mqtt.Client, userdata, message: mqtt.MQTTMessage): |
|
|
|
|
|
|
|
|
def get_batteryStatus(clients: mqtt.Client, userdata, message: mqtt.MQTTMessage): |
|
|
""" |
|
|
""" |
|
|
Callback function for battery status request |
|
|
Callback function for battery status request |
|
|
Function to read battery status from ev3 and send via MQTT |
|
|
Function to read battery status from ev3 and send via MQTT |