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

[HELP]report ERROR when receive message #841

Closed pickedbrian closed 2 years ago

pickedbrian commented 2 years ago

Describe the issue After I received the converted message, the gateway reported an error, and after publishing the message the gateway no longer worked. Is there a possible reason, is it the tingsboard?

image

Configuration (Attach your configuration file) Notate: Remove Access token from file if you want to attach a tb_gateway.yaml

Connector name (If you need help with some connector/converter): { "broker": { "name": "Default Local Broker", "host": "192.168.10.30", "port": 1883, "clientId": "ThingsBoard_gateway", "maxMessageNumberPerWorker": 10, "maxNumberOfWorkers": 100, "security": { "type": "anonymous" } }, "mapping": [ { "topicFilter": "/sensor/data", "converter": { "type": "json", "deviceNameJsonExpression": "${serialNumber}", "deviceTypeJsonExpression": "${sensorType}", "timeout": 60000, "attributes": [ { "type": "string", "key": "model", "value": "${sensorModel}" }, { "type": "string", "key": "${sensorModel}", "value": "on" } ], "timeseries": [ { "type": "double", "key": "temperature", "value": "${temp}" }, { "type": "double", "key": "humidity", "value": "${hum}" }, { "type": "string", "key": "combine", "value": "${hum}:${temp}" } ] } }, { "topicFilter": "/sensor/+/data", "converter": { "type": "json", "deviceNameTopicExpression": "(?<=sensor\/)(.*?)(?=\/data)", "deviceTypeTopicExpression": "Thermometer", "timeout": 60000, "attributes": [ { "type": "string", "key": "model", "value": "${sensorModel}" } ], "timeseries": [ { "type": "double", "key": "temperature", "value": "${temp}" }, { "type": "double", "key": "humidity", "value": "${hum}" } ] } } ] }

Error traceback (If it was raised):

image

Versions (please complete the following information):

samson0v commented 2 years ago

Hi @pickedbrian, to be honest, I don't really understand the description of the problem. Please, describe the steps to reproduce your problem (including data that you send and receive). Thanks for your interest in ThingsBoard IoT Gateway!