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:46] – Somepub | en:iot_homelab_kit:hardware:itt_iot [2020/07/20 09:00] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 19: | Line 19: | ||
| To use ITT IoT framework, you need to include the source code of the framework <code c># | To use ITT IoT framework, you need to include the source code of the framework <code c># | ||
| - | ==== Setup mode ==== | + | ===== Setup mode ===== |
| This operating mode is required to initialize the device to allow the device to start in normal operation and | This operating mode is required to initialize the device to allow the device to start in normal operation and | ||
| Line 29: | Line 29: | ||
| the device uses JSON format data structures and HTTP GET and POST to exchange data inquiries. | the device uses JSON format data structures and HTTP GET and POST to exchange data inquiries. | ||
| - | === Setup mode HTTP interface === | + | ==== Setup mode HTTP interface |
| The information in this section is not relevant when used for configuring | The information in this section is not relevant when used for configuring | ||
| Line 36: | Line 36: | ||
| application for setting up the device. | application for setting up the device. | ||
| - | === Device visibility check (ping) === | + | ==== Device visibility check (ping) |
| http: // < | http: // < | ||
| Line 43: | Line 43: | ||
| <code c> | <code c> | ||
| - | === Device Hardware Information Query === | + | ==== Device Hardware Information Query ==== |
| http: // < | http: // < | ||
| Line 51: | Line 51: | ||
| " | " | ||
| " | " | ||
| - | f_size: 4194304 | + | f_size: 4194304, |
| - | f_speed: " | + | f_speed: " |
| " | " | ||
| " | " | ||
| Line 60: | Line 60: | ||
| </ | </ | ||
| - | === Download the settings from your device === | + | ==== Download the settings from your device |
| http: // < | http: // < | ||
| Line 77: | Line 77: | ||
| </ | </ | ||
| - | === Search for WiFi networks === | + | ==== Search for WiFi networks |
| The device searches for and returns for each network found a name, signal strength, security information (* | The device searches for and returns for each network found a name, signal strength, security information (* | ||
| Line 96: | Line 96: | ||
| </ | </ | ||
| - | === Changing settings to the device === | + | ==== Changing settings to the device |
| http: // < | http: // < | ||
| Line 110: | Line 110: | ||
| 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. | ||
| Line 122: | Line 120: | ||
| } | } | ||
| </ | </ | ||
| + | |||
| + | |||
| + | ===== 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" | ||
| + | |||
| + | |||