sim-modem/main.go
2024-07-22 18:53:34 +03:00

27 lines
422 B
Go

package main
import (
"log"
"github.com/CGSG-2021-AE4/modem-test/api/modem"
)
func main() {
log.Println("CGSG forever!!!")
if err := mainE(); err != nil {
log.Println("MAIN finished with error:", err.Error())
}
log.Println("END")
}
func mainE() error {
m := modem.New()
return m.Init()
// ports, err := serial.GetPortsList()
// if err != nil {
// return err
// }
// log.Println(ports)
// return nil
}