kopia lustrzana https://github.com/espressif/esp-idf
ble_mesh: Move TAG definition to each example
Move the TAG definition of each example to the corresponding source file (previously it is defined in the common example intialization header file), which can avoid the redefinition of TAG in some situations.pull/5628/head
rodzic
93aa9163c7
commit
a254c42173
|
@ -31,6 +31,8 @@
|
|||
#include "ble_mesh_fast_prov_client_model.h"
|
||||
#include "ble_mesh_example_init.h"
|
||||
|
||||
#define TAG "EXAMPLE"
|
||||
|
||||
#define PROV_OWN_ADDR 0x0001
|
||||
#define APP_KEY_OCTET 0x12
|
||||
#define GROUP_ADDRESS 0xC000
|
||||
|
|
|
@ -32,6 +32,8 @@
|
|||
#include "ble_mesh_fast_prov_server_model.h"
|
||||
#include "ble_mesh_example_init.h"
|
||||
|
||||
#define TAG "EXAMPLE"
|
||||
|
||||
extern struct _led_state led_state[3];
|
||||
extern struct k_delayed_work send_self_prov_node_addr_timer;
|
||||
extern bt_mesh_atomic_t fast_prov_cli_flags;
|
||||
|
|
|
@ -23,6 +23,8 @@
|
|||
#include "ble_mesh_example_init.h"
|
||||
#include "ble_mesh_example_nvs.h"
|
||||
|
||||
#define TAG "EXAMPLE"
|
||||
|
||||
#define CID_ESP 0x02E5
|
||||
|
||||
static uint8_t dev_uuid[16] = { 0xdd, 0xdd };
|
||||
|
|
|
@ -24,6 +24,8 @@
|
|||
#include "board.h"
|
||||
#include "ble_mesh_example_init.h"
|
||||
|
||||
#define TAG "EXAMPLE"
|
||||
|
||||
#define CID_ESP 0x02E5
|
||||
|
||||
extern struct _led_state led_state[3];
|
||||
|
|
|
@ -21,6 +21,8 @@
|
|||
|
||||
#include "ble_mesh_example_init.h"
|
||||
|
||||
#define TAG "EXAMPLE"
|
||||
|
||||
#define LED_OFF 0x0
|
||||
#define LED_ON 0x1
|
||||
|
||||
|
|
|
@ -22,6 +22,8 @@
|
|||
#include "ble_mesh_example_init.h"
|
||||
#include "board.h"
|
||||
|
||||
#define TAG "EXAMPLE"
|
||||
|
||||
#define CID_ESP 0x02E5
|
||||
|
||||
#define PROV_OWN_ADDR 0x0001
|
||||
|
|
|
@ -23,6 +23,8 @@
|
|||
#include "ble_mesh_example_init.h"
|
||||
#include "board.h"
|
||||
|
||||
#define TAG "EXAMPLE"
|
||||
|
||||
#define CID_ESP 0x02E5
|
||||
|
||||
/* Sensor Property ID */
|
||||
|
|
|
@ -23,6 +23,8 @@
|
|||
#include "ble_mesh_example_nvs.h"
|
||||
#include "board.h"
|
||||
|
||||
#define TAG "EXAMPLE"
|
||||
|
||||
#define CID_ESP 0x02E5
|
||||
|
||||
#define PROV_OWN_ADDR 0x0001
|
||||
|
|
|
@ -24,6 +24,8 @@
|
|||
#include "board.h"
|
||||
#include "ble_mesh_example_init.h"
|
||||
|
||||
#define TAG "EXAMPLE"
|
||||
|
||||
#define CID_ESP 0x02E5
|
||||
|
||||
#define ESP_BLE_MESH_VND_MODEL_ID_CLIENT 0x0000
|
||||
|
|
|
@ -44,6 +44,8 @@
|
|||
#include "ble_mesh_fast_prov_server_model.h"
|
||||
#include "ble_mesh_example_init.h"
|
||||
|
||||
#define TAG "EXAMPLE"
|
||||
|
||||
extern struct _led_state led_state[3];
|
||||
extern struct k_delayed_work send_self_prov_node_addr_timer;
|
||||
extern bt_mesh_atomic_t fast_prov_cli_flags;
|
||||
|
|
|
@ -26,7 +26,8 @@
|
|||
#endif
|
||||
|
||||
#include "esp_ble_mesh_defs.h"
|
||||
#include "ble_mesh_example_init.h"
|
||||
|
||||
#define TAG "EXAMPLE_INIT"
|
||||
|
||||
#ifdef CONFIG_BT_BLUEDROID_ENABLED
|
||||
void ble_mesh_get_dev_uuid(uint8_t *dev_uuid)
|
||||
|
|
|
@ -11,8 +11,6 @@
|
|||
|
||||
#include "esp_err.h"
|
||||
|
||||
#define TAG "EXAMPLE"
|
||||
|
||||
void ble_mesh_get_dev_uuid(uint8_t *dev_uuid);
|
||||
|
||||
esp_err_t bluetooth_init(void);
|
||||
|
|
Ładowanie…
Reference in New Issue