Hi,
I have already working code in nordic sdk 13.1 with eclipse. But we are move to latest sdk v 15.0 for example of central and peripheral. Now every thing i have modified related to sensor and data sending using nus_c is working fine.
But in central device i have merged uart example for interfaced external wifi module work on AT command set.
This already i have done in old sdk v 13.1 and in that able to sent data to server.
I want to do same in new sdk 15.0, not get any error but uart_event_handle code is not work. This is my uart event code for reading and sending AT command to wifi module:
void uart_event_handle(app_uart_evt_t * p_event) { static uint8_t ch; uint32_t err_code; switch (p_event->evt_type) { case APP_UART_DATA_READY: err_code = app_uart_get(&ch); if (err_code == NRF_SUCCESS) { if(flag2== -2 && ch =='>') { flag2 = 1; START_SENDING = true; } if(flag2 == -5 && ch =='>') { flag2 = -3; START_SENDING = true; sendToWiFi(); } if(ch=='\n') { data[dataCounter++] = '\0'; NRF_LOG_INFO("RESP: %s",(uint32_t)data); dataCounter = 0; }else if(ch !='\r') { data[dataCounter++] = ch; } }else if(err_code == NRF_ERROR_NOT_FOUND) { break; } break; case APP_UART_TX_EMPTY: sendToWiFi(); break; case APP_UART_COMMUNICATION_ERROR: NRF_LOG_INFO("APP_UART_COMMUNICATION_ERROR"); break; default: break; } }
console log in SES is
Why first charter in response in overwritten by next response see in connect and no ip.
As per new sdk 15.0 is it any configuration for NRF_LOG_INFO in sdk_config.h file, if yes please let me know. I thing this logging issue because same uart event logic is working fine in old sdk.
Please let me know..!!
Thanks,,,