Thingsboard Gateway

Gateway是什么?

gateway在thingsboard平台定义为一种特殊的设备,通过图形化配置的方式,解析OPC UA、modbus、MQTT、Http协议;

通过定时任务,拿到数据解析和转换数据,然后通过MQTT协议传输到thingsboard云端,存储到时序数据库。

官网链接https://thingsboard.io/docs/iot-gateway/what-is-iot-gateway/

平台集成Integrations与物联网网关Gateway

收费版添加了Integrations;

有经验的ThingsBoard用户可能会注意到Integrations的功能与IoT Gateway的功能部分重叠。但是,这两个系统/功能之间存在重要差异:

扫描二维码关注公众号,回复: 8984101 查看本文章

IoT Gateway专为本地网络部署而设计,Integrations专为服务器到服务器集成而设计。

IoT Gateway旨在支持<1000台设备,而Integrations则专为高吞吐量,可扩展性和集群部署而设计,是ThingsBoard服务器的一部分。

需要网关重新编译和重新启动才能添加自定义有效负载解码器,而Integration Converter是一个可以实时修改的JS功能。

如您所见,这两个系统都很重要,适用于不同的用例。

Gateway代码层面分析和架构图

DefaultTenantManagerService (PostConstruct)   --->  初始化 GatewayService ------>
GatewayConfiguration (springBean容器初始化) ----> gatewayService 实现类        
   -------->MqttGatewayService(PostConstruct)----> MQTT on message 初始化 

DefaultTenantManagerService的函数式编程执行Consumer  appect 执行
  --------->TenantServiceRegistry.updateExtensionConfiguration --- >ExtensionService.init();

TenantServiceRegistry    ------mqtt/opc 等外部接入程序初始化

thingsboard 交流群 

发布了62 篇原创文章 · 获赞 33 · 访问量 15万+

猜你喜欢

转载自blog.csdn.net/Zzhou1990/article/details/100106995