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. Problems compiling the MQTT Gateway sketch - Please help

Problems compiling the MQTT Gateway sketch - Please help

Scheduled Pinned Locked Moved Troubleshooting
6 Posts 3 Posters 2.1k 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.
  • B Offline
    B Offline
    brad.s
    wrote on last edited by brad.s
    #1

    Hi all,

    First off, I am new to the world of Arduino and am excited to get involved. I am working on compiling the MQTT Gateway sketch and am running into a few problems. I have gone through and defined the TCP_PORT, IP_ADDRESS, and the MAC. I have also removed the '//' before the #define SOFTSPI in the RF24_config.h file. The setup I currently am using is an Arduino UNO with an W5100 Ethernet Shield on top. The radio was wired up following the instructions on the page about how to build the MQTT gateway. I am using the Arduino IDE software 1.0.6. I have included the necessary files. Also I am using MySensors library 1.4.
    Now that I have explained the setup I have, heres the issues i'm running into.

    When I verify the code prior to uploading the sketch, I get the following errors.
    MySensors/utility/RF24.h:51: error: ISO C++ forbids declaration of 'SoftSPI' with no type.
    MySensors/utility/RF24.h:51: error: expected ';' before '<'.

    Line 51 of RF24.h reads:
    SoftSPI<SOFT_SPI_MISO_PIN, SOFT_SPI_MOSI_PIN, SOFT_SPI_SCK_PIN, SPI_MODE> spi;

    I have not changed anything in RF24.h. I downloaded the files directly from the download link on mysensors.org.

    Any help would be greatly appreciated. Thanks.

    1 Reply Last reply
    0
    • H Offline
      H Offline
      Hacker007
      wrote on last edited by
      #2

      Hi.
      I have tried solution for SOFTSPI on my IBOARD, but the code only compiles if I use DigitalIO library in my main INO file too (I tried MQTTGateway ethernet on Iboard). I have the latest librarys.
      So try adding #include <DigitalIO.h> in your main INO code if you want SOFTSPI, or disable SOFTSPI anywhere it is declared...
      After uploading I get "check wires". So I am still finding solution for the further problem... :-)

      B 1 Reply Last reply
      0
      • hekH Offline
        hekH Offline
        hek
        Admin
        wrote on last edited by
        #3

        Are you sure you got the +variant of the NRF-radio? A couple of forum members has received the non + when ordering from the ebay link provided in "shop".

        Please check your chips. http://forum.mysensors.org/topic/728/radio-setup-give-check-wires

        B 1 Reply Last reply
        0
        • H Offline
          H Offline
          Hacker007
          wrote on last edited by
          #4

          Hi. Tnx for the reply. Wires are OK. I use IBOARD. See my answer in other topic:
          http://forum.mysensors.org/topic/728/radio-setup-give-check-wires/37
          I got non + variant via Alice in "shop".

          1 Reply Last reply
          0
          • hekH hek

            Are you sure you got the +variant of the NRF-radio? A couple of forum members has received the non + when ordering from the ebay link provided in "shop".

            Please check your chips. http://forum.mysensors.org/topic/728/radio-setup-give-check-wires

            B Offline
            B Offline
            brad.s
            wrote on last edited by
            #5

            @hek I just checked the version of the chips and sure enough they are NOT the '+' variant. What is the difference between the two variants? I did purchase the set of 10pcs from the link in the MySensors store. I guess my next move is to contact the seller "Alice". Thanks for pointing me to the link.

            1 Reply Last reply
            0
            • H Hacker007

              Hi.
              I have tried solution for SOFTSPI on my IBOARD, but the code only compiles if I use DigitalIO library in my main INO file too (I tried MQTTGateway ethernet on Iboard). I have the latest librarys.
              So try adding #include <DigitalIO.h> in your main INO code if you want SOFTSPI, or disable SOFTSPI anywhere it is declared...
              After uploading I get "check wires". So I am still finding solution for the further problem... :-)

              B Offline
              B Offline
              brad.s
              wrote on last edited by
              #6

              @Hacker007 I tried adding #include DigitalIO.h and sure enough it allowed the code to compile. I still am unsure if it will work due to incorrect radios from "Alice". Thanks for the comment.

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


              15

              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