Hi all I am working on zigbee 1321x. I want to send two bytes at periodic time intervals from zigbee node to uart (for example every 1 seconds). I used this code in the interval timer callback.
anybody knows what is the problem? The first byte is received correctly (0x01), but the second byte does not appear stable, it changes continuosly and some instances takes the correct value (0x34).
I solved my probem by declaring testByte as a global variable outside the timer callback function (instead of local variable). It worked correctly But I didn't understand WHY?!!! Because it was being used only in that function not any other one.
Hi - perhaps the transmit routine buffers the array parameters (and not the contents) for later (interrupt) transmission, thus the data is lost when the test function exits (releasing the stack frame).