Serial Gateway not compiling without radio support



  • Hello guys,

    I got the latest updates from github development branch and I am trying to compile a gateway without a radio connected. However, I am getting an error message. Is there any bug or am I doing something wrong?

    My code:

    #define MY_DEBUG
    
    #define MY_GATEWAY_SERIAL
    
    #if F_CPU == 8000000L
    #define MY_BAUD_RATE 38400
    #endif
    
    #define MY_INCLUSION_MODE_FEATURE
    #define MY_INCLUSION_MODE_DURATION 60
    #define MY_DEFAULT_LED_BLINK_PERIOD 300
    
    #include <MySensors.h>
    
    #define CHILD_ID 1
    
    void setup() {
      // Setup locally attached sensors
    }
    
    void presentation() {
     sendSketchInfo("Relay", "1.0");
     present(CHILD_ID, S_LIGHT);
    
    }
    
    void loop() {
      // Send locally attached sensor data here
    }
    

    Output:

    /tmp/ccCgxwsm.ltrans0.ltrans.o: In function `main':
    ccCgxwsm.ltrans0.o:(.text.startup+0x236): undefined reference to `isTransportReady()'
    collect2: error: ld returned 1 exit status
    exit status 1
    Error compiling for board Arduino Duemilanove or Diecimila.
    

    Thanks.


  • Admin

    Something is probably wrong in your setup. Initially I thought it was because you compiled for "Duemilanove or Diecimila.". But it works to compile for that board, when I tested here.


  • Admin

    @hek @alfredocdmiranda Yes, this is bug - thanks for reporting.
    Fixed here: https://github.com/mysensors/MySensors/pull/682



  • Thanks @tekka . Sorry for my delay to answer, I have been busy.


Log in to reply
 

497
Online

6.9k
Users

7.7k
Topics

82.5k
Posts

Looks like your connection to MySensors Forum was lost, please wait while we try to reconnect.