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

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.

主站蜘蛛池模板: 沙田区| 班戈县| 建瓯市| 略阳县| 砀山县| 普定县| 青铜峡市| 和龙市| 靖宇县| 泰安市| 淄博市| 合川市| 尤溪县| 五华县| 邻水| 绥江县| 乐亭县| 阿拉善盟| 延吉市| 姜堰市| 衡水市| 拉孜县| 攀枝花市| 新兴县| 芜湖县| 襄汾县| 宝坻区| 崇义县| 淳安县| 延边| 九龙县| 开封县| 游戏| 合阳县| 大悟县| 万荣县| 松潘县| 凌海市| 浪卡子县| 乌拉特前旗| 雅安市|