Merge branch 'development' of https://git.oit.cloud/Barback/BAROS32 into development
This commit is contained in:
commit
6467f21fca
3 changed files with 17 additions and 2 deletions
|
|
@ -7,6 +7,7 @@ set(REQUIRES
|
|||
)
|
||||
|
||||
set(SRCS
|
||||
src/baros.c
|
||||
src/baros_ble.c
|
||||
src/baros_ble_ota.c
|
||||
)
|
||||
|
|
|
|||
|
|
@ -24,6 +24,10 @@ typedef enum {
|
|||
typedef struct {
|
||||
const char *name;
|
||||
baros_role_t role;
|
||||
} baros_cfg_t;
|
||||
|
||||
typedef struct {
|
||||
const char *name;
|
||||
} baros_ble_cfg_t;
|
||||
|
||||
ESP_EVENT_DECLARE_BASE(EVENT_BAROS_BLE);
|
||||
|
|
@ -33,9 +37,8 @@ typedef enum {
|
|||
BAROS_BLE_CONNECT,
|
||||
} baros_ble_event_t;
|
||||
|
||||
uint8_t baros_init(baros_cfg_t *cfg);
|
||||
uint8_t baros_ble_init(baros_ble_cfg_t *cfg);
|
||||
int baros_ble_scan_start();
|
||||
int baros_ble_scan_stop();
|
||||
|
||||
#define BARBACK_BANNER "\n\
|
||||
▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄ ▄ ▄\n\
|
||||
|
|
|
|||
11
src/baros.c
Normal file
11
src/baros.c
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
#include "baros.h"
|
||||
|
||||
uint8_t baros_init(baros_cfg_t *cfg) {
|
||||
baros_ble_cfg_t ble_cfg = {
|
||||
.name = cfg->name
|
||||
};
|
||||
|
||||
baros_ble_init(&ble_cfg);
|
||||
|
||||
return 0;
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue