View Single Post
Posts: 64 | Thanked: 13 times | Joined on Apr 2010
#13
Originally Posted by SevEd View Post
Could you show us your fixed code? I'm trying to send messages but I haven't been lucky

Thanks
The source code can found here:

http://www.extenddev.com/maemo/phonelib.h.txt
http://www.extenddev.com/maemo/gsm.h.txt


Using like this :
struct _SMS* sm;
sm = malloc(sizeof(SMS) );

memset(sm,0,sizeof(SMS));

strcpy(sm->mobile,"+20xxxxxxxxx");
strcpy(sm->message,"hellohello");

sendsms(sm);
free(sm);

Hope is useful
and helpful

Thanks