Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Copy paste the following in the nano editor:
- # =================================================================
- # Bridges to AWS IOT
- # =================================================================
- # AWS IoT endpoint, use AWS CLI 'aws iot describe-endpoint'
- connection awsiot
- address XXXXXXXXXX.iot.ap-southeast-2.amazonaws.com:8883
- # Specifying which topics are bridged
- # AWS test casses
- topic awsiot_to_localgateway in 1
- topic localgateway_to_awsiot out 1
- topic both_directions both 1
- # Our ones
- topic house/lights/# both 1
- topic house/temp/# both 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 bridgeawsiot
- 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
Advertisement