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] Error when parsing strings with MQTT connector #411

Closed dasberliner closed 3 years ago

dasberliner commented 3 years ago

Describe the issue Issue with parsing Strings to Thingsboard Gateway by MQTT. It works fine with numerical values.: message: {"temperature":21.54,"pressure":1017,"humidity":51} works message: {"temperature":21.54,"pressure":1017,"humidity":51,"somestring":someString} does not

Configuration See attachment. mqtt.json.txt

Connector name: MQTT connector.

Error traceback: error traceback.txt

Versions (please complete the following information):

dasberliner commented 3 years ago

Update: foud a possible solution in Bug error #357 => missing brackets in the json format. Will try again tonight.

dasberliner commented 3 years ago

Issue resolved. New message works like a charm: {"deviceName":"deviceName","deviceType":"deviceType","temperature":21.57,"pressure":1012,"humidity":58,"ppm":899,"rssi":-43}