This repository contains Arduino and gateway code for DTEK0043 course project. Backend code is available in https://github.com/DTEK0043-ZZAAFF/backend
See source files for their respective license. Almost all is MIT licensed
All other files including documentation files: All rights reserved
- Install dependencies:
-
Open iot-project/iot-project.ino with Arduino IDE
-
Test
- Upload into Arduino
- install missing python dependencies
pip install pyserial
pip install requests
pip install paho-mqtt
pip install pyfiglet
used by external script
- Run gateway.py with valid set of arguments. Execute
python gateway.py --help
to see list of arguments
Open cloned directory as document. If using Arduino-CmdMessenger library from Arduino's library directory Arduino-CmdMessenger/library.json dependencies must be removed.
- Upload code with Arduino CLI:
arduino -v --upload --board arduino:avr:mega --port /dev/ttyACM0 iot_project/iot_project.ino
Note: change board type and port if needed - Notes for lab room usage: https://github.com/DTEK0043-ZZAAFF/project/blob/master/Notes-for-k127.md
Port to 2.7 was broken. Fixed version: https://github.com/DTEK0043-ZZAAFF/PyCmdMessenger/tree/python27
To simplify code process I have imported copy of the library into this repo