我在代码中将 DevInfo_AddService( );这个函数注释掉,但是在APP (lightbluetooh)中不能接收到串口发送过来的数据,只能从app发送数据到串口,请问这是什么问题??
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
删除服务的话可以使用 GGS_DelService
| /** | |
| * @brief Delete function for the GAP GATT Service. | |
| * | |
| * @param services - services to delete. This is a bit map and can | |
| * contain more than one service. | |
| * | |
| * @return SUCCESS: Service deleted successfully.<BR> | |
| * FAILURE: Service not found.<BR> | |
| */ | |
| extern bStatus_t GGS_DelService( uint32 services ); |
我试了一下,注释掉DevInfo_AddService();就可以了。请问您在注释之后有没有rebuild工程?您现在使用的是IOS还是安卓?
建议您 使用CC2540USB dongle并运行 BTool或者BLE device monitor来查看是否 Dev Info Service还存在。