Written in typescript (nodejs) Database is mongoose
- IOT Device Management
- Device gets unique name (==> token)
- IOT State Management
- should it be on or off
- User Management for access
- login
- register
- User token system
- Add a new device (also to user account)
- User sets a name (webservice generates token)
- name has to be set on the IOT device
- device gets active by the first get msg
Device sends get message every second (maybe every 0.5 seconds)
- Device sends get message with json file (includes token)
- Webservice checks state of the IOT device in the db
- Webservice returns state of the of IOT device
User sends all messages with his user token
Tjango (python) web client Device sends get message every second (maybe every 0.5 seconds) to retrieve his state Includes his name token in every get
User Interface via Website (Angular, Vue, React???) or Mobile App