Αποστολή με SMS: Software design and optimization of ECG signal analysis and diagnosis for embedded IoT devices