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. Error Compiling ethGateway

Error Compiling ethGateway

Scheduled Pinned Locked Moved Troubleshooting
2 Posts 1 Posters 764 Views 1 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.
  • 8art-5imson8 Offline
    8art-5imson8 Offline
    8art-5imson
    wrote on last edited by
    #1

    i am trying to compile the ethernet gateway and when i first started was getting loads of "directory dosent exist" errors i fixed this by moving the mysensors library. following the IDE install instructions on the site the IDE installs to C:\Program Files (x86)\Arduino\arduino.exe (the Default). but the sketches folder where i put the my sensors library is in C:\Users\Chris\Documents\Arduino\libraries i have copied the libraries folder to both locations and have got past all the doesnt exist errors. but now i get the following compile error:
    C:\Users\Chris\Documents\Arduino\ethGateway\ethGateway.ino: In function 'void output(const char*, ...)':
    ethGateway:135: error: 'serialBuffer' was not declared in this scope
    vsnprintf_P(serialBuffer, MAX_SEND_LENGTH, fmt, args);
    exit status 1
    'serialBuffer' was not declared in this scope

    i have removed and re installed the arduino IDE and mysensors library several times but i get the same error every time ! i think it could be somthing to do with the directories been in the wrong place and duplicated all over. could someone please clarify the best place to put arduino IDE, The Libraries and the Sketches folder.
    or point me in right direction to get rid of this error. i have edited the config file to enable soft SPI.
    many thanks
    Chris

    8art-5imson8 1 Reply Last reply
    0
    • 8art-5imson8 8art-5imson

      i am trying to compile the ethernet gateway and when i first started was getting loads of "directory dosent exist" errors i fixed this by moving the mysensors library. following the IDE install instructions on the site the IDE installs to C:\Program Files (x86)\Arduino\arduino.exe (the Default). but the sketches folder where i put the my sensors library is in C:\Users\Chris\Documents\Arduino\libraries i have copied the libraries folder to both locations and have got past all the doesnt exist errors. but now i get the following compile error:
      C:\Users\Chris\Documents\Arduino\ethGateway\ethGateway.ino: In function 'void output(const char*, ...)':
      ethGateway:135: error: 'serialBuffer' was not declared in this scope
      vsnprintf_P(serialBuffer, MAX_SEND_LENGTH, fmt, args);
      exit status 1
      'serialBuffer' was not declared in this scope

      i have removed and re installed the arduino IDE and mysensors library several times but i get the same error every time ! i think it could be somthing to do with the directories been in the wrong place and duplicated all over. could someone please clarify the best place to put arduino IDE, The Libraries and the Sketches folder.
      or point me in right direction to get rid of this error. i have edited the config file to enable soft SPI.
      many thanks
      Chris

      8art-5imson8 Offline
      8art-5imson8 Offline
      8art-5imson
      wrote on last edited by mfalkvidd
      #2

      @8art-5imson said:

      i am trying to compile the ethernet gateway and when i first started was getting loads of "directory dosent exist" errors i fixed this by moving the mysensors library. following the IDE install instructions on the site the IDE installs to C:\Program Files (x86)\Arduino\arduino.exe (the Default). but the sketches folder where i put the my sensors library is in C:\Users\Chris\Documents\Arduino\libraries i have copied the libraries folder to both locations and have got past all the doesnt exist errors. but now i get the following compile error:
      C:\Users\Chris\Documents\Arduino\ethGateway\ethGateway.ino: In function 'void output(const char*, ...)':
      ethGateway:135: error: 'serialBuffer' was not declared in this scope
      vsnprintf_P(serialBuffer, MAX_SEND_LENGTH, fmt, args);
      exit status 1
      'serialBuffer' was not declared in this scope

      i have removed and re installed the arduino IDE and mysensors library several times but i get the same error every time ! i think it could be somthing to do with the directories been in the wrong place and duplicated all over. could someone please clarify the best place to put arduino IDE, The Libraries and the Sketches folder.
      or point me in right direction to get rid of this error. i have edited the config file to enable soft SPI.
      many thanks
      Chris

      Just figured it out .The gatewayutil.h file i was using was wrong, i copied and pasted the version off the codebender sketch (which is completely different to the one i had, dont know where it came from ??) but noticed line 25.....char serialBuffer[MAX_SEND_LENGTH];
      sorted

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      22

      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