modemlistener

package
v1.6.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 3, 2023 License: GPL-3.0 Imports: 3 Imported by: 2

Documentation

Index

Constants

View Source
const (
	DBusPath      = "/org/cacophony/modemd"
	DBusInterface = "org.cacophony.modemd"
)

Variables

This section is empty.

Functions

func GetModemConnectedSignalListener

func GetModemConnectedSignalListener() (chan time.Time, error)

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
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL