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.
1 out of 4
Suggested Topics
-
Arduino Celebrates 10 years (Malmö/Sweden)
Announcements • 29 Mar 2014, 17:08 • hek 29 Mar 2014, 17:08 -
Radio waking up for no reason.
Development • 4 Jul 2020, 21:09 • Sasquatch 15 Jan 2025, 08:33 -
Home Assistant/MySensors quirks
Development • 20 days ago • OldSurferDude 20 days ago -
Saving last known good state, but not in EEPROM
Development • 30 Jan 2024, 18:46 • OldSurferDude 15 Jan 2025, 08:51 -
LAN8720A - will mysensors work with this module
Development • 13 Nov 2024, 17:06 • Marcin 15 Nov 2024, 10:59 -
Counting Incoming and Outgoing Messages from a Gateway
Development • 10 Dec 2024, 21:57 • Trand 14 Dec 2024, 20:23