Websockets需要使用SSL憑證,需要Websockets Server的憑證,而Synology DDNS提供很多憑證,包含
cert、chain、ECC-cert、ECC-chain、ECC-privkey、privkey、root
RSA-cert、RSA-chain、RSA-privkey、short-chain
而要使用的是chain.pem
兩種做法:
step 1
把chain.pem覆蓋專案/main/mqtt_eclipseprojects_io.pem
或
使用idf.py menuconfig -> Example Configuration -> () Server certificate override 然後將chain.pem去除所有換行(只有一行)後貼上
step 2
替換完憑證後,一樣使用
idf.py menuconfig -> Example Configuration -> 設定Broker URL
Visited 5 times, 1 visit(s) today

發佈留言