官术网_书友最值得收藏!

Smart device to the apps

A simple flow of data from a sensor to a user device will be as follows:

As you can see from the previous figure, the data originates at the sensor; this data is read by the Raspberry Pi 3 and published to the MQTTS broker (Mosca) via the Wi-Fi router. Once the broker receives the data, it will send the same to the API engine, which will persist the data to the DB. Once the data has been successfully saved, the API engine will send the new data to our app, to show the data in real time.

An important thing to notice here is that the API engine will act as an MQTT client and subscribe to topics on which the device publishes the data. We will look at these topics when we go over the implementation.

Generally, the data in this flow would be a typical sensor transmitting data.

主站蜘蛛池模板: 平原县| 和政县| 丽水市| 涿州市| 民丰县| 连平县| 固安县| 顺昌县| 鄂温| 九台市| 武冈市| 陕西省| 石屏县| 庄浪县| 阿拉尔市| 北京市| 鄂伦春自治旗| 凯里市| 洛浦县| 桐庐县| 鄂伦春自治旗| 和林格尔县| 内黄县| 综艺| 科技| 且末县| 绥德县| 弥勒县| 江阴市| 清河县| 双柏县| 灯塔市| 台东县| 沂水县| 犍为县| 高安市| 库车县| 明水县| 昭觉县| 哈尔滨市| 噶尔县|