Documentation ¶
Index ¶
Constants ¶
View Source
const ( DBusPath = "/org/cacophony/modemd" DBusInterface = "org.cacophony.modemd" )
Variables ¶
This section is empty.
Functions ¶
func GetModemConnectedSignalListener ¶
GetModemConnectedSignalListener returns a channel that listens for the "ModemConnected" signal on the DBus system bus. The function returns an error if it fails to establish the connection.
Return: - chan bool: A channel that receives a boolean value when the "ModemConnected" signal is detected. - error: An error if the function fails to establish the connection.
Types ¶
type ModemSignal ¶
type ModemSignal struct {
State bool
}
Click to show internal directories.
Click to hide internal directories.