fix: mosquitto only listens on localhost when started without a conf file

Signed-off-by: Sonny
This commit is contained in:
Sonny
2023-09-20 10:20:59 +08:00
parent 61ba060b85
commit 77af648589
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

@@ -26,7 +26,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"