I am using the nRF52 SDK : nRF5_SDK_17.0.2_d674dde
- When data are all ASCII-Hex (0x30) the code working fine
- Now I try to optimize code by changing to binary data.
- Below code fails when the data content is "0x00" - NRF_ERROR_NO_MEM
- Is there some configuration need to do to support binary data send ??
void SendUartMessage(uint8_t *buf, uint8_t len)
{
ret_code_t ret_val;
SetSendUartBusy(true);for (uint32_t i=0; i<len; i++)
{
ret_val = app_uart_put(buf[i]);
if (ret_val != NRF_SUCCESS)
{
NRF_LOG_ERROR("app_uart_put() failed at : %d = 0x%02x", i, buf[i]);
APP_ERROR_CHECK(ret_val);
SetSendUartBusy(false);
return;
}
}
}