|
@@ -18,6 +18,10 @@ static void ble_dfu_evt_handler(ble_dfu_buttonless_evt_type_t event);
|
|
|
#include "my_ble_uarts.h"
|
|
|
#endif
|
|
|
|
|
|
+#if WECHAT_SERVER_ENABLED==1
|
|
|
+#include "ble_wechat.h" /**< ******************** WECHAT instance. ********************/
|
|
|
+#endif
|
|
|
+
|
|
|
BLE_ADVERTISING_DEF(m_advertising); /**< ************** Advertising module instance. **************/
|
|
|
|
|
|
int8_t tx_power_level=NRF_BLE_ADVDATA_NOREG_TX_POWER; /**< *********************** ble发射功率 **********************/
|
|
@@ -362,13 +366,11 @@ uint32_t advertising_init(void)
|
|
|
manuf_data.data.size = sizeof(ble_adv_manuf_data);
|
|
|
//指向制造商自定义的数据
|
|
|
ble_adv_manuf_data adv_manuf_data={
|
|
|
+ .head = 0xFF,
|
|
|
.m_addr={0},
|
|
|
.product_type=NRF_DEV_PRODUCT,
|
|
|
.dev_version=(NRF_BLE_ADV_DEV_VERSION_MAIN<<4)| NRF_BLE_ADV_DEV_VERSION_SLAVE,
|
|
|
.dev_reg_stat=(NRF_DEV_TYPE<<4) | dev_reg_stat,
|
|
|
-#if NRF_BLE_ADVDATA_INCLUDE_BAT == 1
|
|
|
- .bat_percent=bat_percent,
|
|
|
-#endif
|
|
|
};
|
|
|
//#ifdef user_config_param
|
|
|
memcpy(adv_manuf_data.m_addr,m_addl_adv_manuf_data,BLE_GAP_ADDR_LEN);
|