okay , i am using it communicate with arduino same as the wiki page of Rfbee .
here is the code , hope it can help you.
int button = 3;
String str;
void setup()
{
Serial.begin(9600);
pinMode(button,INPUT);
}
void loop()
{
// receive the Rfbee date and save to String str
if(Serial.available() > 0){
while(Serial.available()){
str += char(Serial.read());
}
}
// send "Hello World" if the button is pressed down
if(button){
delay(50);
if(button){
Serial.print("Hello World");
}
}
}
By the way , before send the data with the code you write , you can try to directly open Uart monitor and test if two Rfbee can communicate by each other .
Hi ,
Sorry that i miss something , you are using 868MHZ but not 915MHZ ,so you need to change the firmware first .
You can download the firmware by click here and open the sketch and change the following code at “Config.c”
EEPROM.write(CONFIG_CONFIG_ID,0x00);
change to
EEPROM.write(CONFIG_CONFIG_ID,0x03);
There is 6 kind of configs you can choose that you can know it from the datasheet of RFbee .