I just have the similar problme, the data sent 100% to the waspmote but cannot found any file save to the sd card.
code using:
Code:
#define key_access "LIBELIUM"
#define id_mote "WASPMOTE00000001"
void setup()
{
// Write Authentication Key in EEPROM memory
for(int i=0;i<8;i++)
{
Utils.writeEEPROM(107+i,key_access[i]);
}
// Write Mote ID in EEPROM memory
for(int i=0;i<16;i++)
{
Utils.writeEEPROM(147+i,id_mote[i]);
}
// Inits the XBee ZigBee library
xbeeZB.init(ZIGBEE,FREQ2_4G,NORMAL);
// Powers XBee
xbeeZB.ON();
SD.ON();
//xbeeZB.setAPSencryption(XBEE_ON);
xbeeZB.checkNewProgram();
delay(2000);
}
void loop()
{
// Waiting the answer
if( XBee.available() )
{
xbeeZB.treatData();
// Keep inside this loop while a new program is being received
while( xbeeZB.programming_ON && !xbeeZB.checkOtapTimeout() )
{
if( XBee.available() )
{
xbeeZB.treatData();
}
}
}
// Blink LED1 while messages are not received
Utils.setLED(LED1,LED_ON);
delay(100);
Utils.setLED(LED1,LED_OFF);
delay(100);
delay(5000);
}
can any one help?