Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # AWS IoT endpoint, use AWS CLI 'aws iot describe-endpoint'
- # Taken from https://aws.amazon.com/es/blogs/iot/how-to-bridge-mosquitto-mqtt-broker-to-aws-iot/ and http://www.steves-internet-guide.com/mosquitto-bridge-configuration/
- connection smarthome1
- address <ENDPOINT>.iot.eu-west-1.amazonaws.com:8883
- try_private true
- # Specifying which topics are bridged
- # topic awsiot_to_localgateway in 1
- # topic localgateway_to_awsiot out 1
- topic # out 0 "" smarthome/1/
- # topic remote/1/# in 0
- topic # in 0 "" remote/1/
- # Setting protocol version explicitly
- bridge_protocol_version mqttv311
- bridge_insecure false
- # Bridge connection name and MQTT client Id,
- # enabling the connection automatically when the broker starts.
- cleansession true
- #clientid smarthome1
- remote_clientid remotesmarthome1
- start_type automatic
- notifications false
- log_type all
- # =================================================================
- # Certificate based SSL/TLS support
- # -----------------------------------------------------------------
- #Path to the rootCA
- bridge_cafile /etc/mosquitto/certs/rootCA.pem
- # Path to the PEM encoded client certificate
- bridge_certfile /etc/mosquitto/certs/cert.crt
- # Path to the PEM encoded client private key
- bridge_keyfile /etc/mosquitto/certs/private.key
Advertisement
Add Comment
Please, Sign In to add comment