22 lines
561 B
Go
22 lines
561 B
Go
// IoT 进程入口;真实 MQTT TLS 适配将在设备协议和证书契约确认后接入。
|
|
package main
|
|
|
|
import (
|
|
"os"
|
|
"os/signal"
|
|
"syscall"
|
|
|
|
"git.apinb.com/bsm-sdk/core/printer"
|
|
"git.apinb.com/heqiapp/platforms/backend/iot/internal/config"
|
|
"git.apinb.com/heqiapp/platforms/backend/iot/internal/impl"
|
|
)
|
|
|
|
func main() {
|
|
config.New("PlatformIot")
|
|
impl.NewImpl()
|
|
printer.Info("[BSM - PlatformIot] Mock IoT adapter started; MQTT broker is not connected")
|
|
quit := make(chan os.Signal, 1)
|
|
signal.Notify(quit, syscall.SIGINT, syscall.SIGTERM)
|
|
<-quit
|
|
}
|