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. Announcements
  3. MySensors 1.5.2 Released

MySensors 1.5.2 Released

Scheduled Pinned Locked Moved Announcements
35 Posts 6 Posters 14.6k 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.
  • A Offline
    A Offline
    Anticimex
    Contest Winner
    wrote on last edited by
    #19

    Sorry, I am not very familiar with codebender. It looks to me that the library you try to build with is very out if date if it lacks those hw definitions. I don't know how the library ends up at codebender. Perhaps @hek has some communication with them to support it.

    Do you feel secure today? No? Start requiring some signatures and feel better tomorrow ;)

    1 Reply Last reply
    0
    • C Offline
      C Offline
      carlierd
      wrote on last edited by
      #20

      Hello,

      I tried to compile with 1.5.2 and got these errors:

      
      
      /Users/carlierd/Arduino/libraries/MySensors/MySensor.cpp: In member function 'boolean MySensor::sendRoute(MyMessage&)':
      /Users/carlierd/Arduino/libraries/MySensors/MySensor.cpp:27:25: error: '_doSign' was not declared in this scope
       #define DO_SIGN(node) (~_doSign[node>>3]&(1<<(node%8)))
                               ^
      /Users/carlierd/Arduino/libraries/MySensors/MySensor.cpp:356:6: note: in expansion of macro 'DO_SIGN'
        if (DO_SIGN(message.destination) && message.sender == nc.nodeId && !mGetAck(message) && mGetLength(message) &&
            ^
      /Users/carlierd/Arduino/libraries/MySensors/MySensor.cpp: In member function 'boolean MySensor::process()':
      /Users/carlierd/Arduino/libraries/MySensors/MySensor.cpp:28:25: error: '_doSign' was not declared in this scope
       #define SET_SIGN(node) (_doSign[node>>3]&=~(1<<(node%8)))
                               ^
      /Users/carlierd/Arduino/libraries/MySensors/MySensor.cpp:670:6: note: in expansion of macro 'SET_SIGN'
            SET_SIGN(msg.sender);
            ^
      /Users/carlierd/Arduino/libraries/MySensors/MySensor.cpp:29:27: error: '_doSign' was not declared in this scope
       #define CLEAR_SIGN(node) (_doSign[node>>3]|=(1<<(node%8)))
                                 ^
      /Users/carlierd/Arduino/libraries/MySensors/MySensor.cpp:673:6: note: in expansion of macro 'CLEAR_SIGN'
            CLEAR_SIGN(msg.sender);
            ^
      /Users/carlierd/Arduino/libraries/MySensors/MySensor.cpp:27:25: error: '_doSign' was not declared in this scope
       #define DO_SIGN(node) (~_doSign[node>>3]&(1<<(node%8)))
                               ^
      /Users/carlierd/Arduino/libraries/MySensors/MySensor.cpp:682:40: note: in expansion of macro 'DO_SIGN'
            if (signer.requestSignatures() && DO_SIGN(msg.sender))
                                              ^
      Erreur lors de la compilation.
      

      No compilation issue with 1.5. And everything is working perfectly.

      David.

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

        @Anticimex
        Yes, I'll have to update the codebender library manually.

        K 1 Reply Last reply
        0
        • C carlierd

          Hello,

          I tried to compile with 1.5.2 and got these errors:

          
          
          /Users/carlierd/Arduino/libraries/MySensors/MySensor.cpp: In member function 'boolean MySensor::sendRoute(MyMessage&)':
          /Users/carlierd/Arduino/libraries/MySensors/MySensor.cpp:27:25: error: '_doSign' was not declared in this scope
           #define DO_SIGN(node) (~_doSign[node>>3]&(1<<(node%8)))
                                   ^
          /Users/carlierd/Arduino/libraries/MySensors/MySensor.cpp:356:6: note: in expansion of macro 'DO_SIGN'
            if (DO_SIGN(message.destination) && message.sender == nc.nodeId && !mGetAck(message) && mGetLength(message) &&
                ^
          /Users/carlierd/Arduino/libraries/MySensors/MySensor.cpp: In member function 'boolean MySensor::process()':
          /Users/carlierd/Arduino/libraries/MySensors/MySensor.cpp:28:25: error: '_doSign' was not declared in this scope
           #define SET_SIGN(node) (_doSign[node>>3]&=~(1<<(node%8)))
                                   ^
          /Users/carlierd/Arduino/libraries/MySensors/MySensor.cpp:670:6: note: in expansion of macro 'SET_SIGN'
                SET_SIGN(msg.sender);
                ^
          /Users/carlierd/Arduino/libraries/MySensors/MySensor.cpp:29:27: error: '_doSign' was not declared in this scope
           #define CLEAR_SIGN(node) (_doSign[node>>3]|=(1<<(node%8)))
                                     ^
          /Users/carlierd/Arduino/libraries/MySensors/MySensor.cpp:673:6: note: in expansion of macro 'CLEAR_SIGN'
                CLEAR_SIGN(msg.sender);
                ^
          /Users/carlierd/Arduino/libraries/MySensors/MySensor.cpp:27:25: error: '_doSign' was not declared in this scope
           #define DO_SIGN(node) (~_doSign[node>>3]&(1<<(node%8)))
                                   ^
          /Users/carlierd/Arduino/libraries/MySensors/MySensor.cpp:682:40: note: in expansion of macro 'DO_SIGN'
                if (signer.requestSignatures() && DO_SIGN(msg.sender))
                                                  ^
          Erreur lors de la compilation.
          

          No compilation issue with 1.5. And everything is working perfectly.

          David.

          A Offline
          A Offline
          Anticimex
          Contest Winner
          wrote on last edited by
          #22

          @carlierd I found a problem there. I have to make a new release. Sorry for the inconvenience!

          Do you feel secure today? No? Start requiring some signatures and feel better tomorrow ;)

          C 1 Reply Last reply
          0
          • A Anticimex

            @carlierd I found a problem there. I have to make a new release. Sorry for the inconvenience!

            C Offline
            C Offline
            carlierd
            wrote on last edited by
            #23

            @Anticimex No problem !! Thanks for the support :)

            1 Reply Last reply
            0
            • H hek

              @Anticimex
              Yes, I'll have to update the codebender library manually.

              K Offline
              K Offline
              korttoma
              Hero Member
              wrote on last edited by
              #24

              @hek said:

              @Anticimex
              Yes, I'll have to update the codebender library manually.

              I have uploaded 1.5.2 library as a Personal Library in codebender. I have not had any trouble doing this before. Just tried 1.5.3 but I get the same error.

              • Tomas
              1 Reply Last reply
              0
              • K korttoma

                Is there "SOMETHING" missing like this??

                MySensor gw(transport, SOMETHING);
                
                candidate constructor not viable: requires 2 arguments, but 1 was provided
                        MySensor(MyTransport &radio =*new MyTransportNRF24(), MyHw &hw=*new MyHwDriver()
                

                How do I define "MyHwDriver"??

                H Offline
                H Offline
                hek
                Admin
                wrote on last edited by
                #25
                candidate constructor not viable: requires 2 arguments, but 1 was provided
                        MySensor(MyTransport &radio =*new MyTransportNRF24(), MyHw &hw=*new MyHwDriver()
                

                Weird it finds the MySensors constructor, it has a default value (MyHwDriver) but doesn't use it. Darn compilers.

                K 1 Reply Last reply
                0
                • A Offline
                  A Offline
                  Anticimex
                  Contest Winner
                  wrote on last edited by
                  #26

                  And you have selected a atmega328-based target when you build?

                  Do you feel secure today? No? Start requiring some signatures and feel better tomorrow ;)

                  1 Reply Last reply
                  0
                  • H hek
                    candidate constructor not viable: requires 2 arguments, but 1 was provided
                            MySensor(MyTransport &radio =*new MyTransportNRF24(), MyHw &hw=*new MyHwDriver()
                    

                    Weird it finds the MySensors constructor, it has a default value (MyHwDriver) but doesn't use it. Darn compilers.

                    K Offline
                    K Offline
                    korttoma
                    Hero Member
                    wrote on last edited by
                    #27

                    @hek said:

                    Weird it finds the MySensors constructor, it has a default value (MyHwDriver) but doesn't use it. Darn compilers.

                    I take it you have managed to reproduce the situation or do you need some more information from me?

                    @Anticimex said:

                    And you have selected a atmega328-based target when you build?

                    Yes, I have an "Arduino Pro Mini 5V 16MHz w/ ATmega328" selected when compiling.

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

                      @korttoma said:

                      I take it you have managed to reproduce the situation or do you need some more information from me?

                      No, I'm currently @work.

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

                        @korttoma

                        Updated codebender lib to 1.5.3 and it fails with the same error you got.

                        Seems like codebender doesn't define ARDUINO_ARCH_AVR for the Uno board... which is used to select the correct hw-driver here:
                        https://github.com/mysensors/Arduino/blob/master/libraries/MySensors/MySensor.h#L47

                        I've tried to reach Vasilis over at codebender but I guess it's a bit late for a reply today.

                        1 Reply Last reply
                        1
                        • ferpandoF Offline
                          ferpandoF Offline
                          ferpando
                          Hero Member
                          wrote on last edited by
                          #30

                          I updated to 1.5.3 and I get 2 warnings just by opening arduino IDE

                          Warning: platform.txt from core 'MySensors AVR based boards' contains deprecated recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} {compiler.ar.extra_flags} "{build.path}/{archive_file}" "{object_file}", automatically converted to recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} {compiler.ar.extra_flags} "{archive_file_path}" "{object_file}". Consider upgrading this core.
                          WARNING: Category '' in library UIPEthernet is not valid. Setting to 'Uncategorized'
                          

                          I'm using IDE 1.6.6
                          It was working before with MySensors 1.5

                          1 Reply Last reply
                          0
                          • A Offline
                            A Offline
                            Anticimex
                            Contest Winner
                            wrote on last edited by
                            #31

                            Those warnings are no reason for concern. Everything works like before.

                            Do you feel secure today? No? Start requiring some signatures and feel better tomorrow ;)

                            ferpandoF 1 Reply Last reply
                            0
                            • A Anticimex

                              Those warnings are no reason for concern. Everything works like before.

                              ferpandoF Offline
                              ferpandoF Offline
                              ferpando
                              Hero Member
                              wrote on last edited by
                              #32

                              @Anticimex
                              Ok, but is there a way to remove them?

                              I can confirm it compiles and uploads correctly.

                              Thanks

                              1 Reply Last reply
                              0
                              • A Offline
                                A Offline
                                Anticimex
                                Contest Winner
                                wrote on last edited by
                                #33

                                Should just be a matter of editing platform.txt I suppose. I have not worked with those aspects. The release only change signing related parts. Those warnings are probably relating to IDE and versions of board support packages.

                                Do you feel secure today? No? Start requiring some signatures and feel better tomorrow ;)

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

                                  @korttoma

                                  1.5.3 in codebender compiles now.

                                  They're only compatible with arduino IDE 1.0.5 currently. Which means they don't define ARDUINO_ARCH_AVR which MySensors relies on.

                                  Patched the codebender library (manually defining this) as a workaround until they update their things.

                                  1 Reply Last reply
                                  1
                                  • K Offline
                                    K Offline
                                    korttoma
                                    Hero Member
                                    wrote on last edited by
                                    #35

                                    @hek how do I Patch my copy of 1.5.3 or where can I download the Patched version? Seems like it is stil 1.4 that is used on codebender unless you upload your own version.

                                    • Tomas
                                    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


                                    26

                                    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