I want to graduate from hacking my own data through the heart-rate-service (hrs). None of these seem to fulfill my requirements. Is there a document or template from which I can build my custom service? I really just want to send up a batch of timestamped sensor readings.
#define MAX_BLE_PAYLOAD_SIZE 20
typedef struct my_sample_s {
uint16_t my_value;
uint16_t elapsed_ms; // or some kind of relative time since last sync or connection
} my_sample_t;
typedef struct my_message_s {
//my_sample_t samples[MAX_BLE_PAYLOAD_SIZE / sizeof(my_sample_t)];
my_sample_t samples[5];
} my_message_t;
my_message_t my_message;
How can I just send(my_message)
?