In this guide, we take a different approach and use the Hologram Dashboard's Routes feature to get messages originally sent using data and forwarding the payload to a phone number via SMS. In this example we'll be using a Nova, but this process applies to any device that is sending messages to the Hologram Dashboard which can be achieved using the embedded API mentioned above or our REST API.
M2M devices on the IoT should be using data whenever possible, they are after all "Things" on the internet. However, in some cases, you just need to send SMS messages for one reason or another.
The Hologram platform charges an average of $0.19 per outbound (from the Hologram SIM to another device) SMS message which might not sound like very much, but these charges can add up. To address this we provide a method of sending SMS messages over IP that is documented on our embedded API's page.
The basic flow for how we will achieve this is as follows: device sends a message to the dashboard with a specific topic -- route on the dashboard is triggered by said topic and forwards the message to the phone number listed -- phone gets the message via SMS.
1) Step one is to set up the SMS route. You can get more in-depth information on that process here. You just need to give the route a name, select the topic you will be sending messages with, and choose the destination number.
Now check the device's logs to see if we got the message on the Dashboard.
Everything is looking good. Finally, lets see if we got the message.
Indeed it looks like we got the message!
Some of the added benefits of using this method is that the number that the SMS message comes from will show up as the number of the phone number you subscribed to if your SIM has one. This will help if the receiving phone number blocks international phone numbers. Furthermore, you can also use our basic templating syntax and variables as mentioned on the Routes guide above to send message metadata or filter out the information you want to be forwarded via SMS.
Note: The CLI and Python SDK already use SMS over IP to send SMS messages, this guide is meant to illustrate this procedure for any device.