Optimizing Real-Time ECG Data Transmission in Constrained Environments