add rtsp support

This commit is contained in:
seydx
2025-05-11 01:21:20 +02:00
parent 30d48e139c
commit 6e35f1a389
3 changed files with 64 additions and 11 deletions
+1 -2
View File
@@ -107,9 +107,8 @@ func(c *TuyaClient) StartMQTT() error {
}
func(c *TuyaClient) StopMQTT() {
c.sendDisconnect()
if c.mqtt.client != nil {
c.sendDisconnect()
c.mqtt.client.Disconnect(1000)
}
}