摘要: 一.动态广播 1.动态修改广播包内容和扫描应答包内容 GAP_UpdateAdvertisingData( Peripheral_TaskID,TRUE ,sizeof( advertData ),advertData ); //更新广播包内容 GAP_UpdateAdvertisingData( 阅读全文
posted @ 2022-09-15 15:22 WCH蓝牙应用分享 阅读(2443) 评论(0) 推荐(0)
摘要: 在使用CH57x/CH58x从机时,一般都是由主机去使能通知,使能通知后,主机才可以收到从机的notify。 1.那么从机想要自己使能notify该怎么做呢? 可以添加这样一个函数: uint8 enable_notify(uint16 connection_handle,uint8 enable) 阅读全文
posted @ 2022-09-15 14:52 WCH蓝牙应用分享 阅读(2450) 评论(1) 推荐(0)