Skip to content

030. The iotinator master module

reivaxy edited this page Sep 1, 2018 · 1 revision

Its function is pretty well described on this wiki home page.

When starting up, it registers to the website that was parameterized at initialization, on which the content of the webSite direcotry should be uyploaded. This website must provide php support and a mysSql database server. Check the webSite directory README for more instructions. For instance, my own server is http://www.iotinator.com

The master manages a collection of agents, to which it adds any agent that connects. In this collection is stored the state of each agents, its IP address, Mac address, User Interface class name, ping period, and more.

Periodically, the master will ping the agents, depending on various conditions, to check if they are still responding to requests.

It exposes an API:

  • for agents to connect
  • for agents to provide their status
  • for a web app or mobile app to get the statuses of the agents
  • for a web app or mobile app to send data to agents
  • to reset the whole swarm to factory settings
  • to restart a module (agent or itself)
  • to trigger OTA updating of one agent module.