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

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.

主站蜘蛛池模板: 肥西县| 乡城县| 拉孜县| 涿州市| 普格县| 乐清市| 沂源县| 邢台县| 萨嘎县| 海门市| 青河县| 革吉县| 买车| 黔江区| 西乡县| 莱阳市| 定日县| 朔州市| 丰县| 醴陵市| 正安县| 惠安县| 平原县| 启东市| 额尔古纳市| 隆子县| 邛崃市| 阆中市| 湖南省| 湖北省| 鹤壁市| 大安市| 晋城| 谢通门县| 四川省| 长海县| 望江县| 丰原市| 潮安县| 鞍山市| 恩施市|