Hi DL88AI88,
thanks. Coincidentally i published a new secure MQTT example on github yesterday.
With MQTT via SSL/TLS (also hardware encrypted) and Websocket -> testing my secured mosquitto servers on UBUNTU and Raspberian.
-> Part of my /etc/mosquitto/mosquitto.conf
Code: Select all
listener 9883
protocol websockets
cafile /etc/mosquitto/certs/ca.crt
certfile /etc/mosquitto/certs/server.crt
keyfile /etc/mosquitto/certs/server.key
ESP32 example:
https://github.com/pcbreflux/espressif/ ... mqtts_gpio
Code: Select all
I (50036) MQTTS: MQTTClientInit ESP32MQTTE2F9A905
I (50036) MQTTS: MQTTConnect ...
I (50256) MQTTS: MQTTSubscribe ...
I (50456) MQTTS: MQTTYield ...
I (104616) MQTTS: Topic received!: esp32/bulb1/1 32
I (104616) MQTTS: setLED!: 18 1 32 1 13
I (134726) MQTTS: Topic received!: esp32/bulb1/4 40
I (134726) MQTTS: setLED!: 22 4 40 4 13
I (149196) MQTTS: Topic received!: esp32/bulb1/5 40
I (149196) MQTTS: setLED!: 22 4 40 5 13
I (160276) MQTTS: Topic received!: esp32/bulb1/7 40
I (160276) MQTTS: setLED!: 22 4 40 7 13
I (172156) MQTTS: Topic received!: esp32/bulb1/7 100
I (172156) MQTTS: setLED!: 22 4 100 7 13
I (180026) MQTTS: Topic received!: esp32/bulb1/0 100
I (180026) MQTTS: setLED!: 5 0 100 0 13
I (189086) MQTTS: Topic received!: esp32/bulb1/0 140
I (189086) MQTTS: setLED!: 5 0 140 0 13
But i will try an example with "secure" bluetooth in the future.