Skip to content

Commit 1343977

Browse files
PR #492: Add mosquitto TAP interface configuration
- Add instructions for configuring mosquitto broker - Add TLS configuration for mosquitto - Document broker startup on TAP interface Co-Authored-By: [email protected] <[email protected]>
1 parent 08c91f0 commit 1343977

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

fullstack/freertos-wolfip-wolfmqtt/README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,27 @@ sudo ./freertos_sim
6666
```
6767

6868
### 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
6990
Test the MQTT client using the provided script:
7091
```bash
7192
sudo ./test_mqtt.sh

0 commit comments

Comments
 (0)