Browse Source

Robot docu software description added

master
waldluis 1 year ago
parent
commit
2c065573a5
3 changed files with 714 additions and 315 deletions
  1. BIN
      documentation/Robot.docx
  2. 712
    313
      documentation/SmartGardeningProjekt.mdj
  3. 2
    2
      software/roboter/raspy/functions.py

BIN
documentation/Robot.docx View File


+ 712
- 313
documentation/SmartGardeningProjekt.mdj
File diff suppressed because it is too large
View File


+ 2
- 2
software/roboter/raspy/functions.py View File

thread.start() thread.start()




def get_position(clients: mqtt.Client, userdata, message: mqtt.MQTTMessage):
def get_position(client: mqtt.Client, userdata, message: mqtt.MQTTMessage):
""" """
Callback function for GPS position request Callback function for GPS position request
Function to send actual GPS position via MQTT in form of POSITION Function to send actual GPS position via MQTT in form of POSITION
"Position": "" "Position": ""
} }


clients.publish(Topics["ROBOT_DATA_POSITION"], json.dumps(position, indent=4), qos=1)
client.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):

Loading…
Cancel
Save