Documentation ¶
Overview ¶
getXMLsendMQTT
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StartMqttClient ¶
func StartMqttClient(cfg environment.Config)
Start MQTT Client and Start Parsing MTConnect
Types ¶
type CollectedCNCData ¶
type CollectedCNCData struct { Name string ControllerMode string Program string ProgramComment string Execution string LoadS1 int PartCount string Time time.Time }
MQTT message structure
type DeviceStreamStruct ¶
type DeviceStreamStruct struct { Name string `xml:"name,attr"` Events []EventsStruct `xml:"ComponentStream>Events"` Samples []SamplesStruct `xml:"ComponentStream>Samples"` }
type EventsStruct ¶
type LoadStruct ¶
type Response ¶
type Response struct { Header []XMLHeaderStruct `xml:"Header"` DeviceStream []DeviceStreamStruct `xml:"Streams>DeviceStream"` }
MTConnect XML Structure
type SamplesStruct ¶
type SamplesStruct struct {
Load []LoadStruct `xml:"Load"`
}
type XMLHeaderStruct ¶
type XMLHeaderStruct struct {
LastSequence int64 `xml:"lastSequence,attr"`
}
Click to show internal directories.
Click to hide internal directories.