-
Notifications
You must be signed in to change notification settings - Fork 844
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[HELP] How to add a new protocol in the Type drop-down box?? #1530
Comments
perhaps you could try adding a new connector type at gateway-widget.model.ts-ConnectorType and gateway-widget.model.ts-GatewayConnectorDefaultTypesTranslatesMap in the thingsboard platform project |
|
@DuXiaoChuang You can't do this on the web page, you have to modify the Thingsboard project code as i mentioned above, and compile the ui-ngx project and redeploy the whole project. 在页面上是不能手动添加的,只能改代码重新编译项目打包,改动的位置就是上面我提的两个地方,加两行就行了 or maybe you can try using the CUSTOM type, 或许可以试试 CUSTOM 类型,这个可以指定自定义连接器class的,不过我没试过,我也正在搞自定义connector |
我按照你说的加了,没效果啊,下拉框里还是没有新增的协议。很奇怪,是其他哪里还要修改吗?而且目前代码和你的代码有版本上的差异。 |
I added the connector and named it with custom, but this TAB still has no data, which is strange. |
it show "focas", the class name is "focas" right? You can add a new ConnectorType here by 'Edit Component' |
ok, thanks |
How to add a new protocol in the Type drop-down box??
The text was updated successfully, but these errors were encountered: