Copyright © 2017 Voyager Innovations Inc.
CIMD2 Client
Exposes a start_link/1 function that accepts login parameters and makes connection to the Nokia SMSC. This starts an internal gen_server and returns a reference for that particular process
This is also the main module interface for this library. This will also expose the functions for sending sms, retrieving delivery receipts and registering callbacksis_connected/1 | Check if connected to server. |
logout/1 | Logout the session. |
send_sms/6 | Sends a message to the specified MSISDN. |
start_link/1 | Starts connection to the SMSC and logs in with the given credentials. |
is_connected(C::pid()) -> {status, boolean()}
Check if connected to server
logout(C::pid()) -> ok
Logout the session
send_sms(C::pid(), AccessCode::iodata(), Sender::iodata(), Destination::iodata(), Message::iodata(), Options) -> [{message_id, iodata()}] | {error, atom()}
Sends a message to the specified MSISDN
Options
is an optional map that may contain the following keys:
cancellable
tariff_class
service_desc
status_report
priority
1 - Temporary error
2 - Validity period expired
4 - Delivery failed
8 - Delivery successful
16 - Message cancelled
32 - Message deleted by operator
64 - First temporary result
128 - Reserved
start_link(Options) -> {ok, pid()} | ignore | {error, term()}
Starts connection to the SMSC and logs in with the given credentials
Options
is a map that should contain the following keys:
name
callback_mo
callback_dr
reconnect
host
port
username
password
Generated by EDoc, May 8 2017, 19:45:17.