File Information
Library: IoT/SMS
Package: ShortMessageService
Header: IoT/SMS/ShortMessageService.h
Description
The ShortMessageService is used to send SMS messages, either via a connected modem, or via a web service such as Twilio.
Member Summary
Member Functions: send
Types Aliases
Ptr
using Ptr = Poco::SharedPtr < ShortMessageService >;
Constructors
ShortMessageService
Creates the ShortMessageService.
Destructor
~ShortMessageService
virtual ~ShortMessageService();
Destroys the ShortMessageService.
Member Functions
send
virtual void send(
const std::string & recipient,
const std::string & content
) = 0;
Queues the given message for delivery to the given recipient (phone number).
Throws an implementation-specific exception if the message cannot be queued for delivery.