Doug Anson / mbedEndpointNetwork_BLE

Dependencies:   libnsdl_m0 BLE_API Base64 nRF51822 SplitterAssembler

Revision:
35:71eb3663ecbd
Parent:
33:4f6929e123f2
Child:
36:aa73681951ad
--- a/bt_network/BleUartRPC/Dispatcher.h	Mon Jul 27 03:00:13 2015 +0000
+++ b/bt_network/BleUartRPC/Dispatcher.h	Fri Sep 04 21:04:08 2015 +0000
@@ -35,6 +35,10 @@
  // This is aligned with the value of DEF_FRAGMENT_LENGTH in SplitterAssembler.h and is also the max UART MTU for BLE
  #define UART_SEGMENT_LENGTH        20             // BLE: max UART MTU (will trigger send immediately...)
  
+ // 9/4/15: Android 5.x appears to have some sort of poor-mans DDoS detector in its BLE stack so we have to slow things down a bit.. 
+ #define ANDROID_BLE_DELAY          true           // true to enable slow down, false to disable 
+ #define ANDROID_BLE_DELAY_MS       500            // delay time (in ms), if enabled, to allow android 5.x to catch up... 
+ 
  class Dispatcher {
      public:
         /**