View Single Post
Posts: 20 | Thanked: 1 time | Joined on Jan 2010 @ The Netherlands
#42
Originally Posted by pende View Post
Hi there,

I added some code and now you are able to send sms and receive a reply. Code is available for download here http://ztbsauer.com/sender.py

For now it replies only for one command but feel free to expand it for own needs.
Hi pende, I tried your code but it doesn't work. If I run it and send an sms (with "ping" ) to the device, I receive the sms and on stdout it shows:

New message received from +xxxxxxxxxxx
Message length 4
Message: ping
Sending reply: pong

But I don't receive the "pong" message on my other mobile.

In the code, I see that you replace the '+' by "00"; adding that to my phone number (above obfuscated with x-es) gives a total number of 13 digits. Is the odd number still a problem? If so, how can I resolve this?