Simple data buffer splitter and re-assembler.

Files at this revision

API Documentation at this revision

Comitter:
ansond
Date:
Sat Jul 25 19:15:31 2015 +0000
Parent:
7:6baecc15cb26
Commit message:
updates for BLE location

Changed in this revision

SplitterAssembler.h Show annotated file Show diff for this revision Revisions of this file
diff -r 6baecc15cb26 -r bfa5b7b9b886 SplitterAssembler.h
--- a/SplitterAssembler.h	Wed Feb 18 19:40:20 2015 +0000
+++ b/SplitterAssembler.h	Sat Jul 25 19:15:31 2015 +0000
@@ -26,7 +26,7 @@
 #include "mbed.h"
 
 // TUNABLES
-#define MAX_FRAGMENTS           13      // maximum number of supported fragments... increase as needed... (max payload length = 256/DEF_FRAGMENT_LENGTH ~ 13)
+#define MAX_FRAGMENTS           17      // maximum number of supported fragments... increase as needed... (max payload length = 340/DEF_FRAGMENT_LENGTH ~ 17)
 #define DEF_FRAGMENT_LENGTH     20      // BLE: set to max MTU for BLE UART: defined by BLE_UART_SERVICE_MAX_DATA_LEN in UARTService.h
 
 class SplitterAssembler {