Skip to content
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

[BUG] MQTT api v1/gateway/disconnect not working!!! #1311

Closed
sirapol opened this issue Feb 24, 2024 · 2 comments
Closed

[BUG] MQTT api v1/gateway/disconnect not working!!! #1311

sirapol opened this issue Feb 24, 2024 · 2 comments
Assignees
Labels
can be closed If bug fixed or feature is implemented

Comments

@sirapol
Copy link

sirapol commented Feb 24, 2024

Describe the bug
I developing ESP32 do like TB IoT Gateway.
I follow with Mqtt Gateway Api.
I found disconnect api is not working.
I pub to topic "v1/gateway/disconnect" with payload {"device":"Device A"}

Device A is still active in TB server

How to solve it ?

Copy link

Hi @sirapol.
Thank you for your interest in ThingsBoard IoT Gateway.
Your issue was registered, please wait for response from engineer.

IOTGW-127

@imbeacon
Copy link
Member

Hi @sirapol,

Could you check lastDisconnectTime on device? - it should change on receiving disconnect. Active attribute is not about that the device is connected, because it represents "activity" of the device, you can add "inactivityTimeout" to device server attributes and value in milliseconds, device will become inactive after this period of time after last activity event, like telemetry publish, attributes publish and even disconnect event. It is a logic, written in ThingsBoard and expected behaviour.

@imbeacon imbeacon added can be closed If bug fixed or feature is implemented and removed bug labels Feb 26, 2024
@imbeacon imbeacon closed this as completed Mar 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
can be closed If bug fixed or feature is implemented
Projects
None yet
Development

No branches or pull requests

3 participants