27 lines
641 B
Python
27 lines
641 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
|
|
|
|
client = None # DO NOT EDIT
|
|
|
|
|
|
def run():
|
|
# DO NOT EDIT
|
|
global client
|
|
client = mqtt.Client(client_id=str(uuid.uuid4()), # client_id has to be unique among ALL users
|
|
clean_session=False,
|
|
protocol=mqtt.MQTTv31)
|
|
|
|
# the execution of all code shall be started from within this function
|
|
# ADD YOUR OWN IMPLEMENTATION HEREAFTER
|
|
print("Hello World!")
|
|
|
|
|
|
# DO NOT EDIT
|
|
if __name__ == '__main__':
|
|
run()
|