gnokii-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gn_sms_send failed to send sms ( lack of gn_data structure )


From: Pawel Kot
Subject: Re: gn_sms_send failed to send sms ( lack of gn_data structure )
Date: Fri, 18 Mar 2011 13:37:24 +0100

Hi,

On Fri, Mar 18, 2011 at 13:27, Pawel Kot <address@hidden> wrote:
>>  
>> snprintf(sms.user_data[0].u.text,sizeof(sms.user_data[0].u.text),"%s","tesss");
>
> That's not enough. Especially since you don't zero the gn_sms
> structure in the beginning. Have a look at gnokii code how it is done
> there. You need to set at least the type for this and next user_data
> table element.

And the actual problem is that gn_sms structure contains rubbish as
you didn't initialize it properly. You can use gn_sm_default_sumbit()
for that. And then follow the hint above.

-- 
Pawel Kot



reply via email to

[Prev in Thread] Current Thread [Next in Thread]