Thank you for visiting the BlackBerry Support Community Forums.
BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)
BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.
"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."
- Kevin Michaluk, Founder, CrackBerry.com
Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.
12-15-2012 08:34 AM
Hi All, I am trying to send a batch of messages to PC from BB10 through Bluetooth
write( sppDataThread.getFD( ), msg1.toAscii( ), msg.size( ) ); write( sppDataThread.getFD( ), msg2.toAscii( ), msg.size( ) ); write( sppDataThread.getFD( ), msg3.toAscii( ), msg.size( ) );
I face a strange behaviour when i recieve these messages on PC.
I expect to recieve
but I recieve:
I fixed this issue by using:
write( sppDataThread.getFD( ), msg1.toAscii( ), msg.size( ) ); sppDataThread.wait( 200 ) write( sppDataThread.getFD( ), msg2.toAscii( ), msg.size( ) ); sppDataThread.wait( 200 ) write( sppDataThread.getFD( ), msg3.toAscii( ), msg.size( ) );
But I dont want my thread to sleep . It seems that it is a caching issue. How to send messages immediattely correctly?
01-04-2013 01:09 PM
I can provide 'any' but not sure it will help you.
What is sppDataThread?
How do you declare msg, msg1, msg2 and msg3?
How do you initialize msg, msg1, msg2 and msg3?
01-04-2013 01:28 PM
I am not young so probably that's why I'll ask you to give all of them as well:
>How do you declare msg, msg1, msg2 and msg3?
>How do you initialize msg, msg1, msg2 and msg3?
01-04-2013 01:40 PM
01-04-2013 01:50 PM
I don't think it is 'block' issue.
What bothers me is in every wirte you use different variables to push into the socket but you have the same lengh of msg variable that is why I asked you to provide *all 4 variables declarations/initializations.
msg1.toAscii( ), msg.size( )
01-04-2013 01:59 PM