Merge pull request #1103 from sonny-chen/mosquitto-conf-fix

fix: mosquitto only listens on localhost when started without a conf file
This commit is contained in:
Colin Kuebler
2023-11-06 16:40:21 -05:00
committed by GitHub
2 changed files with 3 additions and 1 deletions

2
scripts/mosquitto.conf Normal file
View File

@@ -0,0 +1,2 @@
allow_anonymous true
listener 1883

View File

@@ -24,7 +24,7 @@ setup () {
echo " Starting web server in a screen"
$screen_with_log smarthack-web.log -S smarthack-web -m -d ./fake-registration-server.py
echo " Starting Mosquitto in a screen"
$screen_with_log smarthack-mqtt.log -S smarthack-mqtt -m -d mosquitto -v
$screen_with_log smarthack-mqtt.log -S smarthack-mqtt -m -d mosquitto -v -c $PWD/scripts/mosquitto.conf
echo " Starting PSK frontend in a screen"
$screen_with_log smarthack-psk.log -S smarthack-psk -m -d ./psk-frontend.py -v
echo " Starting Tuya Discovery in a screen"