Non-connected star IoT

What is the simplest possible home IoT architecture we can build?

See MyIoT for a little more elaborate attempt.

Messages

From sensor

Update: #MyIoT, ID, data

From server

Response: #MyIoT, ID, data

Sample interactions

Sync clock

  1. Sensor update: ID, my time

If sensor time is not updated respond with current time

  1. Server response: ID, current time

TODO: How to avoid delay between server time and response time

Upload trip meter data

  1. Sensor update: ID, current trip meter, max speed

If server can respond a request for more data can be responded

  1. Server response: ID, get annual stats

Client rotates data updates for some time

  1. Sensor update: ID, month, stats
  2. Sensor update: ID, month, stats
  3. Sensor update: ID, month, stats
    ...

Architecture

Possibly we could make a simple architecture using MQTT.

Latest responses are kept in memory and updated for all id's that have been spotted so messages can be responed to sensors quickly.

Sensor interaction is handled by small pub/sub script clients on MQTT.