I am developing a software where the ESP8266 module is communicating with a TI microcontroller using UART0 (each module sends and receives data from the other one).
I am using RTOS SDK v1.2 and the SoftAP mode. The UART code is based on the examples/driver/uart.c. I have added a write function to uart.c that is based on uart_tx_one_char and a read function.
Code: Select all
STATUS uart_write(uint8 uart, uint8 * msg,uint8 len)
{
STATUS ret = OK;
int i;
for (i=0;i<len;i++)
{
ret=uart_tx_one_char(uart, msg[i]);
if (ret !=OK)
return !OK;
}
return OK;
}
When connected to a Terminal (Putty for instance), I receive all the data I print using printf and my write function. Also,the TI Mic receives the debug messages generated by the ESP8266 library when a station connects.
However, I am expecting also the TI Mic to receive the data I write to the UART0 using my write function or printf, but I dont.
Do you have any idea of what I am doing wrong ?
PS: Receiving from the TI Mic works fine (the ESP8266 receives correctly all the data I am sending from TI Mic)