2024-07-18 16:34:26 +00:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"annalist/api/modem"
|
|
|
|
"log"
|
|
|
|
)
|
|
|
|
|
|
|
|
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()
|
2024-07-21 13:05:09 +00:00
|
|
|
// ports, err := serial.GetPortsList()
|
|
|
|
// if err != nil {
|
|
|
|
// return err
|
|
|
|
// }
|
|
|
|
// log.Println(ports)
|
|
|
|
// return nil
|
2024-07-18 16:34:26 +00:00
|
|
|
}
|