Skip to content
  • 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. Hardware
  3. Problem building MQTT Gateway ver 2.0
  • Getting Started
  • Controller
  • Build
  • Hardware
  • Download/API
  • Forum
  • Store

Problem building MQTT Gateway ver 2.0

Scheduled Pinned Locked Moved Hardware
8 Posts 4 Posters 3.1k Views 4 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.
  • siodS Offline
    siodS Offline
    siod
    wrote on last edited by siod
    #1

    Hi,

    I would like to update my actual MQTT Gateway to the new MySensors 2.0 version library. Unfortunately I wasn´t able to just upload the sketch to another arduino, first it was asking for "DigitalIO.h" which I copied from an older arduino IDE version on my computer to the latest arduino IDE library. But after that it asks for "MySigningNone.h". Don´t know where to find that.

    Why can´t it finally be just a simple task to upload code using an updated library?

    T:\Programme\Arduino 1.6.10\arduino-builder -dump-prefs -logger=machine -hardware "T:\Programme\Arduino 1.6.10\hardware" -tools "T:\Programme\Arduino 1.6.10\tools-builder" -tools "T:\Programme\Arduino 1.6.10\hardware\tools\avr" -built-in-libraries "T:\Programme\Arduino 1.6.10\libraries" -libraries "T:\Arduino Projekte\libraries" -fqbn=arduino:avr:uno -ide-version=10610 -build-path "C:\Users\Cito\AppData\Local\Temp\build3eff58a7a75746fb3d7ac5b9b27eba4c.tmp" -warnings=none -prefs=build.warn_data_percentage=75 -verbose "T:\Arduino Projekte\MQTTClientGateway_Ver_2.0\MQTTClientGateway_Ver_2.0.ino"
    T:\Programme\Arduino 1.6.10\arduino-builder -compile -logger=machine -hardware "T:\Programme\Arduino 1.6.10\hardware" -tools "T:\Programme\Arduino 1.6.10\tools-builder" -tools "T:\Programme\Arduino 1.6.10\hardware\tools\avr" -built-in-libraries "T:\Programme\Arduino 1.6.10\libraries" -libraries "T:\Arduino Projekte\libraries" -fqbn=arduino:avr:uno -ide-version=10610 -build-path "C:\Users\Cito\AppData\Local\Temp\build3eff58a7a75746fb3d7ac5b9b27eba4c.tmp" -warnings=none -prefs=build.warn_data_percentage=75 -verbose "T:\Arduino Projekte\MQTTClientGateway_Ver_2.0\MQTTClientGateway_Ver_2.0.ino"
    Using board 'uno' from platform in folder: T:\Programme\Arduino 1.6.10\hardware\arduino\avr
    Using core 'arduino' from platform in folder: T:\Programme\Arduino 1.6.10\hardware\arduino\avr
    Detecting libraries used...
    "T:\Programme\Arduino 1.6.10\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10610 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR   "-IT:\Programme\Arduino 1.6.10\hardware\arduino\avr\cores\arduino" "-IT:\Programme\Arduino 1.6.10\hardware\arduino\avr\variants\standard" "C:\Users\Cito\AppData\Local\Temp\build3eff58a7a75746fb3d7ac5b9b27eba4c.tmp\sketch\MQTTClientGateway_Ver_2.0.ino.cpp" -o "nul"
    "T:\Programme\Arduino 1.6.10\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10610 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR   "-IT:\Programme\Arduino 1.6.10\hardware\arduino\avr\cores\arduino" "-IT:\Programme\Arduino 1.6.10\hardware\arduino\avr\variants\standard" "-IT:\Programme\Arduino 1.6.10\libraries\DigitalIO" "C:\Users\Cito\AppData\Local\Temp\build3eff58a7a75746fb3d7ac5b9b27eba4c.tmp\sketch\MQTTClientGateway_Ver_2.0.ino.cpp" -o "nul"
    "T:\Programme\Arduino 1.6.10\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10610 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR   "-IT:\Programme\Arduino 1.6.10\hardware\arduino\avr\cores\arduino" "-IT:\Programme\Arduino 1.6.10\hardware\arduino\avr\variants\standard" "-IT:\Programme\Arduino 1.6.10\libraries\DigitalIO" "-IT:\Programme\Arduino 1.6.10\hardware\arduino\avr\libraries\SPI\src" "C:\Users\Cito\AppData\Local\Temp\build3eff58a7a75746fb3d7ac5b9b27eba4c.tmp\sketch\MQTTClientGateway_Ver_2.0.ino.cpp" -o "nul"
    "T:\Programme\Arduino 1.6.10\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10610 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR   "-IT:\Programme\Arduino 1.6.10\hardware\arduino\avr\cores\arduino" "-IT:\Programme\Arduino 1.6.10\hardware\arduino\avr\variants\standard" "-IT:\Programme\Arduino 1.6.10\hardware\arduino\avr\libraries\SPI\src" "-IT:\Programme\Arduino 1.6.10\libraries\DigitalIO" "C:\Users\Cito\AppData\Local\Temp\build3eff58a7a75746fb3d7ac5b9b27eba4c.tmp\sketch\MQTTClientGateway_Ver_2.0.ino.cpp" -o "C:\Users\Cito\AppData\Local\Temp\build3eff58a7a75746fb3d7ac5b9b27eba4c.tmp\preproc\ctags_target_for_gcc_minus_e.cpp"
    T:\Arduino Projekte\MQTTClientGateway_Ver_2.0\MQTTClientGateway_Ver_2.0.ino:80:27: fatal error: MySigningNone.h: No such file or directory
    
     #include <MySigningNone.h>
    
                               ^
    
    compilation terminated.
    
    Bibliothek DigitalIO im Ordner: T:\Programme\Arduino 1.6.10\libraries\DigitalIO (legacy) wird verwendet
    Bibliothek SPI in Version 1.0 im Ordner: T:\Programme\Arduino 1.6.10\hardware\arduino\avr\libraries\SPI  wird verwendet
    exit status 1
    Fehler beim Kompilieren für das Board Arduino/Genuino Uno.```

    still learning...

    YveauxY 1 Reply Last reply
    0
    • siodS siod

      Hi,

      I would like to update my actual MQTT Gateway to the new MySensors 2.0 version library. Unfortunately I wasn´t able to just upload the sketch to another arduino, first it was asking for "DigitalIO.h" which I copied from an older arduino IDE version on my computer to the latest arduino IDE library. But after that it asks for "MySigningNone.h". Don´t know where to find that.

      Why can´t it finally be just a simple task to upload code using an updated library?

      T:\Programme\Arduino 1.6.10\arduino-builder -dump-prefs -logger=machine -hardware "T:\Programme\Arduino 1.6.10\hardware" -tools "T:\Programme\Arduino 1.6.10\tools-builder" -tools "T:\Programme\Arduino 1.6.10\hardware\tools\avr" -built-in-libraries "T:\Programme\Arduino 1.6.10\libraries" -libraries "T:\Arduino Projekte\libraries" -fqbn=arduino:avr:uno -ide-version=10610 -build-path "C:\Users\Cito\AppData\Local\Temp\build3eff58a7a75746fb3d7ac5b9b27eba4c.tmp" -warnings=none -prefs=build.warn_data_percentage=75 -verbose "T:\Arduino Projekte\MQTTClientGateway_Ver_2.0\MQTTClientGateway_Ver_2.0.ino"
      T:\Programme\Arduino 1.6.10\arduino-builder -compile -logger=machine -hardware "T:\Programme\Arduino 1.6.10\hardware" -tools "T:\Programme\Arduino 1.6.10\tools-builder" -tools "T:\Programme\Arduino 1.6.10\hardware\tools\avr" -built-in-libraries "T:\Programme\Arduino 1.6.10\libraries" -libraries "T:\Arduino Projekte\libraries" -fqbn=arduino:avr:uno -ide-version=10610 -build-path "C:\Users\Cito\AppData\Local\Temp\build3eff58a7a75746fb3d7ac5b9b27eba4c.tmp" -warnings=none -prefs=build.warn_data_percentage=75 -verbose "T:\Arduino Projekte\MQTTClientGateway_Ver_2.0\MQTTClientGateway_Ver_2.0.ino"
      Using board 'uno' from platform in folder: T:\Programme\Arduino 1.6.10\hardware\arduino\avr
      Using core 'arduino' from platform in folder: T:\Programme\Arduino 1.6.10\hardware\arduino\avr
      Detecting libraries used...
      "T:\Programme\Arduino 1.6.10\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10610 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR   "-IT:\Programme\Arduino 1.6.10\hardware\arduino\avr\cores\arduino" "-IT:\Programme\Arduino 1.6.10\hardware\arduino\avr\variants\standard" "C:\Users\Cito\AppData\Local\Temp\build3eff58a7a75746fb3d7ac5b9b27eba4c.tmp\sketch\MQTTClientGateway_Ver_2.0.ino.cpp" -o "nul"
      "T:\Programme\Arduino 1.6.10\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10610 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR   "-IT:\Programme\Arduino 1.6.10\hardware\arduino\avr\cores\arduino" "-IT:\Programme\Arduino 1.6.10\hardware\arduino\avr\variants\standard" "-IT:\Programme\Arduino 1.6.10\libraries\DigitalIO" "C:\Users\Cito\AppData\Local\Temp\build3eff58a7a75746fb3d7ac5b9b27eba4c.tmp\sketch\MQTTClientGateway_Ver_2.0.ino.cpp" -o "nul"
      "T:\Programme\Arduino 1.6.10\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10610 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR   "-IT:\Programme\Arduino 1.6.10\hardware\arduino\avr\cores\arduino" "-IT:\Programme\Arduino 1.6.10\hardware\arduino\avr\variants\standard" "-IT:\Programme\Arduino 1.6.10\libraries\DigitalIO" "-IT:\Programme\Arduino 1.6.10\hardware\arduino\avr\libraries\SPI\src" "C:\Users\Cito\AppData\Local\Temp\build3eff58a7a75746fb3d7ac5b9b27eba4c.tmp\sketch\MQTTClientGateway_Ver_2.0.ino.cpp" -o "nul"
      "T:\Programme\Arduino 1.6.10\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10610 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR   "-IT:\Programme\Arduino 1.6.10\hardware\arduino\avr\cores\arduino" "-IT:\Programme\Arduino 1.6.10\hardware\arduino\avr\variants\standard" "-IT:\Programme\Arduino 1.6.10\hardware\arduino\avr\libraries\SPI\src" "-IT:\Programme\Arduino 1.6.10\libraries\DigitalIO" "C:\Users\Cito\AppData\Local\Temp\build3eff58a7a75746fb3d7ac5b9b27eba4c.tmp\sketch\MQTTClientGateway_Ver_2.0.ino.cpp" -o "C:\Users\Cito\AppData\Local\Temp\build3eff58a7a75746fb3d7ac5b9b27eba4c.tmp\preproc\ctags_target_for_gcc_minus_e.cpp"
      T:\Arduino Projekte\MQTTClientGateway_Ver_2.0\MQTTClientGateway_Ver_2.0.ino:80:27: fatal error: MySigningNone.h: No such file or directory
      
       #include <MySigningNone.h>
      
                                 ^
      
      compilation terminated.
      
      Bibliothek DigitalIO im Ordner: T:\Programme\Arduino 1.6.10\libraries\DigitalIO (legacy) wird verwendet
      Bibliothek SPI in Version 1.0 im Ordner: T:\Programme\Arduino 1.6.10\hardware\arduino\avr\libraries\SPI  wird verwendet
      exit status 1
      Fehler beim Kompilieren für das Board Arduino/Genuino Uno.```
      YveauxY Offline
      YveauxY Offline
      Yveaux
      Mod
      wrote on last edited by
      #2

      @siod There must be something wrong with your installation, as DigitalIO.h is included in the MySensors 2.0.0 release (https://github.com/mysensors/MySensors/tree/development/drivers/AVR/DigitalIO).
      Better remove the digitalio library you installed manually and clear any remaining MySensors directories left in the 'libraries' folder.
      Furthermore the Arduino 1.6.10 release currently faces some stability issues in combination with MySensors, so I would advise you to stick with 1.6.9, until the issue is solved.

      http://yveaux.blogspot.nl

      1 Reply Last reply
      1
      • siodS Offline
        siodS Offline
        siod
        wrote on last edited by
        #3

        Hi Yveaux, thanks for your quick reply. So, I installed Arduino IDE 1.6.9, downloaded Mysensors library 2.0 again and copied it into the libraries folder. Still getting this error:

        T:\Programme\arduino-1.6.9\arduino-builder -dump-prefs -logger=machine -hardware "T:\Programme\arduino-1.6.9\hardware" -tools "T:\Programme\arduino-1.6.9\tools-builder" -tools "T:\Programme\arduino-1.6.9\hardware\tools\avr" -built-in-libraries "T:\Programme\arduino-1.6.9\libraries" -libraries "T:\Arduino Projekte\libraries" -fqbn=arduino:avr:uno -ide-version=10609 -build-path "C:\Users\Cito\AppData\Local\Temp\build3eff58a7a75746fb3d7ac5b9b27eba4c.tmp" -warnings=none -prefs=build.warn_data_percentage=75 -verbose "T:\Arduino Projekte\MQTTClientGateway_Ver_2.0\MQTTClientGateway_Ver_2.0.ino"
        T:\Programme\arduino-1.6.9\arduino-builder -compile -logger=machine -hardware "T:\Programme\arduino-1.6.9\hardware" -tools "T:\Programme\arduino-1.6.9\tools-builder" -tools "T:\Programme\arduino-1.6.9\hardware\tools\avr" -built-in-libraries "T:\Programme\arduino-1.6.9\libraries" -libraries "T:\Arduino Projekte\libraries" -fqbn=arduino:avr:uno -ide-version=10609 -build-path "C:\Users\Cito\AppData\Local\Temp\build3eff58a7a75746fb3d7ac5b9b27eba4c.tmp" -warnings=none -prefs=build.warn_data_percentage=75 -verbose "T:\Arduino Projekte\MQTTClientGateway_Ver_2.0\MQTTClientGateway_Ver_2.0.ino"
        "T:\Programme\arduino-1.6.9\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10609 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR   "-IT:\Programme\arduino-1.6.9\hardware\arduino\avr\cores\arduino" "-IT:\Programme\arduino-1.6.9\hardware\arduino\avr\variants\standard" "C:\Users\Cito\AppData\Local\Temp\build3eff58a7a75746fb3d7ac5b9b27eba4c.tmp\sketch\MQTTClientGateway_Ver_2.0.ino.cpp" -o "nul"
        "T:\Programme\arduino-1.6.9\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10609 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR   "-IT:\Programme\arduino-1.6.9\hardware\arduino\avr\cores\arduino" "-IT:\Programme\arduino-1.6.9\hardware\arduino\avr\variants\standard" "C:\Users\Cito\AppData\Local\Temp\build3eff58a7a75746fb3d7ac5b9b27eba4c.tmp\sketch\MQTTClientGateway_Ver_2.0.ino.cpp" -o "C:\Users\Cito\AppData\Local\Temp\build3eff58a7a75746fb3d7ac5b9b27eba4c.tmp\preproc\ctags_target_for_gcc_minus_e.cpp"
        T:\Arduino Projekte\MQTTClientGateway_Ver_2.0\MQTTClientGateway_Ver_2.0.ino:77:23: fatal error: DigitalIO.h: No such file or directory
        
         #include <DigitalIO.h>
        
                               ^
        
        compilation terminated.
        
        exit status 1
        Fehler beim Kompilieren für das Board Arduino/Genuino Uno.```

        still learning...

        1 Reply Last reply
        0
        • hekH Online
          hekH Online
          hek
          Admin
          wrote on last edited by
          #4

          Where did you download the mqtt-gateway ino from? Is it this one:

          https://github.com/mysensors/MySensors/blob/development/examples/GatewayW5100MQTTClient/GatewayW5100MQTTClient.ino

          1 Reply Last reply
          0
          • siodS Offline
            siodS Offline
            siod
            wrote on last edited by
            #5

            No Sir, I´ve downloaded it from here: https://www.mysensors.org/build/mqtt_gateway

            still learning...

            1 Reply Last reply
            0
            • siodS Offline
              siodS Offline
              siod
              wrote on last edited by siod
              #6

              Ok, I could upload your posted code, seems to work, but MQTT messages don´t have the same format as before. Why was this changed (e.g. #define MY_MQTT_PUBLISH_TOPIC_PREFIX "mygateway1-out"
              #define MY_MQTT_SUBSCRIBE_TOPIC_PREFIX "mygateway1-in")? I don´t want to edit all my controllers code...

              But I must admit I did not update my sensors yet, but if I cannot easily change the MQTT message format I´ll stick with the older MySensors library.

              still learning...

              1 Reply Last reply
              0
              • siodS Offline
                siodS Offline
                siod
                wrote on last edited by siod
                #7

                Ok, was experimenting a bit, I guess I have to change my Openhab code...

                So this is what I had until now:

                Contact FensterSzR  "Fenster Rechts"  (FF_Sz)  {mqtt="<[mysensor:MyMQTT/1/2/V_TRIPPED:state:OPEN:1],<[mysensor:MyMQTT/1/2/V_TRIPPED:state:CLOSED:0]"}
                

                Now, with library ver 2.0, I think I have to change it to sth. like this, but it doesn´t work, yet. I hope you can help me here:

                Contact FensterKzR  "Fenster Rechts"  (FF_Kz)  {mqtt="<[mysensors-1:mygateway1-out/3/2/V_TRIPPED:state:OPEN:1],<[mysensors-1:mygateway1-out/3/2/V_TRIPPED:state:CLOSED:0]"}
                

                edit: oops, now with correct code snippet

                edit 2: I recieve this in my serial monitor and mosquitto also receives the messages:

                0;255;3;0;9;TSP:MSG:READ 3-3-0 s=2,c=1,t=16,pt=2,l=2,sg=0:0
                0;255;3;0;9;Sending message on topic: mygateway1-out/3/2/1/0/16
                0;255;3;0;9;TSP:MSG:READ 3-3-0 s=4,c=1,t=0,pt=7,l=5,sg=0:21.2
                0;255;3;0;9;Sending message on topic: mygateway1-out/3/4/1/0/0
                0;255;3;0;9;TSP:MSG:READ 3-3-0 s=3,c=1,t=1,pt=7,l=5,sg=0:62.5
                0;255;3;0;9;Sending message on topic: mygateway1-out/3/3/1/0/1
                

                still learning...

                1 Reply Last reply
                0
                • Q Offline
                  Q Offline
                  Qu3Uk
                  wrote on last edited by
                  #8

                  @siod said:

                  Contact FensterKzR "Fenster Rechts" (FF_Kz) {mqtt="<[mysensors-1:mygateway1-out/3/2/V_TRIPPED:state:OPEN:1],<[mysensors-1:mygateway1-out/3/2/V_TRIPPED:state:CLOSED:0]"}

                  Can't tell if you fixed this yet but your Contact Item is incorrect. You've stated the topic in the MQTT part as "mygateway1-out/3/2/V_TRIPPED" when it should actually be "mygateway1-out/3/2/1/0/16"

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


                  19

                  Online

                  11.7k

                  Users

                  11.2k

                  Topics

                  113.0k

                  Posts


                  Copyright 2019 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
                  • OpenHardware.io
                  • Categories
                  • Recent
                  • Tags
                  • Popular