Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Troubleshooting
  3. MySensors.h error when compiling: "No forward link or gateway feature activated"

MySensors.h error when compiling: "No forward link or gateway feature activated"

Scheduled Pinned Locked Moved Troubleshooting
12 Posts 5 Posters 5.0k Views 4 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • mfalkviddM mfalkvidd

    @chippey5 use the example provided with the library instead (open in the Arduino IDE). The examples at mysensors.org are for version 1.5 and you are using version 2.0 of the library.

    chippey5C Offline
    chippey5C Offline
    chippey5
    wrote on last edited by
    #3

    @mfalkvidd Thanks for your reply!

    I can't find the example including "Temp" nor DS18B20 in the example folder. Is it called something else? Thanks in advance

    mfalkviddM 1 Reply Last reply
    0
    • chippey5C chippey5

      @mfalkvidd Thanks for your reply!

      I can't find the example including "Temp" nor DS18B20 in the example folder. Is it called something else? Thanks in advance

      mfalkviddM Online
      mfalkviddM Online
      mfalkvidd
      Mod
      wrote on last edited by mfalkvidd
      #4

      @chippey5 oh, sorry about that. All examples that require external libraries (like the DallasTemperature library) now need to be downloaded separately. https://github.com/mysensors/MySensorsArduinoExamples/archive/master.zip

      1 Reply Last reply
      0
      • chippey5C Offline
        chippey5C Offline
        chippey5
        wrote on last edited by
        #5

        Splendid, that did the trick! I received the good ol' millisWaitForConversion error, but using the "DallasTemperature" library included in the Github link fixed the problem.

        Thanks a bunch!

        mfalkviddM ninkasiN 2 Replies Last reply
        1
        • chippey5C chippey5

          Splendid, that did the trick! I received the good ol' millisWaitForConversion error, but using the "DallasTemperature" library included in the Github link fixed the problem.

          Thanks a bunch!

          mfalkviddM Online
          mfalkviddM Online
          mfalkvidd
          Mod
          wrote on last edited by
          #6

          Great @chippey5 ! Thanks for reporting back.

          1 Reply Last reply
          0
          • chippey5C chippey5

            Splendid, that did the trick! I received the good ol' millisWaitForConversion error, but using the "DallasTemperature" library included in the Github link fixed the problem.

            Thanks a bunch!

            ninkasiN Offline
            ninkasiN Offline
            ninkasi
            wrote on last edited by
            #7

            Thanks for the suggestions @mfalkvidd, and @chippey5 - thanks for the update - I had exactly the same issue, and could not work out why I was getting that 'millisWait' error. All good now!

            1 Reply Last reply
            1
            • TheoLT Offline
              TheoLT Offline
              TheoL
              Contest Winner
              wrote on last edited by
              #8

              Just adding this for people who come here by looking for the error "No forward link or gateway feature activated". Since you've to configure MySensors 2.0 before you include the library. You'll need to configure the radio you're using.

              I got this message when I didn't. So just for people who queury for the same error message. Configure you're radio and other options before you include the library. @mfalkvidd do we have a topic with MySensors 2.0 troubleshooting? Might be handy to put this one. I came across this one when I was teaching my colleagues tonight. Not a biggy, put took me a while to sort it out.

              /** 
               * Set configuration options for MySensors 
               */
              #define MY_RADIO_NRF24  
              #define MY_DEBUG // uncomment when compiling for production
              
              /**
               * Include necessary libraries
               */
              #include <MySensors.h> // include MySensors library
              #include <SPI.h>       // include SPI needed for the MySensors Radio
              
              chippey5C 1 Reply Last reply
              0
              • TheoLT TheoL

                Just adding this for people who come here by looking for the error "No forward link or gateway feature activated". Since you've to configure MySensors 2.0 before you include the library. You'll need to configure the radio you're using.

                I got this message when I didn't. So just for people who queury for the same error message. Configure you're radio and other options before you include the library. @mfalkvidd do we have a topic with MySensors 2.0 troubleshooting? Might be handy to put this one. I came across this one when I was teaching my colleagues tonight. Not a biggy, put took me a while to sort it out.

                /** 
                 * Set configuration options for MySensors 
                 */
                #define MY_RADIO_NRF24  
                #define MY_DEBUG // uncomment when compiling for production
                
                /**
                 * Include necessary libraries
                 */
                #include <MySensors.h> // include MySensors library
                #include <SPI.h>       // include SPI needed for the MySensors Radio
                
                chippey5C Offline
                chippey5C Offline
                chippey5
                wrote on last edited by chippey5
                #9

                @TheoL Bump. That's exactly where I'm stuck at the moment. A link here to the future thread would be awesome for other users encountering the same issue

                1 Reply Last reply
                1
                • Nca78N Offline
                  Nca78N Offline
                  Nca78
                  Hardware Contributor
                  wrote on last edited by Nca78
                  #10

                  What about changing the message text also ? I guess the programmers get it quickly, but for the common folk this message is a bit cryptic ;)

                  What about changing "#error No forward link or gateway feature activated. This means nowhere to send messages! Pretty pointless."
                  to something like :
                  "#error No forward link or gateway feature activated. Please define radio type (ex: #define MY_RADIO_NRF24) or gateway type (ex: #define MY_GATEWAY_SERIAL) at the beginning of your sketch" ?

                  TheoLT 1 Reply Last reply
                  0
                  • Nca78N Nca78

                    What about changing the message text also ? I guess the programmers get it quickly, but for the common folk this message is a bit cryptic ;)

                    What about changing "#error No forward link or gateway feature activated. This means nowhere to send messages! Pretty pointless."
                    to something like :
                    "#error No forward link or gateway feature activated. Please define radio type (ex: #define MY_RADIO_NRF24) or gateway type (ex: #define MY_GATEWAY_SERIAL) at the beginning of your sketch" ?

                    TheoLT Offline
                    TheoLT Offline
                    TheoL
                    Contest Winner
                    wrote on last edited by
                    #11

                    @Nca78 Good suggestion. But I'm not sure if the reason for this error is always missing configuration. That's something @hek might know more about.

                    Nca78N 1 Reply Last reply
                    0
                    • TheoLT TheoL

                      @Nca78 Good suggestion. But I'm not sure if the reason for this error is always missing configuration. That's something @hek might know more about.

                      Nca78N Offline
                      Nca78N Offline
                      Nca78
                      Hardware Contributor
                      wrote on last edited by Nca78
                      #12

                      @TheoL it is.
                      When you define a radio, it defines MY_RADIO_FEATURE

                      // Enable radio "feature" if one of the radio types was enabled
                      #if defined(MY_RADIO_NRF24) || defined(MY_RADIO_RFM69) || defined(MY_RS485)
                      	#define MY_RADIO_FEATURE
                      #endif
                      

                      Same thing when you define a gateway :

                      #if defined(MY_GATEWAY_SERIAL) || defined(MY_GATEWAY_W5100) || defined(MY_GATEWAY_ENC28J60) || defined(MY_GATEWAY_ESP8266) || defined(MY_GATEWAY_MQTT_CLIENT)
                      	#define MY_GATEWAY_FEATURE
                      

                      Then at the end if MY_RADIO_FEATURE and MY_GATEWAY_FEATURE are not defined it generates this compilation error

                      	#if !defined(MY_GATEWAY_FEATURE) && !defined(MY_RADIO_FEATURE)
                      		#error No forward link or gateway feature activated. This means nowhere to send messages! Pretty pointless.
                      	#endif
                      
                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      24

                      Online

                      11.7k

                      Users

                      11.2k

                      Topics

                      113.1k

                      Posts


                      Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • MySensors
                      • OpenHardware.io
                      • Categories
                      • Recent
                      • Tags
                      • Popular