Documentation
¶
Overview ¶
Package atmodem provides a high-level interface for controlling modems using the AT command set.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Device ¶
type Device struct {
// contains filtered or unexported fields
}
A Device is a modem which communicates using AT commands.
func Dial ¶
Dial dials a serial connection to a modem with the specified port, baud rate, and timeout.
func Open ¶
Open opens a connection to a modem using an existing io.ReadWriter. If rw also implements io.Closer, its Close method will be called on Device.Close.
func (*Device) Close ¶
Close closes the underlying io.ReadWriter if it also implements io.Closer, or is a no-op otherwise.
type Status ¶
type Status struct {
CurrentTime time.Duration
Temperature, ResetCounter int
Mode, SystemMode, PSState, LTEBand string
LTEBandwidthMHz float64
LTEReceiveChannel, LTETransmitChannel int
LTECAState, EMMState, RRCState, IMSRegState string
PCCRXMRSSI, RSRPRXMdBm int
PCCRXDRSSI, RSRPRXDdBm int
TransmitPower int
TAC, CellID string
RSRQdB, SINRdB float64
// contains filtered or unexported fields
}
Status contains the modem's current radio status.
Click to show internal directories.
Click to hide internal directories.