You Are Here:

Community: Developer Discussion Boards

#1 Old Log file of bluetooth transfers - 2008-12-27, 08:51

Join Date: Oct 2006
Posts: 1
sdadrianalvarez
Offline
Registered User
I am trying to add a log file of bluetooth transfers
I have tried to integrate a file logging example and the
btobexchange example but I believe I have not been able
to because a session is needed for every activity.

I have been searching for an example that has two sessions
I would use one to perform the bluetooth communication and
the other session to write into a log file.

Could you help me with an example that does something and writes
into a log file
Thank you
Adrian

RFs fs;

CleanupClosePushL(fs);
User::LeaveIfError( fs.Connect() );
fs.ShareProtected();

TInt error( KErrNone );

RFile temp;
User::LeaveIfError( temp.Open( fs, path, EFileShareReadersOnly | EFileRead ) );
CleanupClosePushL(temp);

CMessageData* messageData = CMessageData::NewL();
CleanupStack::PushL(messageData);
messageData->AppendAttachmentHandleL(temp);

TRAPD(err, iSendUi->ShowQueryAndSendL(messageData, capabs) );
if( err ) // an error has been found during transmission
{
iAppView->LogL(KSenduiError, err);
}
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
send log file via ftp (file already in use) hubefonseca Symbian Networking & Messaging 1 2007-05-11 23:20
Send file throwgh Bluetooth in Motorola PUAG! Pepper_91 Mobile Java Networking & Messaging & Security 0 2007-04-18 12:53
Recieving Corrupted File over bluetooth using SPP danishsk Mobile Java General 1 2007-04-16 21:00
求助关于SDK平台变化后系统头文件出错的问题 cxg1103 Symbian 3 2007-03-07 04:36
Printing character buffer contents in log file on symbian 3rd edition device. Priya_m General Symbian C++ 0 2007-02-17 09:12

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia