MQTT2_CLIENT Anmeldung bei mqtt3.thingspeak.com nicht möglich

Begonnen von Hardeck, 19 März 2023, 18:08:11

Vorheriges Thema - Nächstes Thema

Hardeck

Hallo zusammen,
ich versuche verzweifelt mich mit MQTT2_CLIENT bei mqtt3.thingspeak.com anzumelden.
Es funktioniert nicht, Passwort und User sind richtig, clientId auch z.B. mit MQTTX funktioniert es.
Kann mir jemand helfen?

defmod BienenstockThing MQTT2_CLIENT mqtt3.thingspeak.com:8883 LSU0BicxOCADLS0oEjYULzU 8m43GuWxoUg7oulu8ql1xR6g
attr BienenstockThing SSL 1
attr BienenstockThing clientId LSU0BicxOCADLS0oEjYULzU
attr BienenstockThing mqttVersion 3.1.1
attr BienenstockThing room MQTT2_DEVICE
attr BienenstockThing subscriptions channels/1393095/subscribe

setstate BienenstockThing disconnected
setstate BienenstockThing 2023-03-19 17:41:38 state disconnected

----
Log
2023.03.19 17:41:13 1: mqtt3.thingspeak.com:8883 reappeared (BienenstockThing)
2023.03.19 17:41:13 1: BienenstockThing: Connection refused, bad user name or password
2023.03.19 17:41:13 1: mqtt3.thingspeak.com:8883 disconnected, waiting to reappear (BienenstockThing)
2023.03.19 17:41:38 1: mqtt3.thingspeak.com:8883 reappeared (BienenstockThing)
2023.03.19 17:41:38 1: BienenstockThing: Connection refused, bad user name or password
2023.03.19 17:41:38 1: mqtt3.thingspeak.com:8883 disconnected, waiting to reappear (BienenstockThing)

----
Info von https://de.mathworks.com/help/thingspeak/mqtt-basics.html



Hardeck

so funktioniert es

defmod BienenstockThing MQTT2_CLIENT mqtt3.thingspeak.com:8883
attr BienenstockThing SSL 1
attr BienenstockThing autocreate simple
attr BienenstockThing clientId LSU0BicxOCADLS0oEjYULzU
attr BienenstockThing mqttVersion 3.1.1
attr BienenstockThing qosMaxQueueLength 0
attr BienenstockThing room MQTT2
attr BienenstockThing subscriptions channels/1393095/subscribe
attr BienenstockThing username LSU0BicxOCADLS0oEjYULzU

setstate BienenstockThing opened
setstate BienenstockThing 2023-03-20 19:58:21 state opened