NanodeRF Compile Issues on Arduino 1.6.6 & NanodeRF_multinode

Hi All

It's been a while, but I've decided to resurrect my monitoring system with a NanodeRF (multiple Pi failures)

It's not arrived in the post yet, but in preparation I've been trying and I've struggled to compile the sketch.  It's been a while since I set my previous system up, and I'm wondering if the updated libraries/new Arduino version has confused things (none of my previously working emonTX sketches compile either).

Sticking with the Nanode RF issues:

I have an account on emoncms.org - do I need my username in the website[] or a subdirectory in basedir[]?

I get a multiple complie Errors:

// 1) Set this to the domain name of your hosted emoncms - leave blank if posting to IP address
char website[] PROGMEM = "emoncms.org";

This returns the error: variable 'website' must be const in order to be put into read-only section by means of '__attribute__((progmem))'

IF I change the code to const char website[] PROGMEM = "emoncms.org"; it compiles ok - but will it work?

and

NanodeRF_multinode:236: error: 'void my_callback(byte, word, word)' was declared 'extern' and later 'static' [-fpermissive]

 static void my_callback (byte status, word off, word len) {

and

NanodeRF_multinode:110: error: previous declaration of 'void my_callback(byte, word, word)' [-fpermissive]

   //Nanode RF LED indictor  setup - green flashing means good - red on for a long time means bad!

 

I hope it's something simple!

Thanks

Robert Wall's picture

Re: NanodeRF Compile Issues on Arduino 1.6.6 & NanodeRF_multinode

I seem to remember reading somewhere that later Arduino IDEs have made some changes to the way the 1.6 compiler works and where it puts things, and I've got a vague recollection that it was to do with variable declarations etc. Probably a search of the Arduino forums will shed some light on it. Failing that, you could always revert to Arduino 1.0.x (1.0.5 is still the one in the Ubuntu repo, which is the version I'm using!)

"I have an account on emoncms.org - do I need my username in the website[] or a subdirectory in basedir[]?"
You don't need your username at all. Your APIKey is the equivalent of username + password (so don't publish it on the forum!)

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.