Commit 5abbd6bd authored by Yann Garcia's avatar Yann Garcia
Browse files

Bug fixed in demo7 to support MQTT over wss

parent afc6d569
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -29,8 +29,7 @@ sleep 10 # Wait for MEC plateform started and stable

MQTT_ENABLE=${MQTT_ENABLE:-true}
MQTT_HOST=${MOSQUITTO_NODE_IP_ADDRESS:-"meep-mosquitto"}
MQTT_PORT=${MOSQUITTO_NODE_PORT:-80}
#UU_IFACE="--brocker-address $MEEP_HOST_URL/$MEEP_SANDBOX_NAME/$MQTT_HOST --brocker-port $MQTT_PORT --use-ws"
MQTT_PORT=${MOSQUITTO_NODE_PORT:-443}
UU_IFACE="--brocker-address $MEEP_HOST_URL/$MEEP_SANDBOX_NAME/$MEEP_MEP_NAME/$MQTT_HOST --brocker-port 443 --use-ws --wss-root-ca fullchain.pem --wss-cert chain.pem --wss-key privkey.pem"

echo "Environment variables set:"
+8.25 KiB (3.16 MiB)

File changed.

No diff preview for this file type.

+8 −1
Original line number Diff line number Diff line
# Raw TCP MQTT listener
listener 9001
protocol mqtt
allow_anonymous true

# WebSocket listener (plaintext)
listener 1883
protocol websockets
allow_anonymous true
+2 −1
Original line number Diff line number Diff line
@@ -4,6 +4,7 @@
persistence true
persistence_location /mosquitto/data/
log_dest file /mosquitto/log/mosquitto.log
#log_type

log_type debug

include_dir /mosquitto/config/conf.d