Documentation
¶
Index ¶
- Constants
- func StartSMSD(config string, programName string) (err error)
- type GSM
- func (g *GSM) AlwaysReadUntilBreak()
- func (g *GSM) Connect() (err error)
- func (g *GSM) EnableDebug()
- func (g *GSM) GetUSSDByCode(code string, device string) (string, error)
- func (g *GSM) IsConnected() bool
- func (g *GSM) ReadSMS(delete bool) (messages []*SmsRead, err error)
- func (g *GSM) SendLongSMS(text, number string) (err error)
- func (g *GSM) SendSMS(text, number string) (err error)
- func (g *GSM) SetCallBack(fx func(string, string) error)
- func (g *GSM) SetConfig(config string, section int) (err error)
- func (g *GSM) Terminate() (err error)
- func (g *GSM) WaitForSMS(wait int) error
- type Modem
- func (m *Modem) Expect(possibilities []string) (string, error)
- func (m *Modem) Read() (string, error)
- func (m *Modem) ReadWithContext(ctx context.Context) <-chan *respChan
- func (m *Modem) ReadWithTimeout(ctx context.Context) (string, error)
- func (m *Modem) Send(command string)
- func (m *Modem) SendCommand(command string, waitForOk bool) (string, error)
- type SmsRead
Constants ¶
View Source
const ( ERR_NONE = C.ERR_NONE ERR_UNKNOWN = C.ERR_UNKNOWN ERR_TIMEOUT = C.ERR_TIMEOUT ERR_EMPTY = C.ERR_EMPTY )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GSM ¶
type GSM struct {
// contains filtered or unexported fields
}
Gammu GSM struct
func (*GSM) AlwaysReadUntilBreak ¶
func (g *GSM) AlwaysReadUntilBreak()
func (*GSM) SendLongSMS ¶
func (*GSM) WaitForSMS ¶
Click to show internal directories.
Click to hide internal directories.