updated template for 2nd round of RoboLab Spring 2018
This commit is contained in:
commit
e6b628f41a
11 changed files with 629 additions and 0 deletions
26
src/main.py
Normal file
26
src/main.py
Normal file
|
@ -0,0 +1,26 @@
|
|||
#!/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()
|
Loading…
Add table
Add a link
Reference in a new issue