Re: Successfully send sms with python

2015-09-23 Thread Cameron Simpson
On 23Sep2015 01:46, Pavel S wrote: I don't understand why all of you are telling him about '\r\n\, write(),..' instead of recommending to use take library which already has all problems resolved (python-gammu / wammu). Sometimes it is useful to know how things are done instead of which big d

Re: Successfully send sms with python

2015-09-23 Thread Laura Creighton
In a message of Tue, 22 Sep 2015 22:25:31 -0600, Michael Torrie writes: >Consider something like this with no error checking when using the >serial port, no context managers for the serial device: >file sms.py: >-- >import serial >import time > >serial_port = 'COM13' >timeout =

Re: Successfully send sms with python

2015-09-23 Thread Pavel S
I don't understand why all of you are telling him about '\r\n\, write(),..' instead of recommending to use take library which already has all problems resolved (python-gammu / wammu). When one will write custom templating stuff, you would also recommend him to take jinja. -- https://mail.pytho

Re: Successfully send sms with python

2015-09-22 Thread Michael Torrie
On 09/22/2015 05:19 AM, Timon Rhynix wrote: > When run it, the "message sent!" is printed but no message is sent/delivered. > Please assist on what I am missing. Thank you Is this "message sent!" from your code or is it a message you get back on the serial port from the gsm modem? Oh nevermind I s

Re: Successfully send sms with python

2015-09-22 Thread Cameron Simpson
On 22Sep2015 04:19, Timon Rhynix wrote: Hello, I have used pyserial, sms0.4 and other libraries to send sms via huawei E1750 modem. The code runs well and no error is thrown but the text message is not sent/delivered to the number. One of my code is as follows: import serial import time clas

Re: Successfully send sms with python

2015-09-22 Thread mm0fmf via Python-list
On 22/09/2015 12:19, Timon Rhynix wrote: Hello, I have used pyserial, sms0.4 and other libraries to send sms via huawei E1750 modem. The code runs well and no error is thrown but the text message is not sent/delivered to the number. One of my code is as follows: import serial import time clas

Re: Successfully send sms with python

2015-09-22 Thread Pavel S
On Tuesday, September 22, 2015 at 1:20:07 PM UTC+2, Timon Rhynix wrote: > Hello, I have used pyserial, sms0.4 and other libraries to send sms via > huawei E1750 modem. > The code runs well and no error is thrown but the text message is not > sent/delivered to the number. > One of my code is as fo

Successfully send sms with python

2015-09-22 Thread Timon Rhynix
Hello, I have used pyserial, sms0.4 and other libraries to send sms via huawei E1750 modem. The code runs well and no error is thrown but the text message is not sent/delivered to the number. One of my code is as follows: import serial import time class TextMessage: def __init__(self, recip