Skip to content

DTEK0043-ZZAAFF/project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description

This repository contains Arduino and gateway code for DTEK0043 course project. Backend code is available in https://github.com/DTEK0043-ZZAAFF/backend

License

See source files for their respective license. Almost all is MIT licensed

All other files including documentation files: All rights reserved

Notes for Arduino code

  1. Install dependencies:
  1. Open iot-project/iot-project.ino with Arduino IDE

  2. Test

  • Upload into Arduino

Notes for python code

  • 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

Usage with platformIO

Open cloned directory as document. If using Arduino-CmdMessenger library from Arduino's library directory Arduino-CmdMessenger/library.json dependencies must be removed.

Notes

Fixed version of PyCmdMessenger

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