Exemplo n.º 1
0
 def set_sms_data_coding_scheme(self, scheme):
     """
     Sets SMS data coding scheme.
     :type scheme: integer
     :param scheme: data coding scheme to set (0 to 255)
     """
     (err, msg) = W.SetSMSDataCodingScheme(self.get_root(), scheme)
     self.__error_check(err, msg)
Exemplo n.º 2
0
 def set_custom_sms_text(self, sms_text):
     """
     Sets custom SMS text.
     :type sms_text: str
     :param sms_text: the text of the SMS to send.
     """
     (err, msg) = W.SetCustomSMSText(self.get_root(), sms_text)
     self.__error_check(err, msg)
Exemplo n.º 3
0
 def set_service_center_address(self, service_center):
     """
     Sets service center address.
     :type service_center: str
     :param service_center: the address of the SMS service center to set
     """
     (err, msg) = W.SetServiceCenterAddress(self.get_root(), service_center)
     self.__error_check(err, msg)
Exemplo n.º 4
0
 def get_last_sms(self):
     """
     Gets last SMS.
     :rtype: str
     :return: the text of the last SMS.
     """
     (err, sms, msg) = W.GetLastSMS(self.get_root())
     self.__error_check(err, msg)
     return sms
Exemplo n.º 5
0
 def get_last_sms_length(self):
     """
     Gets last SMS length.
     :rtype: integer
     :return: the length of the last SMS.
     """
     (err, length, msg) = W.GetLastSMSLength(self.get_root())
     self.__error_check(err, msg)
     return length
Exemplo n.º 6
0
 def get_sms_destination(self):
     """
     gets SMS destination.
     :rtype: str
     :return: the destination of the last received SMS.
     """
     (err, dest, msg) = W.GetSmsDestination(self.get_root())
     self.__error_check(err, msg)
     return dest
Exemplo n.º 7
0
 def get_nb_received_sms(self):
     """
     Gets the number of received SMS.
     :rtype: long
     :return: the number of SMS received by the equipment.
     """
     (err, nb_received, msg) = W.GetNbReceivedSMS(self.get_root())
     self.__error_check(err, msg)
     return nb_received
Exemplo n.º 8
0
 def set_sms_message_queuing_state(self, state):
     """
     Sets SMS message queuing state.
     :type state: str
     :param state: the state to set. Possible values:
         - "ON"
         - "OFF"
     """
     (err, msg) = W.SetSmsMessageQueuingState(self.get_root(), state)
     self.__error_check(err, msg)
Exemplo n.º 9
0
 def set_sms_sender_address(self, address):
     """
     Sets SMS sender address.
     :type address: str
     :param address: address to be set. Range: 2 to 20 characters.
     SMS address to set. ASCII str of BCD digits 0-9, the symbols
     * and #, and the lower case characters a, b, c, and f.
     """
     (err, msg) = W.SetSmsSenderAdress(self.get_root(), address)
     self.__error_check(err, msg)
Exemplo n.º 10
0
 def set_custom_sms_data(self, sms_data):
     """
     Sets SMS custom data.
     :type sms_data: str
     :param sms_data: the data of the SMS to send. Size of the data
     to set must be a pair number between 0 and 280. String of hexadecimal
     digits (0-9; a-f; A-F).
     """
     (err, msg) = W.SetCustomSMSData(self.get_root(), sms_data)
     self.__error_check(err, msg)
Exemplo n.º 11
0
 def get_sms_transportation(self):
     """
     gets SMS transportation.
     :rtype: str
     :return: the the transportation of the last received SMS.
     """
     (err, sms_transportation, msg) = \
         W.GetLastSMSTransportation(self.get_root())
     self.__error_check(err, msg)
     return sms_transportation
Exemplo n.º 12
0
 def set_sms_mo_loopback_state(self, state):
     """
     Sets SMS loopback state.
     :type state: str
     :param state: the desired state. Possible values:
         - "ON"
         - "OFF"
     """
     (err, msg) = W.SetSmsMoLoopbackState(self.get_root(), state)
     self.__error_check(err, msg)
Exemplo n.º 13
0
 def select_sms_transportation(self, sms_trans):
     """
     Selects SMS transportation.
     :type sms_trans: str
     :param sms_trans: the SMS transportation mechanism to select. Possible values:
         - "GSM"
         - "GPRS"
     """
     (err, msg) = W.SelectSMSTransportation(self.get_root(), sms_trans)
     self.__error_check(err, msg)
Exemplo n.º 14
0
 def select_sms_content(self, sms_content):
     """
     Selects SMS content.
     :type sms_content: str
     :param sms_content: the SMS content to select. Possible values:
         - "TXT1"
         - "TXT2"
         - "CTEX"
         - "CDAT"
     """
     (err, msg) = W.SelectSMSContent(self.get_root(), sms_content)
     self.__error_check(err, msg)
Exemplo n.º 15
0
 def get_sms_send_state(self):
     """
     Gets SMS send state.
     :rtype: str
     :return: the str representation of the SMS send state.
         Possible returned values:
             - "IDLE"
             - "SEND"
             - "ACK"
             - "NACK"
             - "REJ"
             - "FAIL"
     """
     (err, state, msg) = W.GetSMSSendState(self.get_root())
     self.__error_check(err, msg)
     return state
Exemplo n.º 16
0
 def clear_message_data(self):
     """
     Clears all messages.
     """
     (err, msg) = W.ClearMessageData(self.get_root())
     self.__error_check(err, msg)
Exemplo n.º 17
0
 def send_sms(self):
     """
     Sends a SMS.
     """
     (err, msg) = W.SendSMS(self.get_root())
     self.__error_check(err, msg)
Exemplo n.º 18
0
 def move_next_sms(self):
     """
     Moves to next SMS.
     """
     (err, msg) = W.MoveNextSMS(self.get_root())
     self.__error_check(err, msg)