Sending SMS alarms

Here you can get a example program that sends a SMS to a telephone number using the meshlium GPRS module.

First you have to download the code and compile it executing the following:

    # gcc -o sms-send sms-send.c

The use of this program is the following:

    ./sms_send USB0 <phone_number> "<sms_text>"

For example:

    ./sms_send USB0 0034606060 "hello"

IMPORTANT: before using this program you've to stop other services that can be using the GPRS module executing the following:

    # /etc/init.d/wvdiald.tc.sh stop

Download code

You can download the code of this tutorial.


© Libelium Comunicaciones Distribuidas S.L.

| Terms of use