File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed
fullstack/freertos-wolfip-wolfmqtt Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -66,6 +66,27 @@ sudo ./freertos_sim
66
66
```
67
67
68
68
### Testing
69
+
70
+ #### Configure Mosquitto Broker
71
+ 1 . Create a mosquitto configuration file:
72
+ ``` bash
73
+ sudo tee /etc/mosquitto/conf.d/tls.conf << EOF
74
+ listener 8883 10.10.0.1
75
+ cafile ../../../wolfssl/certs/ca-cert.pem
76
+ certfile ../../../wolfssl/certs/server-cert.pem
77
+ keyfile ../../../wolfssl/certs/server-key.pem
78
+ tls_version tlsv1.3
79
+ require_certificate true
80
+ use_identity_as_username true
81
+ EOF
82
+ ```
83
+
84
+ 2 . Start mosquitto on the TAP interface:
85
+ ``` bash
86
+ sudo mosquitto -c /etc/mosquitto/conf.d/tls.conf
87
+ ```
88
+
89
+ #### Test MQTT Client
69
90
Test the MQTT client using the provided script:
70
91
``` bash
71
92
sudo ./test_mqtt.sh
You can’t perform that action at this time.
0 commit comments