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. MQTT Gateway compile error

MQTT Gateway compile error

Scheduled Pinned Locked Moved Troubleshooting
3 Posts 2 Posters 1.4k 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.
  • M Offline
    M Offline
    markb
    wrote on last edited by
    #1

    Hi, I have received the following compile error for the MQTTGateway sketch:

    Arduino: 1.0.6 (Windows 7), Board: "Arduino Uno"
    In file included from C:\Program Files (x86)\arduino-1.0.6\libraries\MySensors/MySensor.h:28,
    from MQTTGateway_v0.1.ino:60:
    C:\Program Files (x86)\arduino-1.0.6\libraries\MySensors/utility/RF24.h:51: error: ISO C++ forbids declaration of 'SoftSPI' with no type
    C:\Program Files (x86)\arduino-1.0.6\libraries\MySensors/utility/RF24.h:51: error: expected ';' before '<' token

    MQTT Gateway is being built on an Arduino Uno (R3) with Ethernet Shield (R3), using Arduino IDE 1.0.6. I have another Arduino Uno (R2) running as a node with a DHT sensor attached.

    I have successfully established a Serial Gateway to read the sensor data. I subsequently established a working Ethernet Gateway.

    Now I've progressed to attempting to establish an MQTT Gateway. I am following the MQTT Gateway instructions page on the site for guidance and have downloaded the current DigitalIO and mysensor libraries.

    Any assistance appreciated.

    Mark

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

      Add
      #include <DigitalIO.h>
      in the sketch.

      1 Reply Last reply
      1
      • M Offline
        M Offline
        markb
        wrote on last edited by
        #3

        @hek: Success! Now recieving temp and humidity readings on my Android tablet MQTT app (MyMQTT). Thank you very much for your expert advice.

        1 Reply Last reply
        0

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        17

        Online

        12.0k

        Users

        11.2k

        Topics

        113.4k

        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