Translated from Türkçe by AI ·
If you’re not getting CONNACK, you’re stuck in the TLS handshake. There are two things in your command, and both cause that.First, you’re connecting by IP. Hermetry requires SNI, meaning the client has to send the server name during the handshake; when you connect by IP this doesn’t happen and the handshake fails. Use the host name from the Connection details card of your device, the address for your own region.Second, the mosquitto client on Windows does not use the system certificate store by default. In version 2.x there is --tls-use-os-certs, or you can pass a CA bundle you have with --cafile. On my first try I had forgotten both, and got exactly the same message.
mosquitto_pub -d -h <connection details'teki host> -p 8883 --tls-use-os-certs ^
-i test-pc-01 -u <token> -t v1/telemetry -q 1 -m "{"t":21.4}"
Once the connection opens, you’ll see the following errors (such as CONNACK 4, 5) in the device’s Log tab, along with their causes; the cause for 5 is never sent to the device, it is only written there. The table is here: Cihaz bağlanmıyor.
CONNACK gelmiyorsa TLS el sıkışmasında takılıyorsun. Komutunda iki şey var, ikisi de bunu yapar.
Birincisi IP ile bağlanıyorsun. Hermetry SNI istiyor, yani istemci el sıkışmada sunucu adını göndermeli; IP ile bağlanınca bu olmuyor ve el sıkışma düşüyor. Cihazın Connection details kartındaki host adını kullan, kendi bölgenin adresini.
İkincisi Windows’taki mosquitto istemcisi sistemin sertifika deposunu kendiliğinden kullanmıyor. 2.x sürümlerinde --tls-use-os-certs var, ya da elindeki bir CA paketini --cafile ile ver. Ben ilk denememde ikisini de unutmuştum, birebir aynı mesajı aldım.
mosquitto_pub -d -h <connection details'teki host> -p 8883 --tls-use-os-certs ^
-i test-pc-01 -u <token> -t v1/telemetry -q 1 -m "{"t":21.4}"
Bağlantı açılınca bundan sonraki hataları (CONNACK 4, 5 gibi) cihazın Log sekmesinde nedeniyle birlikte görürsün; 5’in nedeni cihaza hiç gönderilmiyor, sadece orada yazıyor. Tablo burada: Cihaz bağlanmıyor.

