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 -
Gateway without a radio
Development • 12 Jan 2025, 23:19 • OldSurferDude 14 Jan 2025, 22:07 -
Adding Listen only device to my system.
Development • 26 Feb 2025, 00:39 • dpcons 26 Feb 2025, 06:26 -
Counting Incoming and Outgoing Messages from a Gateway
Development • 10 Dec 2024, 21:57 • Trand 14 Dec 2024, 20:23 -
MQTT-Help me understand about the MQTT Gateway.
Development • 2 Mar 2025, 01:44 • dpcons 12 Mar 2025, 23:39 -
Sending offset to node
Development • 31 Jan 2025, 00:59 • bsl88k 4 Feb 2025, 12:14