You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
198 B
16 lines
198 B
package main
|
|
|
|
import "flag"
|
|
|
|
var Device string //默认选中终端
|
|
func main() {
|
|
|
|
flag.StringVar(&Device, "d", "Uart", "choice device")
|
|
flag.Parse()
|
|
MqttSetup()
|
|
|
|
ch := make(chan int)
|
|
|
|
<-ch
|
|
|
|
}
|
|
|