Advertisement
Guest User

Untitled

a guest
Feb 7th, 2016
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.31 KB | None | 0 0
  1. ## Fuji configuration samples
  2.  
  3. ########################################
  4. ## part 1. partial samples
  5. ##
  6.  
  7. ##
  8. ## gateway configuration part samples
  9. ##
  10.  
  11. ## only name parameter required
  12.  
  13. # [gateway]
  14. # name = "spam"
  15.  
  16. ##
  17. ## broker configuration part samples
  18. ##
  19.  
  20. ## no authentication, just connect and optional parameters
  21. #
  22.  
  23. # [[broker."sango"]]
  24. #
  25. # host = "192.0.2.10"
  26. # port = 1883
  27. #
  28. # topic_prefix = "sayo@example.com"
  29. # retry_count = 7
  30. # retry_interval = 3
  31. # will_message = "hello world"
  32.  
  33.  
  34. ## password authentication
  35. #
  36.  
  37. # [[broker."sango"]]
  38. #
  39. # host = "192.0.2.10"
  40. # port = 1883
  41. #
  42. # username = "sayo"
  43. # password = "456"
  44.  
  45.  
  46. ## TLS connection with servers CA certificate
  47. #
  48.  
  49. # [[broker."akane"]]
  50. #
  51. # host = "192.0.2.20"
  52. # port = 8883
  53. # tls = true
  54. # cacert = "/path/to/cacert"
  55. #
  56. # username = "sayo"
  57. # password = "456"
  58.  
  59.  
  60. ## Client certificate authentication
  61. #
  62.  
  63. # [[broker."akane"]]
  64. #
  65. # host = "192.0.2.20"
  66. # port = 9883
  67. # tls = true
  68. # cacert = "/path/to/cacert"
  69. # client_cert = "/path/to/client_cert"
  70. # client_key = "/path/to/client_private_key"
  71.  
  72.  
  73.  
  74. ########################################
  75. ## part 2. complete cofiguration samples
  76. ##
  77.  
  78. ##
  79. ## Dummy device : to publish message periodically
  80. ##
  81. ## - publish topic: /ham/spam/dummy/publish
  82. ## - published message: "Hello world."
  83. ## - publish interval: 30 seconds
  84.  
  85. #
  86. # [gateway]
  87. # name = "ham"
  88. #
  89. # [[broker."sango"]]
  90. # host = "127.0.0.1"
  91. # port = 1883
  92. # username = "USERNAME"
  93. # password = "PASSWORD"
  94. #
  95. # [device."spam"]
  96. # broker = "sango"
  97. # qos = 0
  98. # type = "dummy"
  99. # interval = 30
  100. # payload = "Hello world."
  101.  
  102.  
  103. ##
  104. ## Serial device : to publish message from serial connection
  105. ##
  106. ## serial port is /dev/tty.usbserial and serial connection bit rate is 57600bps
  107.  
  108. #
  109. # [gateway]
  110. # name = "ham"
  111. #
  112. # [[broker."sango"]]
  113. # host = "127.0.0.1"
  114. # port = 1883
  115. # username = "USERNAME"
  116. # password = "PASSWORD"
  117. #
  118. # [device."spam"]
  119. # broker = "sango"
  120. # qos = 0
  121. # type = "serial"
  122. #
  123. # serial = /dev/tty.usbserial
  124. # baud = 57600
  125.  
  126.  
  127. ##
  128. ## Subscribe topic and output received message against serial device
  129. ##
  130.  
  131. ## The publish data from the serial port with the topic of '/ham/spam/serial/publish'.
  132. ## And received message with the topic of '/ham/spam/serial/subscribe' is written to the serial port.
  133.  
  134. # [gateway]
  135. # name = "ham"
  136. #
  137. # [[broker."sango"]]
  138. # host = "127.0.0.1"
  139. # port = 1883
  140. # username = "USERNAME"
  141. # password = "PASSWORD"
  142. #
  143. # [device."spam"]
  144. # broker = "sango"
  145. # qos = 0
  146. # type = "serial"
  147. # subscribe = true
  148. #
  149. # serial = /dev/tty.usbserial
  150. # baud = 57600
  151.  
  152.  
  153. ##
  154. ## Publish status of CPU, memory, IP address periodically
  155. ##
  156.  
  157. # [gateway]
  158. # name = "ham"
  159. #
  160. # [[broker."sango"]]
  161. # host = "127.0.0.1"
  162. # port = 1883
  163. # username = "USERNAME"
  164. # password = "PASSWORD"
  165. #
  166. # [status]
  167. # broker = "sango"
  168. # qos = 0
  169. # interval = 10
  170. #
  171. # [[status."cpu"]]
  172. # cpu_times = "user, system, idle, nice, iowait, irq, softirq, guest"
  173. #
  174. # [[status."memory"]]
  175. # virtual_memory = "total, available, percent, used, free"
  176. #
  177. # [[status."ip_address"]]
  178. # interface = "lo0, en0"
  179.  
  180. ## Note: in case of ip_address of all interfaces are required, use "all" as below
  181.  
  182. # [[status."ip_address"]]
  183. # interface = "all"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement