#ifndef M_SERVICE_H__
#define M_SERVICE_H__

#include "ble_conn_params.h"
#include <string.h>
#include "nordic_common.h"
#include "ble_srv_common.h"

#define MY_UUID_SERVICE 0x1523
#define UUID_BATTERY_CHAR 0x1524


#define MY_UUID_BASE {0x23, 0xD1, 0xBC, 0xEA, 0x5F, 0x78, 0x23, 0x15, 0xDE, 0xEF, 0x12, 0x12, 0x00, 0x00, 0x00, 0x00}



typedef struct my_serv my_serv;
typedef struct my_serv
{
    uint16_t                    service_handle;
    ble_gatts_char_handles_t    battery_char_handles;
    ble_gatts_char_handles_t    short_push__char_handles;
		ble_gatts_char_handles_t    long_push__char_handles;
    uint8_t                     uuid_type;
    uint16_t                    conn_handle;
   
} my_serv;

static my_serv my_serv_struct;

uint32_t battery_char_add(my_serv * my_serv_struct);
uint32_t ble_serv_init(my_serv * my_serv_struct);

#endif

