#ifndef BT_CUSTOM_H_
#define BT_CUSTOM_H_

#ifdef __cplusplus
extern "C" {
#endif

#include <zephyr/types.h>

/* UUID du service : 00001523-1212-efde-1523-785feabcd123 */
#define BT_UUID_CUSTOM_SERVICE_VAL \
	BT_UUID_128_ENCODE(0x00001523, 0x1212, 0xefde, 0x1523, 0x785feabcd123)

#define BT_UUID_CUSTOM_WRITE_VAL \
	BT_UUID_128_ENCODE(0x00001527, 0x1212, 0xefde, 0x1523, 0x785feabcd123)

#define BT_UUID_CUSTOM_CONFIRM_VAL \
BT_UUID_128_ENCODE(0x00001528, 0x1212, 0xefde, 0x1523, 0x785feabcd123)

#define BT_UUID_CUSTOM_SERVICE BT_UUID_DECLARE_128(BT_UUID_CUSTOM_SERVICE_VAL)
#define BT_UUID_CUSTOM_WRITE   BT_UUID_DECLARE_128(BT_UUID_CUSTOM_WRITE_VAL)
#define BT_UUID_CUSTOM_CONFIRM  BT_UUID_DECLARE_128(BT_UUID_CUSTOM_CONFIRM_VAL)

/** @brief Send the sensor value as notification.
 *
 * This function sends an uint32_t  value, typically the value
 * of a simulated sensor to all connected peers.
 *
 * @param[in] sensor_value The value of the simulated sensor.
 *
 * @retval 0 If the operation was successful.
 *           Otherwise, a (negative) error code is returned.
 */
int my_custom_send_sensor_notify(uint32_t sensor_value);

int my_custom_init(void);

extern const struct bt_gatt_attr *confirm_attr;

#ifdef __cplusplus
}
#endif

/**
 * @}
 */

#endif /* BT_CUSTOM_H_ */
