mqtt.go 809 B

1234567891011121314
  1. package model
  2. //DataSourceConfigMQTT definition of the special configuration of a mqtt datasource
  3. type DataSourceConfigMQTT struct {
  4. Broker string `yaml:"broker" json:"broker"`
  5. Topic string `yaml:"topic" json:"topic"`
  6. QoS int `yaml:"qos" json:"qos"`
  7. Payload string `yaml:"payload" json:"payload"`
  8. Username string `yaml:"username" json:"username"`
  9. Password string `yaml:"password" json:"password"`
  10. AddTopicAsAttribute string `yaml:"addTopicAsAttribute" json:"addTopicAsAttribute"`
  11. SimpleValueAttribute string `yaml:"simpleValueAttribute" json:"simpleValueAttribute"`
  12. SimpleValueAttributeType string `yaml:"simpleValueAttributeType" json:"simpleValueAttributeType"`
  13. }