Labs
Programming Languages Labs
Project: Base Code Hello
Go to your git "TheIoTLearningInitiative" repository, under "InternetOfThings101" directory
root@board:~# cd TheIoTLearningInitiative/InternetOfThings101
root@board:~/TheIoTLearningInitiative/InternetOfThings101#Create a file called main.py to host our project code and print in console "Hello Internet of Things 101"
root@board:~/TheIoTLearningInitiative/InternetOfThings101# vi main.py#!/usr/bin/python
import time
if __name__ == '__main__':
while True:
print "Hello Internet of Things 101"
time.sleep(5)
# End of FileProject: Signal Handler
Add function to handle signals e.g. CTRL-Z
Your github repository directory structure shall be at this point as follows:
Last updated