【feat】udp协议

This commit is contained in:
XM-GO
2023-10-07 15:03:03 +08:00
parent 69b5061868
commit 65eb8d8ae2
8 changed files with 489 additions and 2 deletions

View File

@@ -5,6 +5,7 @@ import (
"pandax/iothub/server/emqxserver"
"pandax/iothub/server/httpserver"
"pandax/iothub/server/tcpserver"
updserver "pandax/iothub/server/udpserver"
)
func InitIothub() {
@@ -15,6 +16,8 @@ func InitIothub() {
go httpserver.InitHttpHook("", service)
//初始化TCP
go tcpserver.InitTcpHook("", service)
go updserver.InitUdpHook("", service)
// 开启线程处理消息
go service.MessageWork()
}