ble_mesh: Rename ble mesh example main & init files
- Rename ble_mesh_demo_main.c to main.c - Rename ble_mesh_demo_init.* to ble_mesh_example_init.*
This commit is contained in:
parent
74056dea91
commit
59b313fdcf
23 changed files with 25 additions and 25 deletions
|
@ -1,4 +1,4 @@
|
||||||
set(COMPONENT_SRCS "ble_mesh_demo_main.c")
|
set(COMPONENT_SRCS "main.c")
|
||||||
|
|
||||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
||||||
|
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
#include "esp_fast_prov_common.h"
|
#include "esp_fast_prov_common.h"
|
||||||
#include "esp_fast_prov_operation.h"
|
#include "esp_fast_prov_operation.h"
|
||||||
#include "esp_fast_prov_client_model.h"
|
#include "esp_fast_prov_client_model.h"
|
||||||
#include "ble_mesh_demo_init.h"
|
#include "ble_mesh_example_init.h"
|
||||||
|
|
||||||
#define PROV_OWN_ADDR 0x0001
|
#define PROV_OWN_ADDR 0x0001
|
||||||
#define APP_KEY_OCTET 0x12
|
#define APP_KEY_OCTET 0x12
|
|
@ -1,4 +1,4 @@
|
||||||
set(COMPONENT_SRCS "ble_mesh_demo_main.c"
|
set(COMPONENT_SRCS "main.c"
|
||||||
"board.c")
|
"board.c")
|
||||||
|
|
||||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
||||||
|
|
|
@ -30,7 +30,7 @@
|
||||||
#include "esp_fast_prov_operation.h"
|
#include "esp_fast_prov_operation.h"
|
||||||
#include "esp_fast_prov_client_model.h"
|
#include "esp_fast_prov_client_model.h"
|
||||||
#include "esp_fast_prov_server_model.h"
|
#include "esp_fast_prov_server_model.h"
|
||||||
#include "ble_mesh_demo_init.h"
|
#include "ble_mesh_example_init.h"
|
||||||
|
|
||||||
extern struct _led_state led_state[3];
|
extern struct _led_state led_state[3];
|
||||||
extern struct k_delayed_work send_self_prov_node_addr_timer;
|
extern struct k_delayed_work send_self_prov_node_addr_timer;
|
|
@ -1,4 +1,4 @@
|
||||||
set(COMPONENT_SRCS "ble_mesh_demo_main.c"
|
set(COMPONENT_SRCS "main.c"
|
||||||
"board.c")
|
"board.c")
|
||||||
|
|
||||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
#include "esp_ble_mesh_generic_model_api.h"
|
#include "esp_ble_mesh_generic_model_api.h"
|
||||||
|
|
||||||
#include "board.h"
|
#include "board.h"
|
||||||
#include "ble_mesh_demo_init.h"
|
#include "ble_mesh_example_init.h"
|
||||||
|
|
||||||
#define CID_ESP 0x02E5
|
#define CID_ESP 0x02E5
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
set(COMPONENT_SRCS "ble_mesh_demo_main.c"
|
set(COMPONENT_SRCS "main.c"
|
||||||
"board.c")
|
"board.c")
|
||||||
|
|
||||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
#include "esp_ble_mesh_local_data_operation_api.h"
|
#include "esp_ble_mesh_local_data_operation_api.h"
|
||||||
|
|
||||||
#include "board.h"
|
#include "board.h"
|
||||||
#include "ble_mesh_demo_init.h"
|
#include "ble_mesh_example_init.h"
|
||||||
|
|
||||||
#define CID_ESP 0x02E5
|
#define CID_ESP 0x02E5
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
set(COMPONENT_SRCS "ble_mesh_demo_main.c")
|
set(COMPONENT_SRCS "main.c")
|
||||||
|
|
||||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
||||||
|
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
#include "esp_ble_mesh_config_model_api.h"
|
#include "esp_ble_mesh_config_model_api.h"
|
||||||
#include "esp_ble_mesh_generic_model_api.h"
|
#include "esp_ble_mesh_generic_model_api.h"
|
||||||
|
|
||||||
#include "ble_mesh_demo_init.h"
|
#include "ble_mesh_example_init.h"
|
||||||
|
|
||||||
#define LED_OFF 0x0
|
#define LED_OFF 0x0
|
||||||
#define LED_ON 0x1
|
#define LED_ON 0x1
|
|
@ -1,4 +1,4 @@
|
||||||
set(srcs "ble_mesh_demo_main.c"
|
set(srcs "main.c"
|
||||||
"board.c")
|
"board.c")
|
||||||
|
|
||||||
idf_component_register(SRCS "${srcs}"
|
idf_component_register(SRCS "${srcs}"
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
#include "esp_ble_mesh_config_model_api.h"
|
#include "esp_ble_mesh_config_model_api.h"
|
||||||
#include "esp_ble_mesh_sensor_model_api.h"
|
#include "esp_ble_mesh_sensor_model_api.h"
|
||||||
|
|
||||||
#include "ble_mesh_demo_init.h"
|
#include "ble_mesh_example_init.h"
|
||||||
#include "board.h"
|
#include "board.h"
|
||||||
|
|
||||||
#define CID_ESP 0x02E5
|
#define CID_ESP 0x02E5
|
|
@ -1,4 +1,4 @@
|
||||||
set(srcs "ble_mesh_demo_main.c"
|
set(srcs "main.c"
|
||||||
"board.c")
|
"board.c")
|
||||||
|
|
||||||
idf_component_register(SRCS "${srcs}"
|
idf_component_register(SRCS "${srcs}"
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
#include "esp_ble_mesh_config_model_api.h"
|
#include "esp_ble_mesh_config_model_api.h"
|
||||||
#include "esp_ble_mesh_sensor_model_api.h"
|
#include "esp_ble_mesh_sensor_model_api.h"
|
||||||
|
|
||||||
#include "ble_mesh_demo_init.h"
|
#include "ble_mesh_example_init.h"
|
||||||
#include "board.h"
|
#include "board.h"
|
||||||
|
|
||||||
#define CID_ESP 0x02E5
|
#define CID_ESP 0x02E5
|
|
@ -1,4 +1,4 @@
|
||||||
set(COMPONENT_SRCS "ble_mesh_demo_main.c"
|
set(COMPONENT_SRCS "main.c"
|
||||||
"board.c")
|
"board.c")
|
||||||
|
|
||||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
#include "esp_ble_mesh_networking_api.h"
|
#include "esp_ble_mesh_networking_api.h"
|
||||||
#include "esp_ble_mesh_config_model_api.h"
|
#include "esp_ble_mesh_config_model_api.h"
|
||||||
|
|
||||||
#include "ble_mesh_demo_init.h"
|
#include "ble_mesh_example_init.h"
|
||||||
#include "board.h"
|
#include "board.h"
|
||||||
|
|
||||||
#define CID_ESP 0x02E5
|
#define CID_ESP 0x02E5
|
|
@ -1,4 +1,4 @@
|
||||||
set(COMPONENT_SRCS "ble_mesh_demo_main.c"
|
set(COMPONENT_SRCS "main.c"
|
||||||
"board.c")
|
"board.c")
|
||||||
|
|
||||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
#include "esp_ble_mesh_local_data_operation_api.h"
|
#include "esp_ble_mesh_local_data_operation_api.h"
|
||||||
|
|
||||||
#include "board.h"
|
#include "board.h"
|
||||||
#include "ble_mesh_demo_init.h"
|
#include "ble_mesh_example_init.h"
|
||||||
|
|
||||||
#define CID_ESP 0x02E5
|
#define CID_ESP 0x02E5
|
||||||
#define CID_NVAL 0xFFFF
|
#define CID_NVAL 0xFFFF
|
|
@ -1,4 +1,4 @@
|
||||||
set(COMPONENT_SRCS "ble_mesh_demo_main.c"
|
set(COMPONENT_SRCS "main.c"
|
||||||
"board.c")
|
"board.c")
|
||||||
|
|
||||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
||||||
|
|
|
@ -42,7 +42,7 @@
|
||||||
#include "esp_fast_prov_operation.h"
|
#include "esp_fast_prov_operation.h"
|
||||||
#include "esp_fast_prov_client_model.h"
|
#include "esp_fast_prov_client_model.h"
|
||||||
#include "esp_fast_prov_server_model.h"
|
#include "esp_fast_prov_server_model.h"
|
||||||
#include "ble_mesh_demo_init.h"
|
#include "ble_mesh_example_init.h"
|
||||||
|
|
||||||
extern struct _led_state led_state[3];
|
extern struct _led_state led_state[3];
|
||||||
extern struct k_delayed_work send_self_prov_node_addr_timer;
|
extern struct k_delayed_work send_self_prov_node_addr_timer;
|
|
@ -1,3 +1,3 @@
|
||||||
idf_component_register(SRCS "ble_mesh_demo_init.c"
|
idf_component_register(SRCS "ble_mesh_example_init.c"
|
||||||
INCLUDE_DIRS "."
|
INCLUDE_DIRS "."
|
||||||
REQUIRES bt)
|
REQUIRES bt)
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "esp_ble_mesh_defs.h"
|
#include "esp_ble_mesh_defs.h"
|
||||||
#include "ble_mesh_demo_init.h"
|
#include "ble_mesh_example_init.h"
|
||||||
|
|
||||||
#ifdef CONFIG_BT_BLUEDROID_ENABLED
|
#ifdef CONFIG_BT_BLUEDROID_ENABLED
|
||||||
void ble_mesh_get_dev_uuid(uint8_t *dev_uuid)
|
void ble_mesh_get_dev_uuid(uint8_t *dev_uuid)
|
|
@ -6,8 +6,8 @@
|
||||||
CONDITIONS OF ANY KIND, either express or implied.
|
CONDITIONS OF ANY KIND, either express or implied.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef _BLE_MESH_DEMO_INIT_H_
|
#ifndef _BLE_MESH_EXAMPLE_INIT_H_
|
||||||
#define _BLE_MESH_DEMO_INIT_H_
|
#define _BLE_MESH_EXAMPLE_INIT_H_
|
||||||
|
|
||||||
#include "esp_err.h"
|
#include "esp_err.h"
|
||||||
|
|
||||||
|
@ -17,4 +17,4 @@ void ble_mesh_get_dev_uuid(uint8_t *dev_uuid);
|
||||||
|
|
||||||
esp_err_t bluetooth_init(void);
|
esp_err_t bluetooth_init(void);
|
||||||
|
|
||||||
#endif /* _BLE_MESH_DEMO_INIT_H_ */
|
#endif /* _BLE_MESH_EXAMPLE_INIT_H_ */
|
Loading…
Reference in a new issue