Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DoneChan chan bool
View Source
var Loop bool = true
View Source
var LoopModbus bool = true
View Source
var MqttAddress string = "localhost"
Informações do MQTT Broker Local
View Source
var MqttClient mqtt.Client
View Source
var MqttPassword string = ""
View Source
var MqttPort string = "1883"
View Source
var MqttUser string = ""
View Source
var Status bool = true
View Source
var StopChan chan bool // Canal de sinalização para encerrar as goroutines
View Source
var Wg sync.WaitGroup // WaitGroup para aguardar a conclusão das goroutines
View Source
var WgGoroutines sync.WaitGroup
Functions ¶
This section is empty.
Types ¶
type ConfigMQTT ¶
type DevSettings ¶
type Devices ¶
type Devices struct {
Devices []DevSettings `json:"devices"`
}
type ExitPayloadMsg ¶
type InputMQTTMsg ¶
type InputMQTTMsg struct {
Action string `json:"action"`
}
Formato da mensagem de entrada esperado pelo CallBack TODO: Deixar informação em repositório externo
type MqttMsgStruct ¶
type RoutineController ¶
type RoutineController struct { StopChan chan struct{} // Canal de sinalização para encerrar as goroutines DoneChan chan struct{} Wg sync.WaitGroup // WaitGroup para aguardar a conclusão das goroutines }
func (*RoutineController) Stop ¶
func (c *RoutineController) Stop()
Função para encerrar as goroutines existentes
Click to show internal directories.
Click to hide internal directories.