OSAL_SNV_READ 和 OSAL_SNV_WRITE 返回SNV ID 是咋回事?
时间:10-02
整理:3721RD
点击:
status = osal_snv_read(BLE_INFO_SVN_ID, 2, (uint8 *)(&ble_info)); uart_pri_write_transport(&status, 1); status = osal_snv_write(BLE_INFO_SVN_ID, 2, (uint8 *)(&ble_info)); uart_pri_write_transport(&status, 1);
BLE_INFO_SVN_ID 定位为 0x80 status 就被赋值为0x80,
BLE_INFO_SVN_ID 定位为 0x82 status 就被赋值为0x82,
请问你使用的是什么工程,可以先用SimpleBLEPeripheral的例程试一下
另外,请确保OSAL_SNV=1
project zero
SimpleBLEPeripheral 试成功了