modem

package
v0.0.0-...-24c25ff Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2015 License: GPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GSMModem

type GSMModem struct {
	ComPort  string
	BaudRate int
	Port     *serial.Port
	DeviceId string
}

func New

func New(ComPort string, BaudRate int, DeviceId string) (modem *GSMModem)

func (*GSMModem) Connect

func (m *GSMModem) Connect() (err error)

func (*GSMModem) SendCommand

func (m *GSMModem) SendCommand(command string, waitForOk bool) string

func (*GSMModem) SendLongPduSms

func (m *GSMModem) SendLongPduSms(mobile string, message string) string

func (*GSMModem) SendPduSMS

func (m *GSMModem) SendPduSMS(mobile string, message string) string

func (*GSMModem) SendSMS

func (m *GSMModem) SendSMS(mobile string, message string) string

Jump to

Keyboard shortcuts

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