在static void advertising_init(void)函数中将
/< LE Limited Discoverable Mode, BR/EDR not supported. */
init.advdata.flags = BLE_GAP_ADV_FLAGS_LE_ONLY_LIMITED_DISC_MODE;
改为
/< LE General Discoverable Mode, BR/EDR not supported. */
init.advdata.flags =BLE_GAP_ADV_FLAGS_LE_ONLY_GENERAL_DISC_MODE;