Other Parts Discussed in Thread: CC2530
Hi,
i am Using two ZED and one ZC. One ZED is sending a Sensor Data to ZC and ZC will send to PC, From the PC, data will send as a string to ZC, if Sensor goes Abnormal. Then ZC should Receive that and send to other ZED to on and off the device. I have Discussed my project in different thread, But This question is enhancement of that, so opened new thread. So my questions are
1) initUart(halUARTCBack_t pf); i should call from zclSampleLight_Init, what is pf?
2)i need register the callback uartRxCB Function in zclSampleLight_CmdCallbacks or directly i can write a fuction?
3)While sending data through UART HalUARTWrite ( uint8 port, uint8 *pBuffer, uint16 length );. In the Buffer we need to follow any serialization format or we can directly pass raw data . For example i want to send number 20, can i send like this pBuffer = (uint8) 20;?
4)Same thing for Receving also, HalUARTRead ( uint8 port, uint8 *pBuffer, uint16 length ); after calling this function data will store in the pBuffer. Directly can i read a data, for example, PC sends a data as "ON". can i read as uart_data = pBuffer.