missing method def updates
This commit is contained in:
parent
d51d3633f2
commit
b3e1c7b714
3 changed files with 7 additions and 6 deletions
|
@ -1,5 +1,5 @@
|
||||||
set(REQUIRES "")
|
set(REQUIRES bt)
|
||||||
set(SRCS "")
|
set(SRCS src/baros_ble.c)
|
||||||
|
|
||||||
idf_component_register(
|
idf_component_register(
|
||||||
SRCS ${SRCS}
|
SRCS ${SRCS}
|
||||||
|
|
|
@ -24,8 +24,6 @@ typedef struct {
|
||||||
baros_role_t role;
|
baros_role_t role;
|
||||||
} baros_ble_cfg_t;
|
} baros_ble_cfg_t;
|
||||||
|
|
||||||
uint8_t baros_ble_init(baros_ble_cfg_t *cfg);
|
|
||||||
|
|
||||||
ESP_EVENT_DECLARE_BASE(EVENT_BAROS_BLE);
|
ESP_EVENT_DECLARE_BASE(EVENT_BAROS_BLE);
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
|
@ -33,5 +31,8 @@ typedef enum {
|
||||||
BAROS_BLE_CONNECT,
|
BAROS_BLE_CONNECT,
|
||||||
} baros_ble_event_t;
|
} baros_ble_event_t;
|
||||||
|
|
||||||
|
uint8_t baros_ble_init(baros_ble_cfg_t *cfg);
|
||||||
|
int baros_ble_scan_start();
|
||||||
|
int baros_ble_scan_stop();
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -189,7 +189,7 @@ static void ble_advertise(void) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
int ble_scan_start() {
|
int baros_ble_scan_start() {
|
||||||
uint8_t addr_type;
|
uint8_t addr_type;
|
||||||
struct ble_gap_disc_params disc_params = {
|
struct ble_gap_disc_params disc_params = {
|
||||||
.filter_duplicates = 1,
|
.filter_duplicates = 1,
|
||||||
|
@ -207,7 +207,7 @@ int ble_scan_start() {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int ble_scan_stop() {
|
int baros_ble_scan_stop() {
|
||||||
return ble_gap_disc_cancel();
|
return ble_gap_disc_cancel();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue