bleprph.h 829 B

123456789101112131415161718192021222324252627282930313233343536
  1. /*
  2. * SPDX-FileCopyrightText: 2015-2023 Espressif Systems (Shanghai) CO LTD
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. */
  6. #ifndef H_BLEPRPH_
  7. #define H_BLEPRPH_
  8. #include <stdbool.h>
  9. #include "nimble/ble.h"
  10. #include "modlog/modlog.h"
  11. #include "esp_peripheral.h"
  12. #ifdef __cplusplus
  13. extern "C" {
  14. #endif
  15. struct ble_hs_cfg;
  16. struct ble_gatt_register_ctxt;
  17. /** GATT server. */
  18. #define GATT_SVR_SVC_ALERT_UUID 0x1811
  19. #define GATT_SVR_CHR_SUP_NEW_ALERT_CAT_UUID 0x2A47
  20. #define GATT_SVR_CHR_NEW_ALERT 0x2A46
  21. #define GATT_SVR_CHR_SUP_UNR_ALERT_CAT_UUID 0x2A48
  22. #define GATT_SVR_CHR_UNR_ALERT_STAT_UUID 0x2A45
  23. #define GATT_SVR_CHR_ALERT_NOT_CTRL_PT 0x2A44
  24. void gatt_svr_register_cb(struct ble_gatt_register_ctxt *ctxt, void *arg);
  25. int gatt_svr_init(void);
  26. #ifdef __cplusplus
  27. }
  28. #endif
  29. #endif