- 註冊時間
- 2024-3-12
- 最後登錄
- 2024-3-12
- 閱讀權限
- 10
- 積分
- 5
- 精華
- 0
- 帖子
- 1
|
Therefore, for IoT device access, we should design an adaptation layer as a bridge between the manufacturer's data API and the business layer. The responsibility of this adaptation layer is to access the IoT device data APIs of different manufacturers and then convert them into standard format data required by the business layer.
In this way, even if you change manufacturers or equipment, you only need to change the Indonesia Telegram Number Data adaptation layer, and neither the business layer nor the front end need to make any changes. With the adaptation layer in place, our product architecture evolves into the following. Under this architecture, no matter how many manufacturers or types of devices are connected, adjustments only need to be made at the adaptation layer, and the business modules and front-end do not need to be modified in any way.
The arrow drawn in the picture is one-way. In fact, it is no problem to change it to a two-way arrow. If the business module needs to issue instructions to IoT devices, it can also use the adaptation layer to convert standard instructions into corresponding instructions that devices from different manufacturers can receive. There is also no need to change the business module when connecting to new manufacturer equipment.
|
|