Javi

IoT: mosquitto aws bridge

May 4th, 2018
252
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.28 KB | None | 0 0
  1. # AWS IoT endpoint, use AWS CLI 'aws iot describe-endpoint'
  2. # 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/
  3.  
  4.  
  5. connection smarthome1
  6. address <ENDPOINT>.iot.eu-west-1.amazonaws.com:8883
  7. try_private true
  8. # Specifying which topics are bridged
  9. # topic awsiot_to_localgateway in 1
  10. # topic localgateway_to_awsiot out 1
  11.  
  12. topic # out 0 "" smarthome/1/
  13. # topic remote/1/# in 0
  14. topic # in 0 "" remote/1/
  15.  
  16.  
  17. # Setting protocol version explicitly
  18. bridge_protocol_version mqttv311
  19. bridge_insecure false
  20.  
  21. # Bridge connection name and MQTT client Id,
  22. # enabling the connection automatically when the broker starts.
  23. cleansession true
  24. #clientid smarthome1
  25. remote_clientid remotesmarthome1
  26. start_type automatic
  27. notifications false
  28. log_type all
  29.  
  30. # =================================================================
  31. # Certificate based SSL/TLS support
  32. # -----------------------------------------------------------------
  33. #Path to the rootCA
  34. bridge_cafile /etc/mosquitto/certs/rootCA.pem
  35.  
  36. # Path to the PEM encoded client certificate
  37. bridge_certfile /etc/mosquitto/certs/cert.crt
  38.  
  39. # Path to the PEM encoded client private key
  40. bridge_keyfile /etc/mosquitto/certs/private.key
Advertisement
Add Comment
Please, Sign In to add comment