Added internet connection(not debugged yet).
This commit is contained in:
@ -26,6 +26,7 @@ type atPort struct {
|
||||
|
||||
type Port interface {
|
||||
GetName() string
|
||||
GetBaudrate() int
|
||||
GetSerialPort() serial.Port // For extra need
|
||||
|
||||
Connect() error
|
||||
@ -50,6 +51,10 @@ func (p *atPort) GetName() string {
|
||||
return p.portName
|
||||
}
|
||||
|
||||
func (p *atPort) GetBaudrate() int {
|
||||
return p.baudrate
|
||||
}
|
||||
|
||||
func (p *atPort) GetSerialPort() serial.Port {
|
||||
return p.port
|
||||
}
|
||||
|
Reference in New Issue
Block a user