thingsboard / thingsboard-gateway

Open-source IoT Gateway - integrates devices connected to legacy and third-party systems with ThingsBoard IoT Platform using Modbus, CAN bus, BACnet, BLE, OPC-UA, MQTT, ODBC and REST protocols
https://thingsboard.io/docs/iot-gateway/what-is-iot-gateway/
Apache License 2.0
1.72k stars 829 forks source link

[BUG]The Gateway issues the RPC command #435

Closed chenaiyuan closed 2 years ago

chenaiyuan commented 3 years ago

When the RPC command is issued, it is found that the command is issued normally, but the parameters (params) at the time of issuing cannot be passed through.(The latest code)

It turned out to be a bit of a bug in the code,Location is: thingsboard_gateway/connectors/request/request_connector.py Line 186: "data": request["config"].get("content", {})
The 'content' should be 'data'.

But after the correction or not, I wonder if some places have not been completely changed.

Looking forward to your reply.

imbeacon commented 3 years ago

Hi @chenaiyuan ,

I replaced this parameter in gateway, you was right. Thank you for investigations. You may try the version from the master branch, it contains this fix.

chenaiyuan commented 3 years ago

嗨@chenaiyuan,

我在网关中替换了此参数,您是对的。感谢您的调查。您可以从master分支尝试该版本,它包含此修复程序。

Hello, have you tested it? May I ask when the package of RPM can be produced? Because I always have a problem with source code packaging.

chenaiyuan commented 3 years ago

Hi @chenaiyuan ,

I replaced this parameter in gateway, you was right. Thank you for investigations. You may try the version from the master branch, it contains this fix.

Hello, I just looked at the place you changed, and I also changed it in the same way, but I have tested it. It seems that only this way was changed, but the call still failed. Could you please have a look and tell me what the problem is? Thank you very much.