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 trying to compile Ethernet MQTT Gateway but samples OK

Problems trying to compile Ethernet MQTT Gateway but samples OK

Scheduled Pinned Locked Moved Troubleshooting
15 Posts 3 Posters 3.2k Views 3 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.
  • KiZDK Offline
    KiZDK Offline
    KiZD
    wrote on last edited by
    #5

    Hi,

    It's not the same sketch. I can't find any sketch in the examples that have the same two tabs.

    In the other hand, I can upload without issue with codebender this one:
    http://www.mysensors.org/build/ethernet_gateway ...but I need ENC28J60 and MQTT

    Regards

    mfalkviddM 1 Reply Last reply
    0
    • KiZDK KiZD

      Hi,

      It's not the same sketch. I can't find any sketch in the examples that have the same two tabs.

      In the other hand, I can upload without issue with codebender this one:
      http://www.mysensors.org/build/ethernet_gateway ...but I need ENC28J60 and MQTT

      Regards

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

      @KiZD said:

      It's not the same sketch. I can't find any sketch in the examples that have the same two tabs.

      Could you explain what you refer to as "it" in this sentence? EthernetGateway? or MQTTGateway? or something else?

      1 Reply Last reply
      0
      • KiZDK Offline
        KiZDK Offline
        KiZD
        wrote on last edited by
        #7

        Sorry...
        In the example sketches provided with the libraries, I can't find any one like http://www.mysensors.org/build/mqtt_gateway

        1 Reply Last reply
        0
        • KiZDK Offline
          KiZDK Offline
          KiZD
          wrote on last edited by KiZD
          #8

          I can compile all examples like GatewayW5100MQTTClient, GatewayENC28J60... but not this one:
          http://www.mysensors.org/build/mqtt_gateway
          In my Arduino install, this method to install libraries didn't work:
          http://www.mysensors.org/about/arduino#installing-the-sensor-libraries
          I have to move MySensors folder to my libraries folder to make examples work.

          Why can't compile http://www.mysensors.org/build/mqtt_gateway with codebender plugin? (other MySensor's sketches do)
          Why this "MySigningNone.h" error with Arduino IDE? Is something related with this http://forum.mysensors.org/topic/1021/security-introducing-signing-support-to-mysensors ??

          Thanks!

          1 Reply Last reply
          0
          • KiZDK Offline
            KiZDK Offline
            KiZD
            wrote on last edited by
            #9

            Hello!

            ...any idea? I've seen similar issues with this MySigningNone.h error, but haven't seen any clear sollution.

            Thanks!

            martinhjelmareM 1 Reply Last reply
            0
            • KiZDK KiZD

              Hello!

              ...any idea? I've seen similar issues with this MySigningNone.h error, but haven't seen any clear sollution.

              Thanks!

              martinhjelmareM Offline
              martinhjelmareM Offline
              martinhjelmare
              Plugin Developer
              wrote on last edited by martinhjelmare
              #10

              @KiZD

              Hi!

              I'm not sure exactly what you have tried, but the mqtt client gateway sketch is only for development branch library while the old mqtt gateway sketch that you linked to, is for the 1.5 releases. You can't mix old style sketches with dev branch library and vice versa. It's sounds like you should try to reinstall the mysensors library from scratch. Remove everything first. Read the install instructions on the mysensors web carefully. Decide if you want to go for dev branch or a release. Then install either, and only use sketch examples from the correct source per library install.

              1 Reply Last reply
              1
              • KiZDK Offline
                KiZDK Offline
                KiZD
                wrote on last edited by KiZD
                #11

                Thanks!!

                I've done in a new install in Windows, installed this libraries:
                https://github.com/mysensors/Arduino/tree/development

                And now, I get this error:
                ...MQTTGateway.ino:77:23: fatal error: DigitalIO.h: No such file or directory

                #include <DigitalIO.h>

                Wich sketch should I use if I'm looking for a MQTTGateway with ENC28J60? Sample sketch provided with libraries is for W5100, can I use this sketch:
                https://github.com/mysensors/Arduino/blob/development/libraries/MySensors/examples/GatewayW5100MQTTClient/GatewayW5100MQTTClient.ino

                and replace #include <Ethernet.h> for #include <UIPEthernet.h> ??

                Thanks!

                martinhjelmareM 1 Reply Last reply
                0
                • KiZDK KiZD

                  Thanks!!

                  I've done in a new install in Windows, installed this libraries:
                  https://github.com/mysensors/Arduino/tree/development

                  And now, I get this error:
                  ...MQTTGateway.ino:77:23: fatal error: DigitalIO.h: No such file or directory

                  #include <DigitalIO.h>

                  Wich sketch should I use if I'm looking for a MQTTGateway with ENC28J60? Sample sketch provided with libraries is for W5100, can I use this sketch:
                  https://github.com/mysensors/Arduino/blob/development/libraries/MySensors/examples/GatewayW5100MQTTClient/GatewayW5100MQTTClient.ino

                  and replace #include <Ethernet.h> for #include <UIPEthernet.h> ??

                  Thanks!

                  martinhjelmareM Offline
                  martinhjelmareM Offline
                  martinhjelmare
                  Plugin Developer
                  wrote on last edited by
                  #12

                  @KiZD

                  I don't think so, but you can always try. The mqtt client gateway in the dev branch was not developed with support for enc28j60 in mind.

                  If you want to use that module, your best bet is to use a 1.5 release of mysensors and the old mqtt broker gateway sketch. Although I can't remember if I've read successful reports on that in the forum.

                  The enc28j60 ethernet module is notoriosly hard to get working in combination with mysensors according to a lot of posts in the forum. My advice is, get a 5100 module.

                  1 Reply Last reply
                  0
                  • KiZDK Offline
                    KiZDK Offline
                    KiZD
                    wrote on last edited by
                    #13

                    Thanks!

                    In the example that I'm trying
                    http://www.mysensors.org/build/mqtt_gateway

                    I thought that was developed for both enc28j60 and 5100 , but now I can see that I was wrong. (I can't compile, anyway)

                    The example provided with libraries (dev branch)
                    https://github.com/mysensors/Arduino/blob/development/libraries/MySensors/examples/GatewayW5100MQTTClient/GatewayW5100MQTTClient.ino

                    is very different from the one proposed on the web:
                    http://www.mysensors.org/build/mqtt_gateway

                    The one provided in dev branch libraries examples is not 1.5?

                    If I get a W5100 wich sketch sould I use?

                    Perhaps, I should try to use a serial gateway, but I like the idea to have a device for only RFL24>Eth / MQTT.

                    Thanks for your answers.

                    martinhjelmareM 1 Reply Last reply
                    0
                    • KiZDK KiZD

                      Thanks!

                      In the example that I'm trying
                      http://www.mysensors.org/build/mqtt_gateway

                      I thought that was developed for both enc28j60 and 5100 , but now I can see that I was wrong. (I can't compile, anyway)

                      The example provided with libraries (dev branch)
                      https://github.com/mysensors/Arduino/blob/development/libraries/MySensors/examples/GatewayW5100MQTTClient/GatewayW5100MQTTClient.ino

                      is very different from the one proposed on the web:
                      http://www.mysensors.org/build/mqtt_gateway

                      The one provided in dev branch libraries examples is not 1.5?

                      If I get a W5100 wich sketch sould I use?

                      Perhaps, I should try to use a serial gateway, but I like the idea to have a device for only RFL24>Eth / MQTT.

                      Thanks for your answers.

                      martinhjelmareM Offline
                      martinhjelmareM Offline
                      martinhjelmare
                      Plugin Developer
                      wrote on last edited by martinhjelmare
                      #14

                      @KiZD

                      Dev branch source, means that the code is under development and a lot of things have changed after the latest release of mysensors, which is currently 1.5.4.

                      Old sketches from 1.5 releases or earlier have to be modified to work in combination with the dev branch library. The examples that you get together with the library if downloading the dev branch, have all been modified to work with the dev branch library.

                      Some sketches like the mqtt gateway sketch, have been completely rewritten. In the old sketch the gateway was acting as an mqtt broker. In the new dev branch sketch, the gateway is an mqtt client.

                      The W5100 module should work with all mysensors gateway sketches for ethernet modules, ie both ethernet and mqtt gateway and both 1.5 release and dev branch.

                      1 Reply Last reply
                      0
                      • KiZDK Offline
                        KiZDK Offline
                        KiZD
                        wrote on last edited by
                        #15

                        OK, I understand...

                        I'll buy a W5100 and will try with serial until module arrives.

                        Thank you!!

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


                        23

                        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