Hi All,
I used the BT sample project to connect to and have a CHAT session.
I modified to connect to a BT device, that sends me back some information followed by a file.
Using it in non-prefix mode, it reads the information that is text until i get a string that specifies the file size to follow.
Adding the incoming bytes as a string i add them to a string value and after the byte count gets to 22152 byes the app hangs.
Now i did read the fact that i need to put this on a service. So i created a service and placed the AsyncStreams on it with the serial component.
When on the service the APP just closes down and say Bluetooth has stopped working and closes the APP>
So i moved it back to the "chatactivity".
Im not sure how i should be handling this incoming string of text followed by a file apparently a bin file...
Any suggestions?
I used the BT sample project to connect to and have a CHAT session.
I modified to connect to a BT device, that sends me back some information followed by a file.
Using it in non-prefix mode, it reads the information that is text until i get a string that specifies the file size to follow.
Adding the incoming bytes as a string i add them to a string value and after the byte count gets to 22152 byes the app hangs.
Now i did read the fact that i need to put this on a service. So i created a service and placed the AsyncStreams on it with the serial component.
When on the service the APP just closes down and say Bluetooth has stopped working and closes the APP>
So i moved it back to the "chatactivity".
Im not sure how i should be handling this incoming string of text followed by a file apparently a bin file...
Any suggestions?