Hi!,
I'm trying to migrate my app with one Service and two Characteristics from SDK11 to the SDK12.
I'm using ble_app_uart as template but when I initialized my custom service the board (NRF52-DK) stop advertising and printf not works.
#include <stdint.h>
#include <string.h>
#include "nordic_common.h"
#include "nrf.h"
#include "ble.h"
#include "ble_advdata.h"
#include "ble_advertising.h"
#include "ble_conn_params.h"
#include "ble_gap.h"
#include "ble_gatt.h"
#include "ble_hci.h"
#include "ble_stack_handler_types.h"
#include "ble_types.h"
#include "pca10040.h"
#include "softdevice_handler.h"
#include "app_timer.h"
#include "app_button.h"
#include "ble_nus.h"
#include "app_uart.h"
#include "app_util_platform.h"
#include "bsp.h"
#include "bsp_btn_ble.h"
#include "device_manager.h" // Unresolved inclusion: "device_manager.h"
#include "my_custom_service.h"
static ble_nus_t m_nus; /**< Structure to identify the Nordic UART Service. */
static uint16_t m_conn_handle = BLE_CONN_HANDLE_INVALID; /**< Handle of the current connection. */
static ble_uuid_t m_adv_uuids[] = {{BLE_UUID_MY_SERVICE_UUID, BLE_UUID_TYPE_VENDOR_BEGIN}};
ble_os_t m_service;
If I added my service to the function services_init:
my_custom_service_init(&m_service);
I have this error:
Compiling file: main.c
../../../main.c:46:28: fatal error: device_manager.h: No such file or directory
#include "device_manager.h"
^
compilation terminated.
../../../../../../components/toolchain/gcc/Makefile.common:108: fallo en las instrucciones para el objetivo '_build/nrf52832_xxaa_main.c.o'
make: *** [_build/nrf52832_xxaa_main.c.o] Error 1
device_manager not exist in SDK12, How I can to fix this?
Best regards