Skip to content

Commit

Permalink
doc
Browse files Browse the repository at this point in the history
  • Loading branch information
giladototo committed Jun 19, 2014
1 parent 6cdace8 commit fa8d7bb
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,14 @@ BTWiz deals internally with a lot of the Bluetooth initial wiring complexities w
It will provide you with the correct default (SECURE) when connecting to another device and will allow you, but only in a manifest manner, to prefer non-secure communication.
* **Connection Failover**<br/>
BTWiz uses highly effective fall-through mechanism that solves many of the BT connection
problems encountered by our team as well as others. It involves:
** **xxx**<br/>
problems encountered by our team as well as others. It involves:<br/>
If in SECURE mode create socket via createRfcommSocketToServiceRecord<br/>
If in INSECURE mode create socket via createInsecureRfcommSocketToServiceRecord<br/>
For API versions >= 15 call device.getUuids() to get supported features<br/>
For API versions < 15 attempt to activate "getUuids" via java reflection<br/>
If the above failed, re-attempt connection using the default SSP = "00001101-0000-1000-8000-00805F9B34FB"<br/>
If the above failed in SECURE mode activate by reflection "createRfcommSocket" to create socket<br/>
If the above failed in INSECURE mode activate by reflection "createInsecureRfcommSocket" to create socket<br/>


Using BTWize saves us a significant amount of time and error-handling. We encourage you to enjoy these benefits in your next Android Bluetooth project.
Expand Down

0 comments on commit fa8d7bb

Please sign in to comment.