I have received my 2 x Zigduino R2 and wanted to experiment with the ZMAC but i am not able to get it to work am facing the below mentioned issue, any help would be really appreciated.
——————————————————————————————
Arduino IDE is 1.0.1 + Zigduino Git Merged
Using Zigduino R2
I have followed the steps carefully listed on the ZMAC GitPage :
Step 12 was to verify the “Star_NoBeacon” example in the Arduino IDE but i am getting an error
————————————————————————————————
‘FILE’ has not been declared
In file included from Star_Nobeacon.cpp:2:
printf.h:20: error: ‘FILE’ has not been declared
/printf.h: In function ‘int serial_putc(char, int*)’:
printf.h:22: error: ‘Serial’ was not declared in this scope
/printf.h: In function ‘void printf_begin()’:
printf.h:29: error: ‘fdevopen’ was not declared in this scope
————————————————————————————————
this is the block of code from printf.h is there something wrong here ????
int serial_putc( char c, FILE* )
{
Serial.write( c );
return c;
}
————————————————————————————————
And i am not able to test the code as all the examples fail with the same error on the Arduino IDE.
My Arduino IDE is 1.0.1 and i have also merged the Zigduino code with the IDE , i have also tried the default blink example it works fine.
I got the Zigduino Radio library to work very easily and was able to Tx and Rx from both serial terminals.
I tried Arduino IDE 0.2.2 + Zigduino GIT but even the basic blink sketch would not work