Advertisement
Guest User

AWS IoT Bridge

a guest
Oct 20th, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.29 KB | None | 0 0
  1. #Copy paste the following in the nano editor:
  2. # =================================================================
  3. # Bridges to AWS IOT
  4. # =================================================================
  5.  
  6. # AWS IoT endpoint, use AWS CLI 'aws iot describe-endpoint'
  7. connection awsiot
  8. address XXXXXXXXXX.iot.ap-southeast-2.amazonaws.com:8883
  9.  
  10. # Specifying which topics are bridged
  11. # AWS test casses
  12. topic awsiot_to_localgateway in 1
  13. topic localgateway_to_awsiot out 1
  14. topic both_directions both 1
  15. # Our ones
  16. topic house/lights/# both 1
  17. topic house/temp/# both 1
  18.  
  19.  
  20. # Setting protocol version explicitly
  21. bridge_protocol_version mqttv311
  22. bridge_insecure false
  23.  
  24. # Bridge connection name and MQTT client Id,
  25. # enabling the connection automatically when the broker starts.
  26. cleansession true
  27. clientid bridgeawsiot
  28. start_type automatic
  29. notifications false
  30. log_type all
  31.  
  32. # =================================================================
  33. # Certificate based SSL/TLS support
  34. # -----------------------------------------------------------------
  35. #Path to the rootCA
  36. bridge_cafile /etc/mosquitto/certs/rootCA.pem
  37.  
  38. # Path to the PEM encoded client certificate
  39. bridge_certfile /etc/mosquitto/certs/cert.crt
  40.  
  41. # Path to the PEM encoded client private key
  42. bridge_keyfile /etc/mosquitto/certs/private.key
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement