diff --git a/libowlps-resultreader-udp/owlps-resultreader-udp.h b/libowlps-resultreader-udp/owlps-resultreader-udp.h index 4ebc900..9d72980 100644 --- a/libowlps-resultreader-udp/owlps-resultreader-udp.h +++ b/libowlps-resultreader-udp/owlps-resultreader-udp.h @@ -15,13 +15,15 @@ /* Maximum size of a result CSV string sent by OwlPS Positioning. * Request's information: - * = 18 (MAC) + 2 (type) + 22 (timestamp) = 42 + * = 18 (MAC) + 2 (type) + 22 (timestamp) = 42 + ';' = 43 * Plus, for each algorithm, about 60 characters (say 100, as the length - * of the algorithm and area names can vary). + * of the algorithm and area names can vary, 101 with the ';'). * Let's keep room for 10 algorithms : - * 10×100 + 42 = 1042 characters + '\0' = 1043. + * 10×101 + 43 = 1053 characters. */ -#define OWL_CSV_RESULT_STRLEN 1043 +#define OWL_CSV_RESULT_REQUEST_STRLEN 43 +#define OWL_CSV_ALGORITHM_RESULT_STRLEN 101 +#define OWL_CSV_RESULT_STRLEN 1053 /* Linked list of algorithms' results.