How-To Guides
Flows Guides
Send Alerts to a Mobile Phone
8min
you can use flows to set up automated sms alerts that can be sent to a mobile phone user scenario in a manufacturing plant, when certain conditions are met, such as temperature exceeding safe limits, you can send alerts from the shop floor to workers who need to respond to that critical condition here's how you can do it using litmus edge read tags from a plc define alerts (conditions/rules/levels) in flows route alerts to specific cell phones or user groups strategies for sending alerts you can send alert messages to a mobile device with either sms gateway or wifi/ networks use an sms gateway for messaging smpp based sms gateway to generate alerts through sms, you can use the smpp (short message peer to peer) protocol you have the option to use a gateway that is available in a data center, or you can deploy an open source solution such as jasmin sms gateway, which can be installed in litmus edge by navigating to applications > marketplace hardware sms gateway you can deploy a device with a sim card and use flows to send messages to the gateway when an alert is triggered online sms gateway you can use online cloud based sms gateways like aws sns or twilio for sending sms alerts for instructions on how to create a twilio flow to send an sms alert, please refer to the section below titled "create twilio flow to send an sms alert" use wifi/ network for messaging install a notification receiving mobile app several mbaas (mobile backend as a service) applications (such as kinvey, cloudkit for ios, or firebase) provide this capability litmus edge becomes the notification server the app connects to flows to receive notifications create twilio flow to send an sms alert the following example provides high level guidance for configuring outgoing twilio messaging in flows because each enterprise has unique requirements and configurations, customize this example for your environment before you begin you will need to sign up for a twilio account on their website note that twilio charges for message activity step 1 configure the twilio node to configure the twilio node in litmus edge, navigate to the flows manager and create a new flow see create a flow docid\ veyyte7xdcangglzbqya0 to learn more on the flow canvas, add the twilio out node double click the node the edit twilio out node dialog box appears output select sms from the dropdown options name enter twilio alert to enter the phone number (no spaces or special characters) for the person who receives the text messages twilio click the edit icon and configure the following parameters for the twilio connection to retrieve these values, log in to your twilio account and access the programmable sms dashboard account sid find this sid (security id) in the twilio account dashboard from use the twilio assigned phone number found in your twilio account token find this authentication token in the twilio account dashboard name enter an optional user defined name click update click done step 2 test connectivity to test the connectivity drag a function and inject nodes to the canvas and wire them to the twilio node double click the function node on message enter a basic message to send as a text message use this code as an example msg payload = "alert this is a test message from the manufacturing floor "; return msg; click done click deploy click the inject node button to trigger the alert and check the respective phone for the text message