Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## Fuji configuration samples
- ########################################
- ## part 1. partial samples
- ##
- ##
- ## gateway configuration part samples
- ##
- ## only name parameter required
- # [gateway]
- # name = "spam"
- ##
- ## broker configuration part samples
- ##
- ## no authentication, just connect and optional parameters
- #
- # [[broker."sango"]]
- #
- # host = "192.0.2.10"
- # port = 1883
- #
- # topic_prefix = "sayo@example.com"
- # retry_count = 7
- # retry_interval = 3
- # will_message = "hello world"
- ## password authentication
- #
- # [[broker."sango"]]
- #
- # host = "192.0.2.10"
- # port = 1883
- #
- # username = "sayo"
- # password = "456"
- ## TLS connection with servers CA certificate
- #
- # [[broker."akane"]]
- #
- # host = "192.0.2.20"
- # port = 8883
- # tls = true
- # cacert = "/path/to/cacert"
- #
- # username = "sayo"
- # password = "456"
- ## Client certificate authentication
- #
- # [[broker."akane"]]
- #
- # host = "192.0.2.20"
- # port = 9883
- # tls = true
- # cacert = "/path/to/cacert"
- # client_cert = "/path/to/client_cert"
- # client_key = "/path/to/client_private_key"
- ########################################
- ## part 2. complete cofiguration samples
- ##
- ##
- ## Dummy device : to publish message periodically
- ##
- ## - publish topic: /ham/spam/dummy/publish
- ## - published message: "Hello world."
- ## - publish interval: 30 seconds
- #
- # [gateway]
- # name = "ham"
- #
- # [[broker."sango"]]
- # host = "127.0.0.1"
- # port = 1883
- # username = "USERNAME"
- # password = "PASSWORD"
- #
- # [device."spam"]
- # broker = "sango"
- # qos = 0
- # type = "dummy"
- # interval = 30
- # payload = "Hello world."
- ##
- ## Serial device : to publish message from serial connection
- ##
- ## serial port is /dev/tty.usbserial and serial connection bit rate is 57600bps
- #
- # [gateway]
- # name = "ham"
- #
- # [[broker."sango"]]
- # host = "127.0.0.1"
- # port = 1883
- # username = "USERNAME"
- # password = "PASSWORD"
- #
- # [device."spam"]
- # broker = "sango"
- # qos = 0
- # type = "serial"
- #
- # serial = /dev/tty.usbserial
- # baud = 57600
- ##
- ## Subscribe topic and output received message against serial device
- ##
- ## The publish data from the serial port with the topic of '/ham/spam/serial/publish'.
- ## And received message with the topic of '/ham/spam/serial/subscribe' is written to the serial port.
- # [gateway]
- # name = "ham"
- #
- # [[broker."sango"]]
- # host = "127.0.0.1"
- # port = 1883
- # username = "USERNAME"
- # password = "PASSWORD"
- #
- # [device."spam"]
- # broker = "sango"
- # qos = 0
- # type = "serial"
- # subscribe = true
- #
- # serial = /dev/tty.usbserial
- # baud = 57600
- ##
- ## Publish status of CPU, memory, IP address periodically
- ##
- # [gateway]
- # name = "ham"
- #
- # [[broker."sango"]]
- # host = "127.0.0.1"
- # port = 1883
- # username = "USERNAME"
- # password = "PASSWORD"
- #
- # [status]
- # broker = "sango"
- # qos = 0
- # interval = 10
- #
- # [[status."cpu"]]
- # cpu_times = "user, system, idle, nice, iowait, irq, softirq, guest"
- #
- # [[status."memory"]]
- # virtual_memory = "total, available, percent, used, free"
- #
- # [[status."ip_address"]]
- # interface = "lo0, en0"
- ## Note: in case of ip_address of all interfaces are required, use "all" as below
- # [[status."ip_address"]]
- # interface = "all"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement