|
本帖最后由 qiang4119 于 2020-12-2 15:16 编辑
NRF52832使用sdk17的nus_uart主机的例程,连接了128位的uuid,发送和接收的特征值- #define BLE_UUID_NUS_SERVICE 0x0001 /**< The UUID of the Nordic UART Service. */
- #define BLE_UUID_NUS_RX_CHARACTERISTIC 0x0002 /**< The UUID of the RX Characteristic. */
- #define BLE_UUID_NUS_TX_CHARACTERISTIC 0x0003 /**< The UUID of the TX Characteristic. */
复制代码 每次通过串口发送的时候都会报错误,错误代码却是0;- ret_val = ble_nus_c_string_send(&m_ble_nus_c, data_array, index);
- if ( (ret_val != NRF_ERROR_INVALID_STATE) && (ret_val != NRF_ERROR_RESOURCES) )
- {
- printf("Failed sending NUS message. Error 0x%x. ", ret_val);
- APP_ERROR_CHECK(ret_val);
- }
复制代码 这是什么原因,发送和接收的特征值错误吗?
|
|