-
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] #1515
Comments
Hi @itwish, Thank you for your interest in ThingsBoard IoT Gateway, looks like you are using a new configuration format, but old gateway, probably not the latest version from the master. Please try to update the code to version from master branch and try again. Let us know if you still have issues. |
Hi @imbeacon, |
There are some modifications in ThingsBoard gateway dashboard in master branch, the gateway in master branch is adopted to them, but the old gateway cannot handle them. so in order to use version of ThingsBoard form the master branch - you also need to use the newest gateway. We are in progress to add configuration conversion of the gateway configuration on the gateway dashboard, but it is not added yet to ThingsBoard. |
Great! The problem has been solved,thanks for your help. wish the world be like open source world |
Describe the issue
Hello, I follow this doc:
https://thingsboard.io/docs/iot-gateway/getting-started/
but the mqtt connector can't communicate with mqtt broker (emqx), network is ok , firewall is closed. Thingsboard is running in ide (idea).
My Gateway status is Active. Mqtt connector(ems-mqtt) logs is empty.
Configuration
tb_gateway.json:
{ "thingsboard": { "host": "192.168.18.18", "port": 1883, "remoteShell": false, "remoteConfiguration": true, "security": { "type": "accessToken", "accessToken": "***" }, "statistics": { "enable": true, "statsSendPeriodInSeconds": 3600 }, "deviceFiltering": { "enable": false, "filterFile": "list.json" }, "maxPayloadSizeBytes": 1024, "minPackSendDelayMS": 200, "minPackSizeToSend": 500, "checkConnectorsConfigurationInSeconds": 60, "handleDeviceRenaming": true, "qos": 1, "checkingDeviceActivity": { "checkDeviceInactivity": false, "inactivityTimeoutSeconds": 200, "inactivityCheckPeriodSeconds": 500 }, "ts": 1725001579840, "rateLimits": "DEFAULT_RATE_LIMIT", "dpRateLimits": "DEFAULT_RATE_LIMIT" }, "storage": { "type": "memory", "read_records_count": 100, "max_records_count": 100000, "data_folder_path": "./data/", "max_file_count": 10, "max_read_records_count": 10, "max_records_per_file": 10000, "data_file_path": "./data/data.db", "messages_ttl_check_in_hours": 1, "messages_ttl_in_days": 7, "ts": 1725001579840 }, "grpc": { "enabled": false, "serverPort": 9595, "keepaliveTimeMs": 10000, "keepaliveTimeoutMs": 5000, "keepalivePermitWithoutCalls": true, "maxPingsWithoutData": 0, "minTimeBetweenPingsMs": 10000, "minPingIntervalWithoutDataMs": 5000, "keepAliveTimeMs": 10000, "keepAliveTimeoutMs": 5000 }, "connectors": [ { "type": "mqtt", "name": "ems-mqtt", "configuration": "emsMqtt.json" } ] }
emsMqtt.json:
{ "broker": { "name": "", "host": "192.168.18.52", "port": 1883, "version": 5, "clientId": "tb_gateway1", "maxNumberOfWorkers": 10, "maxMessageNumberPerWorker": 100 }, "logLevel": "INFO", "name": "ems-mqtt", "enableRemoteLogging": false, "id": "e37943d8-36cd-4f02-9931-ee3c88d680c3", "dataMapping": [ { "topicFilter": "data/", "subscriptionQos": 0, "converter": { "type": "json", "deviceInfo": { "deviceNameExpression": "Device Demo", "deviceNameExpressionSource": "constant", "deviceProfileExpressionSource": "constant", "deviceProfileExpression": "default" }, "attributes": [ { "key": "frequency", "value": "${frequency}", "type": "integer" }, { "key": "power", "value": "${power}", "type": "integer" } ], "timeseries": [ { "key": "temperature", "value": "${temperature}", "type": "integer" }, { "key": "humidity", "value": "${humidity}", "type": "integer" } ] } } ], "requestsMapping": [ { "requestType": "connectRequests", "requestValue": { "topicFilter": "sensor/connect", "deviceInfo": { "deviceNameExpression": "${SerialNumber}", "deviceNameExpressionSource": "message", "deviceProfileExpressionSource": "constant", "deviceProfileExpression": "default" } } }, { "requestType": "connectRequests", "requestValue": { "topicFilter": "sensor/+/connect", "deviceInfo": { "deviceNameExpression": "(?<=sensor\\/)(.*?)(?=\\/connect)", "deviceNameExpressionSource": "topic", "deviceProfileExpressionSource": "constant", "deviceProfileExpression": "default" } } }, { "requestType": "disconnectRequests", "requestValue": { "topicFilter": "sensor/disconnect", "deviceInfo": { "deviceNameExpression": "${SerialNumber}", "deviceNameExpressionSource": "message" } } }, { "requestType": "disconnectRequests", "requestValue": { "topicFilter": "sensor/+/disconnect", "deviceInfo": { "deviceNameExpression": "(?<=sensor\\/)(.*?)(?=\\/disconnect)", "deviceNameExpressionSource": "topic" } } } ], "workers": { "maxNumberOfWorkers": 10, "maxMessageNumberPerWorker": 100 }
Connector name (If you need help with some connector/converter):
MQTT Connector
Error traceback:
Versions :
The text was updated successfully, but these errors were encountered: