26 lines
520 B
Python
26 lines
520 B
Python
#!/usr/bin/env python3
|
|
|
|
import ev3dev.ev3 as ev3
|
|
import uuid
|
|
import paho.mqtt.client as mqtt
|
|
from planet import Direction, Planet
|
|
from communication import Communication
|
|
from move import Move
|
|
|
|
# DO NOT EDIT
|
|
client = None
|
|
|
|
|
|
def run():
|
|
# DO NOT EDIT
|
|
global client
|
|
# client_id has to be unique among ALL users
|
|
client = mqtt.Client(client_id=str(uuid.uuid4()),
|
|
clean_session=False,
|
|
protocol=mqtt.MQTTv31)
|
|
|
|
|
|
# DO NOT EDIT
|
|
if __name__ == '__main__':
|
|
run()
|