TiLDA MK4/sim800
Overview
Calling
Call
sim800.call(number)
number = Number to call (str)
Answer Incoming Call
sim800.answer()
End/Reject Call
sim800.hangup()
Redial
sim800.redial()
Incoming Call Number
sim800.latestnumber()
Returns the number of the current caller if ringing. Returns the number of the last caller if not ringing.
Ringing
sim800.isringing()
Returns True if ringing.
The sim800.getstatus() also returns 2 when ringing and machine.Pin(machine.Pin.GPIO_SIM_RI, machine.Pin.IN).value() will show the start of the hardware ringer indicator pin. You an also user a callback (documented below) with the call name of "RING".
Play DTMF
sim800.dtmf(number)
Plays DTMF tones on an active call.
number = The number of the tone to play. This can a string of numbers that are played in sequence. Using "," will pause for one second. (int or str)
SMS
List SMS Messages
sim800.listsms(stat)
List available SMS messages.
stat;
- 0 = received unread messages (default)
- 1 = Received read messages
- 2 = Stored unsent messages
- 3 = Stored sent messages
- 4 = All message