19 lines
388 B
C
19 lines
388 B
C
#pragma once
|
|
|
|
#include <stdint.h>
|
|
|
|
#include "configuration.h"
|
|
#include "measure.h"
|
|
|
|
#define TAG "BLE"
|
|
|
|
struct ble_context {
|
|
uint16_t handle;
|
|
configuration *conf;
|
|
measurements *meas;
|
|
measurements_ctxt* meas_ctxt;
|
|
};
|
|
|
|
void initBLE(configuration* conf, measurements* meas, measurements_ctxt* meas_ctxt);
|
|
void notify_update(measurements* meas);
|
|
void notify_range(configuration* conf); |