1、需求
我有一个需求,需要获取设备或者资产的配置信息,然而ThingsBoard又没相关的节点,于是乎,我就自己搞一个节点来实现这个需求。
2、案例实操
自定义的查询配置的节点名称叫做 “originator profile fields”
定义 TbGetOriginatorProfileFieldsNode 类型,代码如下:
/** * Copyright © 2016-2023 The Thingsboard Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT
本文介绍了一个在ThingsBoard中遇到的需求,即获取设备或资产的配置信息。由于平台本身没有提供相应的节点,作者通过自定义一个名为'originator profile fields'的节点来实现这一功能。在详细描述了案例实操过程后,经过测试,证实了该自定义节点能够成功实现预期效果。
订阅专栏 解锁全文
1354

被折叠的 条评论
为什么被折叠?



