Electrocardiogram data collection under network attacks on the MAC platform