Update ReadMe.md

master
mrhaav 2 years ago committed by GitHub
parent d765c3b47a
commit dd3a543d31
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -17,6 +17,10 @@ If the connection is released from the network, the daemon will re-connect the i
This daemon will also send the rssi value to /usr/bin/uqmi_led.sh for trigger signal strength LEDs.
When the daemon is stoped it will send rssi value = -200 to turn off all LEDs.
uqmi version 2022-04-22-0.5 includes a SMS receiver. It will store received SMS in /var/sms folder. The daemon will send the file name to /usr/bin/uqmi_sms.sh.
The fisrt row in the SMS file is the senders phone number and the following rows are the text message.
uqmi_led.sh example for MR200v4
```
#!/bin/sh
@ -48,3 +52,19 @@ else
echo default-on > $LED3/trigger
fi
```
uqmi_sms.sh example
```
#!/bin/sh
receivedSMS=$1
Anumber=$(sed -n '1p' $receivedSMS)
if [ $Anumber = '+46123456' ]
then
first_row=$(sed -n '2p' $receivedSMS)
second_row$(sed -n '3p' $receivedSMS)
# Execute your commands
rm $receivedSMS
else
logget -t SMS Unauthorized Anumber
fi

Loading…
Cancel
Save