removed progress bar when signal percentage is 0 to present the value

This commit is contained in:
Russel Yasol
2024-05-10 10:49:36 +08:00
parent b4dac716de
commit d9879a4d4e
2 changed files with 36 additions and 12 deletions

View File

@@ -11,7 +11,7 @@ phone_number="$1"
message="$2"
# Send the AT command to set the message format to text mode
echo -ne "AT+CMGF=1\r" > microcom /dev/ttyOUT2
echo -ne "AT+CMGF=1\r" > microcom -s /dev/ttyOUT2
sleep 1
echo -ne "AT+CNMI=2,1\r" > microcom /dev/ttyOUT2
sleep 1