rtl8720dn: add examples/rtl8720dn/mqtt*

This commit is contained in:
sago35
2021-07-12 20:56:20 +09:00
committed by Ron Evans
parent 6a4cd9d8e7
commit 633f19c4ac
9 changed files with 2199 additions and 310 deletions
+8 -10
View File
@@ -3,10 +3,10 @@ package rtl8720dn
import "io"
type RTL8720DN struct {
port io.ReadWriter
seq uint64
received chan bool
debug bool
port io.ReadWriter
seq uint64
sema chan bool
debug bool
connectionType ConnectionType
socket int32
@@ -26,14 +26,12 @@ const (
func New(r io.ReadWriter) *RTL8720DN {
ret := &RTL8720DN{
port: r,
seq: 1,
received: make(chan bool, 1),
debug: false,
port: r,
seq: 1,
sema: make(chan bool, 1),
debug: false,
}
go ret.readThread()
return ret
}