2022-02-15 06:52:00 +13:00
|
|
|
#ifndef USE_NEW_ESP32_BLUETOOTH
|
|
|
|
|
|
2020-02-01 08:30:53 -08:00
|
|
|
#pragma once
|
|
|
|
|
|
2020-07-23 08:37:00 -07:00
|
|
|
#include "nimble/NimbleDefs.h"
|
2020-02-01 08:30:53 -08:00
|
|
|
|
2020-07-24 11:39:30 -07:00
|
|
|
void reinitUpdateService();
|
2020-07-21 11:16:14 -07:00
|
|
|
|
2020-07-23 08:37:00 -07:00
|
|
|
#ifdef __cplusplus
|
|
|
|
|
extern "C" {
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
int update_size_callback(uint16_t conn_handle, uint16_t attr_handle, struct ble_gatt_access_ctxt *ctxt, void *arg);
|
|
|
|
|
int update_data_callback(uint16_t conn_handle, uint16_t attr_handle, struct ble_gatt_access_ctxt *ctxt, void *arg);
|
|
|
|
|
int update_result_callback(uint16_t conn_handle, uint16_t attr_handle, struct ble_gatt_access_ctxt *ctxt, void *arg);
|
|
|
|
|
int update_crc32_callback(uint16_t conn_handle, uint16_t attr_handle, struct ble_gatt_access_ctxt *ctxt, void *arg);
|
2020-11-16 08:20:20 +08:00
|
|
|
int update_region_callback(uint16_t conn_handle, uint16_t attr_handle, struct ble_gatt_access_ctxt *ctxt, void *arg);
|
2020-07-23 08:37:00 -07:00
|
|
|
|
|
|
|
|
extern const struct ble_gatt_svc_def gatt_update_svcs[];
|
|
|
|
|
|
2020-11-16 08:20:20 +08:00
|
|
|
extern const ble_uuid128_t update_result_uuid, update_region_uuid;
|
2020-07-23 08:37:00 -07:00
|
|
|
|
|
|
|
|
extern int16_t updateResultHandle;
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
};
|
2022-02-15 06:52:00 +13:00
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#endif //#ifndef USE_NEW_ESP32_BLUETOOTH
|