-
Notifications
You must be signed in to change notification settings - Fork 44
ebiiii edited this page Oct 21, 2014
·
1 revision
This virtual sensor processing class implements SMS (Short Message Service) notification. This virtual sensor is very similar to the email virtual sensor an email is sent to a Mobile phone operator or SMS gateway provider based on the user's mobile account and the email is converted and send as a SMS to the given phone number. This virtual sensor only formats the message to be sent and outputs it to the data stream along with phone number and an e-mail address. E-mail address is formatted in a way that it can be used with SMSLink-gateway (http://smslink.sourceforge.net)
Parameters:
- phone-number The mobile phone number to send the message.
- password The password to login to the mobile operator or SMS gateway provider.
- sms-server URL address of the mobile phone operator or SMS gateway provider.
-
message-format The format of the SMS message in StringTemplate-syntax, e.g. Temperature:
$TEMP$ where TEMP has some value given from the GSN StreamElement.
<virtual-sensor>
<processing-class>
<class-name>gsn.vsensor.SMSVirtualSensor</class-name>
<init-params>
<param name="phone−number">004413243545</param>
<param name="password">3524</param>
<param name="sms−server">vodafone.co.uk</param>
<param name="message−format">Temperature: $TEMP$</param>
</init-params>
...
</processing-class>
...
<streams>
<stream name="...">
...
</stream>
...
</streams>
</virtual-sensor>