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