I am programming the farmbot using mqtt messages in python. Sending mqtt messages is already tested and working, but i have some trouble getting back messages/events from the farmbot. Right now am using timers to wait for the farmbot to finish moving, of course i want this to change so that i only have to wait till the farmbot has finished moving and send back some form of confirmation through events. Could anyone help me with this? Or has anyone some example code?
Have you subscribed to the device MQTT channel (for example, bot/device_23/from_device)? In the bot status there is a busy flag you can use to determine if FarmBot is done moving. You could also check the location_data. You may also be able to use the Movement complete. log, depending on your needs.