Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: libnsdl_m0 BLE_API Base64 nRF51822 SplitterAssembler
Diff: network_stubs/network_stubs.h
- Revision:
- 38:30e71f1206b1
- Parent:
- 36:aa73681951ad
diff -r 64cab752e428 -r 30e71f1206b1 network_stubs/network_stubs.h
--- a/network_stubs/network_stubs.h Tue Nov 03 17:02:34 2015 +0000
+++ b/network_stubs/network_stubs.h Tue Nov 03 17:03:51 2015 +0000
@@ -28,6 +28,10 @@
// NSP support
#include "nsdl_support.h"
+// 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, comment out to disable
+#define ANDROID_BLE_DELAY_MS 200 // delay time (in ms), if enabled, to allow android 5.x to catch up...
+
// configure the endpoint
extern void configure_endpoint();
@@ -47,7 +51,6 @@
uint32_t tv_usec;
};
-
// socket length is simply an unsigned int.
typedef uint32_t socklen_t;