This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| en:iot_homelab_kit:hardware:itt_iot [2017/12/08 10:53] – Somepub | en:iot_homelab_kit:hardware:itt_iot [2020/07/20 09:00] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 109: | Line 109: | ||
| </ | </ | ||
| if the JSON validated and the device had enough free space to store data. | if the JSON validated and the device had enough free space to store data. | ||
| - | |||
| ==== Restart your device ==== | ==== Restart your device ==== | ||
| - | http: // < | ||
| restarts the device in normal mode. Rebooting is necessary for new ones | restarts the device in normal mode. Rebooting is necessary for new ones | ||
| to activate the settings. | to activate the settings. | ||
| + | Returns before restarting: | ||
| + | <code c> | ||
| + | { | ||
| + | " | ||
| + | } | ||
| + | </ | ||
| Line 144: | Line 148: | ||
| to name it "itt / devices / dev1" | to name it "itt / devices / dev1" | ||
| - | ===== Normal mode ===== | ||
| - | Normal mode is the mode in which a device executes a user program. A prerequisite for normal operation is the running of WiFi and | ||
| - | MQTT server connection. If the connection can not be made, the device will be started in setup mode. | ||
| - | In this case, you should check the device settings (usernames, passwords, ...) and make sure that | ||
| - | network connection and server are working. | ||
| - | |||
| - | ==== Data exchange with the server ==== | ||
| - | |||
| - | |||
| - | The data exchange with the server takes place through the MQTT protocol. The MQTT protocol uses publish- | ||
| - | subscribe pattern (https:// | ||
| - | (data) is organized by theme. The IoT framework has been tested on Mosquitto (http:// | ||
| - | server, but you can use another server or service that follows the MQTT protocol (for example: | ||
| - | Amazon AWS IoT, Azure IoT). | ||
| - | |||
| - | ==== MQTT items ==== | ||
| - | |||
| - | |||
| - | The IoT Framework defines some of the default themes used to track and track the device | ||
| - | remote management. If necessary, the user can create a thread as needed. Subject name | ||
| - | The name of the device is used for compilation. The device name is a unique name assigned by the user, which is | ||
| - | prefix device themes. For example, if the device name is " | ||
| - | "Dev1 / log", "dev1 / cfg", ... To achieve a better logical organization, | ||
| - | sub themes, to add a device to a sub theme, the name of the device must be named as the device containing the name | ||
| - | sub-topic For example, if you want to add " | ||
| - | to name it "itt / devices / dev1" | ||