can't read gyro datas from RFBEE

Hi all, must be a stupid mistake but I can’t read analog datas from rfbee.

I try to upload the code from jklu: viewtopic.php?f=10&t=909&hilit=transmitdata
void loop()
{
int val = analogRead(analogPin); // read the input pin
Serial.println(val); // debug value
message[1]= (byte) val & 0x00FF;
message[0]= (byte) val >> 8;
transmitData(message,3,1,2);
}

But I can’t upload the other code on the receiver rfbee (“rxdata is not declared is this scope” and when I declare it as byte, it tells me about conflict)

here’s the output from serial console from the receiver rfbee with jklu code on the transmitter, and the rfbeewireless code from tronixstuff.wordpress.com/2012/0 … dio-rfbee/ on the receiver
with ATOF3 wich is the most readable format for me:
3,1,2, i, -87,12
3,1,2,i,-88,22
3,1,2,i,-88,9
3,1,2,i,-88,18
3,1,2,i,-88,19
3,1,2,i,-88,9
error: RX buffer overflow
3,1,2,i,-90,18
3,1,2,i,-89,9
3,1,2,i,-88,26
3,1,2,i,-89,20
3,1,2,i,-89,13
3,1,2,i,-88,15
3,1,2,i,-88,14
error: RX buffer overflow
3,1,2,i,-89,17
3,1,2,i,-89,19
3,1,2,i,-89,16
3,1,2,i,-88,15
3,1,2,i,-88,11
3,1,2,i,-88,16
3,1,2,i,-88,19
error: RX buffer overflow
as you can see, every 7 times there is a RX buffer overflow.

how can I get the i value ??
any help would be appreciated !
thanks
g.

Hi,

Sorry , i do not really understand your question. What you want to do is read gyro data and send it to another RFBEE, right ? If so , there is a new firmware for RFBEE ,this code will be more easier to modify, maybe you could refer to it and the demo code of gyro sensor. http://www.seeedstudio.com/wiki/RFbee_V1.1_-_Wireless_Arduino_compatible_node#Resources

Hope it will help you .

Deray