Documentation
¶
Index ¶
- Variables
- type AsyncEvent
- type AsyncEventType
- type Modem
- func (m *Modem) Command(d string) ([]string, error)
- func (m *Modem) Connect() error
- func (m *Modem) DeleteMsg(idx int) error
- func (m *Modem) ReadMessages() ([]Msg, error)
- func (m *Modem) ReadMsg(idx int) (*Msg, error)
- func (m *Modem) ReadUntilOkError() ([]string, error)
- func (m *Modem) SendSMS(number, message string) error
- func (m *Modem) Subscribe(ctx context.Context, evtMask AsyncEventType) (chan AsyncEvent, error)
- type Msg
- type MsgStatus
Constants ¶
This section is empty.
Variables ¶
View Source
var CommandError = errors.New("cmd error")
View Source
var CommandNotSupportError = errors.New("cmd not support")
Functions ¶
This section is empty.
Types ¶
type AsyncEvent ¶
type AsyncEvent struct {
Type AsyncEventType
Msg Msg
}
type Modem ¶
type Modem struct {
// contains filtered or unexported fields
}
func (*Modem) ReadMessages ¶
func (*Modem) ReadUntilOkError ¶
func (*Modem) Subscribe ¶
func (m *Modem) Subscribe(ctx context.Context, evtMask AsyncEventType) (chan AsyncEvent, error)
Directories
¶
| Path | Synopsis |
|---|---|
|
examples
|
|
|
deletemsg
command
|
|
|
readmsgs
command
|
|
|
recvnewmsgs
command
|
|
|
sendsms
command
|
Click to show internal directories.
Click to hide internal directories.