|
@@ -157,6 +157,7 @@ func processReportStatus(deviceid, vendorId string, message *gjson.Json) {
|
|
|
|
|
|
// Connected 设备接入时
|
|
|
func (a *Agent) Connected(status *protocol.DevConnectStatus) error {
|
|
|
+ server.Log.Infof("设备上线;%s", status.DeviceId)
|
|
|
// 查询设备信息
|
|
|
device := &models.Device{}
|
|
|
err := server.RPCCallByName(nil, rpcs.RegistryServerName, "Registry.FindDeviceByIdentifier", status.DeviceId, device)
|