在MT2502通过BLE4.0传数据给手机端
时间:10-02
整理:3721RD
点击:
我在g_profile_decl_tbl[]中添加了PROFILE(TYPE_SERVICE 、TYPE_CHARACTERISTIC)。同时初始化了gatts_callback_struct g_heartr_cb = {
heartr_register_server_callback,
heartr_connection_callback,
NULL, NULL, NULL, NULL,NULL,
heartr_service_started_callback,
NULL, NULL,
heartr_request_read_callback,
heartr_request_write_callback,
NULL,
heartr_response_confirmation_callback,
heartr_read_txpower_callback,
NULL,
heartr_connection_ext_callback,};
只是在开机的时候跑了heartr_register_server_callback和heartr_service_started_callback断开和连接蓝牙都不跑任何回调函数。
请教各位知道什么原因吗?
heartr_register_server_callback,
heartr_connection_callback,
NULL, NULL, NULL, NULL,NULL,
heartr_service_started_callback,
NULL, NULL,
heartr_request_read_callback,
heartr_request_write_callback,
NULL,
heartr_response_confirmation_callback,
heartr_read_txpower_callback,
NULL,
heartr_connection_ext_callback,};
只是在开机的时候跑了heartr_register_server_callback和heartr_service_started_callback断开和连接蓝牙都不跑任何回调函数。
请教各位知道什么原因吗?
不懂,等待大神解决