Update get_atcommand to use ttyOUT2

Using the intended AT command stream now. Should be more responsive.
This commit is contained in:
Cameron Thompson
2024-03-16 19:45:18 -04:00
committed by GitHub
parent 8c69205582
commit dc8149ad67

View File

@@ -20,7 +20,7 @@ fi
MYATCMD=$(printf '%b\n' "${atcmd//%/\\x}")
if [ -n "${MYATCMD}" ]; then
x=$(urldecode "$atcmd")
runcmd=$(echo -en "$x\r\n" | microcom -t 2000 /dev/ttyOUT)
runcmd=$(echo -en "$x\r\n" | microcom -t 2000 /dev/ttyOUT2)
fi
echo "Content-type: text/plain"