error No forward link or gateway feature activated. This means nowhere to send messages! Pretty pointless.
-
I'm running the development branch and am getting the following when uploading a sketch:
Arduino: 1.6.4 (Mac OS X), Board: "Arduino Nano, ATmega328" In file included from motion.ino:30:0: /Users/..../Documents/Arduino3dev/libraries/MySensors/MySensor.h:285:4: error: #error No forward link or gateway feature activated. This means nowhere to send messages! Pretty pointless. #error No forward link or gateway feature activated. This means nowhere to send messages! Pretty pointless. ^ motion:38: error: 'MySensor' does not name a type motion.ino: In function 'void setup()': motion:44: error: 'gw' was not declared in this scope motion.ino: In function 'void loop()': motion:61: error: 'gw' was not declared in this scope 'MySensor' does not name a type
Where can I find some documentation on configuring sensors running the v2 beta release?
Thanks
-
You're missing:
// Enable and select radio type attached #define MY_RADIO_NRF24 //#define MY_RADIO_RFM69
(or serial gw, or rs485 or what ever)
BEFORE
#include <MySensor.h>
-
Post your sketch but by the looks on your errors can it be that you use code for 1.5 and 2.0 as library? In 1.5 you define gw.begin for example (motion:44: error: 'gw' was not declared in this scope) but thats removed in 2.0. You cant use the example sketches in the homepage for dev branch.
-
Ah yes... Thanks, folks!
I got my sketches mixed up and was using a 1.5 version.