This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Recently,I am studying the z-stack 1.4.3-1.2.1.Now I want to add an UART application to my project.When I read the source of SerialApp.c.I don't understand the difference between the two functions:rxCB_Loopback( uint8 port, uint8 event ) and rxCB( uint8 port, uint8 event ).
In adddition,I have another question:I have create a SimpleApp application .Should I add another Task for UART,and I just need the UART to transmit the imformation.I really expect someone could tell me that.Thank you
Hi,
The method rxCB_Loopback is used to write out on UART the same data as was received on UART. This is just used for testing, and is enabled if you define SERIAL_APP_LOOPBACK.
The RxCB() is default method to use. This method will send the data that was received on UART out on the air.
Regards,
Bjørn
Yes, that is correct. The function rxCB() is called everytime something is received on the UART, and if you want to modify how to handle the received UART data you can do it in that function.
Bjørn