Код: Выделить всё
var points = await this.Plugin.Server.MeasurePoints.GetListAsync(MeasurePointType.Regular, MeasurePointInfoFlags.AutoPoll | MeasurePointInfoFlags.Equipment);
foreach(var point in points)
{
var pollConnection = point.Device.PollSettings.Connections.FirstOrDefault(x => x.CommLinkType == CommunicationLink.Gprs);
//выкидывает исключение, потому что CommDevice равен null
var imei = pollConnection.CommDevice.SerialNumber;
}
До этого была версия ЛЭРС УЧЕТ 3.32.5.