@@ -99,7 +99,7 @@ func (a deviceservice) GetDevicesCountByVenderId(vendorid string) (map[string]in
var offlineCount int
for _, device := range data {
onlineargs := rpcs.ArgsGetDeviceOnlineStatus{
- Id: device.RecordId,
+ Id: device.DeviceIdentifier,
}
onlinereply := rpcs.ReplyGetDeviceOnlineStatus{}
err = server.RPCCallByName(nil, rpcs.DeviceManagerName, "DeviceManager.GetDeviceOnlineStatus", onlineargs, &onlinereply)