mirror of
https://github.com/tinygo-org/drivers.git
synced 2026-08-22 23:49:02 +00:00
rtl8720dn: add examples/rtl8720dn/mqtt*
This commit is contained in:
+8
-10
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user