Discussion Board

Results 1 to 3 of 3
  1. #1
    Regular Contributor silviuccia's Avatar
    Join Date
    Aug 2006
    Posts
    252
    Hi,
    i try to send a bluetooth mesage to a know device. I use this code:
    Code:
    #define KBT_serviceID 0x10ff
    
    TUid serviceUid;
            serviceUid.iUid = KBT_serviceID;
    
            TSendingCapabilities capa( 0, 1024, TSendingCapabilities::ESupportsAttachments ); 
            //TSendingCapabilities capa;
            iSendUi->ServiceCapabilitiesL( serviceUid, capa );
    
            //iSendUi->ShowQueryAndSendL( messageData );
            //CreateAndSendMessageL( TUid aServiceUid, const CMessageData* aMessageData, TUid aBioTypeUid, TBool aLaunchEditorEmbedded )
            if(iSendUi->ValidateServiceL(serviceUid,capa))		
                {
                	iSendUi->CreateAndSendMessageL(serviceUid,messageData);
                }
            else
            	{
            	CEikonEnv::Static()->AlertWin(_L("not valid"), path);
            	}
    but inside if application give me that is not valid.
    Where is the mistake?
    What is the method of CSendUi to set the address to bluetooth device??

    Many thanks
    Silvia

  2. #2
    Registered User phosphoricx3's Avatar
    Join Date
    Oct 2007
    Location
    Davis, CA
    Posts
    10
    I'm trying to figure this out too. AppendToAddressL doesn't seem to work...

  3. #3
    Super Contributor mayankkedia's Avatar
    Join Date
    Mar 2004
    Location
    Bangalore,India
    Posts
    2,146
    Did you try using the RSendAs class to see if that works, check the wiki link on how to use it here :-

    http://wiki.forum.nokia.com/index.ph..._Using_RSendAs

    I would believe if you know the address offhand, using the AddRecipientL you can add the recipient without calling the editor to chose the address and then having the required capabilities you should be able to silently send the BT message.
    Cheers,
    Mayank

Similar Threads

  1. nokia 7210 modem via IR doesn't work !
    By oussamaaiadi in forum PC Suite API and PC Connectivity SDK
    Replies: 1
    Last Post: 2003-03-06, 10:46
  2. problem to send Service Loading push message over 8310
    By alinesimon in forum Mobile Web Site Development
    Replies: 3
    Last Post: 2002-10-23, 07:08
  3. problem to send a service loading message push for 8310
    By alinesimon in forum General Messaging
    Replies: 1
    Last Post: 2002-05-06, 12:39
  4. Problem to send a service loading push message for 8310
    By alinesimon in forum General Messaging
    Replies: 1
    Last Post: 2002-05-06, 11:19
  5. Problem to send a service loadinfd push message for 8310
    By alinesimon in forum Smart Messaging
    Replies: 1
    Last Post: 2002-05-03, 10:49

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved