Added internet connection(not debugged yet).

This commit is contained in:
Andrey Egorov
2024-07-27 16:01:27 +03:00
parent b9056d2299
commit 92d42d413a
3 changed files with 250 additions and 9 deletions

View File

@ -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
}