This commit is contained in:
panda
2023-09-04 18:44:36 +08:00
parent 62b75371eb
commit a1f163a022
2 changed files with 6 additions and 9 deletions

View File

@@ -32,14 +32,14 @@ queue:
enable: false
num: 3000
redis:
host: 127.0.0.1
password: root
host: 101.35.247.125
password: pandax
port: 6379
mysql:
host: 127.0.0.1:3306
host: 101.35.247.125:3306
username: root
password: '!MyEMS1'
password: 'pandax'
db-name: pandax_iot
config: charset=utf8&loc=Local&parseTime=true
# mini0
@@ -53,12 +53,12 @@ oss:
taos:
username: "root"
password: "taosdata"
host: "127.0.0.1:6041"
host: "101.35.247.125:6041"
database: "iot"
config: ""
mqtt:
broker: 127.0.0.1:1883
broker: 101.35.247.125:1883
qos: 1
username: pandax
password: pandax

View File

@@ -115,7 +115,6 @@ func (s *HookService) OnClientConnected(ctx context.Context, in *exhook.ClientCo
Datas: string(v),
Type: message.ConnectMes,
}
// todo 设备如果是网关设备,如何处理子设备上线
s.messageCh <- data
return &exhook.EmptySuccess{}, nil
@@ -146,8 +145,6 @@ func (s *HookService) OnClientDisconnected(ctx context.Context, in *exhook.Clien
Datas: string(v),
Type: message.DisConnectMes,
}
// todo 网关掉线子设备全部离线状态,更改设备下线状态
s.messageCh <- data
return &exhook.EmptySuccess{}, nil
}