×

Discussion Board

Page 1 of 3 123 LastLast
Results 1 to 15 of 31
  1. #1
    Super Contributor
    Join Date
    Jan 2007
    Location
    Bhubaneswar, India
    Posts
    1,189

    Send SMS at some interval

    Hi All,

    In my application I am sending SMS to mobile number. Now I want send SMS at some specific interval time(Say 5 seconds,10 seconds and etc) on one number(Which number I will set).

    How to start this feature in my application.
    Waiting for Any help or suggestion.
    -------------------------------------
    Thanks & Regards
    Ram
    Symbian OS 9.2/9.3,S60 3rd FP1/FP2,Carbide.c++v2.0

  2. #2
    Nokia Developer Expert
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,143

    Re: Send SMS at some interval

    Check Wiki for Timer & SMS exmaples, both should be covered in there pretty well.

  3. #3
    Registered User
    Join Date
    Jun 2006
    Location
    India
    Posts
    1,043

    Re: Send SMS at some interval

    hi,
    Check this site for SMS example
    http://wiki.forum.nokia.com/index.php/How_to_send_SMS
    also you can implement a timer for setting your message sending after specified time .For usage of timer check this site
    http://wiki.forum.nokia.com/index.ph...implementation
    Maximus
    S60 Developer
    Impossible is nothing

  4. #4
    Registered User
    Join Date
    Dec 2005
    Posts
    1,236

    Re: Send SMS at some interval

    Hi,

    You could use CPeriodic to set your time interval frequency at which you want to send sms which you could take from wiki forum
    http://wiki.forum.nokia.com/index.ph...tream_of_ticks
    Regards,
    Sriky

  5. #5
    Super Contributor
    Join Date
    Jan 2007
    Location
    Bhubaneswar, India
    Posts
    1,189

    Re: Send SMS at some interval

    Hi All,
    Thanks to all of you for quick response.

    I am going through given link by you.
    -------------------------------------
    Thanks & Regards
    Ram
    Symbian OS 9.2/9.3,S60 3rd FP1/FP2,Carbide.c++v2.0

  6. #6
    Super Contributor
    Join Date
    Jan 2007
    Location
    Bhubaneswar, India
    Posts
    1,189

    Re: Send SMS at some interval

    Hi All,

    In my application I am getting latitude and longitude at 1 second. Now I am able to send latitude and longitude by SMS manually.

    Now when I want to select option to send SMS(latitude and longitude) at specific interval.

    My problem is similar to this thread.
    http://discussion.forum.nokia.com/fo...ad.php?t=98096

    I change in my code as it is suggested in post#8(by Kiran) of above link.Now I am getting error like undefined identifier 'GetMessage'. But This function(GetMessage) I have declared then also I am getting error.
    waiting for reply.
    -------------------------------------
    Thanks & Regards
    Ram
    Symbian OS 9.2/9.3,S60 3rd FP1/FP2,Carbide.c++v2.0

  7. #7
    Nokia Developer Champion
    Join Date
    Mar 2006
    Location
    Helsinki, Finland
    Posts
    8,335

    Re: Send SMS at some interval

    Quote Originally Posted by RB_Sahu View Post
    Hi All,

    I change in my code as it is suggested in post#8(by Kiran) of above link.Now I am getting error like undefined identifier 'GetMessage'. But This function(GetMessage) I have declared then also I am getting error.
    waiting for reply.
    How did you declare it?
    How did you implement it?
    How did you call it?

    Show your code for above cases.
    Nokia Developer Wiki Moderation team

  8. #8
    Registered User
    Join Date
    Dec 2005
    Posts
    1,236

    Re: Send SMS at some interval

    Hi,

    I guess its a problem with TCallBack api implementation. anywazz waiting for RB_SAHU to post your code.
    Regards,
    Sriky

  9. #9
    Registered User
    Join Date
    Jun 2006
    Location
    India
    Posts
    1,043

    Re: Send SMS at some interval

    Quote Originally Posted by kiran10182 View Post
    How did you declare it?
    How did you implement it?
    How did you call it?

    Show your code for above cases.
    Hi,
    You can check your header file again. Sometimes it can happen you have declared in some other class (if your header is containing more than one classes). Copy paste mistake
    Maximus
    S60 Developer
    Impossible is nothing

  10. #10
    Registered User
    Join Date
    Dec 2005
    Posts
    1,236

    Re: Send SMS at some interval

    mm I think I got the problem RB_SAHU are you trying to do sth like this
    Code:
    TInt CMyClass::PeriodicTimerCallBack(TAny* aAny)
    	{
            GetMesage();
    	return KErrNone; // Return value ignored by CPeriodic
    	}
    Even thought GetMessage you have declared and defined it is not a static function so try sth like this

    Code:
    TInt CMyClass::PeriodicTimerCallBack(TAny* aAny)
    	{
    	CMyClass* self = static_cast<CMyClass*>( aAny );
     
            // TODO: The below call is a sample function,
            // you may change it to your requirement.
    	self->GetMessage();
     
    	return KErrNone; // Return value ignored by CPeriodic
    	}
    Regards,
    Sriky

  11. #11
    Nokia Developer Champion
    Join Date
    Mar 2006
    Location
    Helsinki, Finland
    Posts
    8,335

    Cool Re: Send SMS at some interval

    Quote Originally Posted by sriky27 View Post
    mm I think I got the problem RB_SAHU are you trying to do sth like this
    ...
    I think I am doing right, ain't I? http://discussion.forum.nokia.com/fo...24&postcount=8
    Nokia Developer Wiki Moderation team

  12. #12
    Registered User
    Join Date
    Dec 2005
    Posts
    1,236

    Smile Re: Send SMS at some interval

    Quote Originally Posted by kiran10182 View Post
    You are doing right no doubt I thought he is getting problem in GetMessage it was just a guess.
    Regards,
    Sriky

  13. #13
    Registered User
    Join Date
    Jun 2006
    Location
    India
    Posts
    1,043

    Re: Send SMS at some interval

    Hi Kiran,
    Sriky27 has correctly mentioned that it should be used like
    CMyClass* self = static_cast<CMyClass*>( aAny );

    // TODO: The below call is a sample function,
    // you may change it to your requirement.
    self->GetMessage();
    since the callback function is a static function. If you directly use the function it will give error while compiling I guess.
    PS: Sorry Kiran I misread the thread, yes u r correct it should not be a problem. Sorry again
    Maximus
    S60 Developer
    Impossible is nothing

  14. #14
    Nokia Developer Champion
    Join Date
    Mar 2006
    Location
    Helsinki, Finland
    Posts
    8,335

    Smile Re: Send SMS at some interval

    Quote Originally Posted by yogpan View Post
    PS: Sorry Kiran I misread the thread, yes u r correct it should not be a problem. Sorry again
    Your PS was little bit late. Meanwhile I tried it and it worked like a charm. You know how difficult is to build and launch emulator on Windows Vista!!!

    That's fine. No worries.
    Nokia Developer Wiki Moderation team

  15. #15
    Registered User
    Join Date
    Jun 2006
    Location
    India
    Posts
    1,043

    Re: Send SMS at some interval

    Hi,
    I guess then the undefined identifier problem is because of missing declaration from the class declaration.
    Hi RB_Sahu,
    May be u should again check your header file for declaration of the function.
    Maximus
    S60 Developer
    Impossible is nothing

Page 1 of 3 123 LastLast

Similar Threads

  1. AT commands to send sms from pc by n70
    By cristiandaffy in forum Wired and Wireless interfaces (Closed)
    Replies: 0
    Last Post: 2007-12-07, 15:38
  2. Replies: 6
    Last Post: 2007-11-20, 13:09
  3. Send SMS Problem. Cannot Get SMSC Address. Due to Strange SIM Card?
    By cksong in forum Mobile Java Networking & Messaging & Security
    Replies: 1
    Last Post: 2007-07-02, 16:13
  4. can i send SMS automatically?
    By vhepeter2005 in forum General Messaging
    Replies: 3
    Last Post: 2007-04-28, 09:23
  5. Replies: 1
    Last Post: 2002-07-23, 14:39

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •