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. Development
  3. Send library version in setup

Send library version in setup

Scheduled Pinned Locked Moved Development
5 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.
  • L Offline
    L Offline
    lunarok
    wrote on last edited by
    #1

    Hi,

    I know there is a type of internal message to send the library version : I_VERSION.
    I will like to send this information during presentation, so during the setup. Like we show the sketch and version of sketch, I think it's a good place.
    But I'm not sur what is the best way to do it. Do we have to use a general message and say it's type I_VERSION or is there a gw.sendVersion method for exemple ?

    On the Jeedom controller I want to record the lib version. Doing it during presentation like sketch will be better than what I can do now (on every sensor presentation, so can be 20 for one node)

    Thanks,

    Cédric

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

      This will change in the next (2.0) version. The upcoming node message (sent at startup) will contain library version.

      https://github.com/henrikekblad/Arduino/blob/development/libraries/MySensors/MyMessage.h#L768

      1 Reply Last reply
      0
      • L Offline
        L Offline
        lunarok
        wrote on last edited by
        #3

        Thanks for the answer, that's a good thing I think. Like this we can keep all informations on the controller at once and have an easy way to see them whatever we want to use OTA or manual update.

        Waiting for 2.0, what is the best way to do it for now ?

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

          Already today library version is transmitted. It's sent as a string in the payload for all presentation messages (which is a bit redundant).

          1 Reply Last reply
          0
          • L Offline
            L Offline
            lunarok
            wrote on last edited by
            #5

            Yes, I get it from presentation messages, but like you say a little redundant :)
            So, if I can send it once in setup, like this it's better for the controller, not too much work for nothing, just take care of the message send by setup and it's done.

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


            20

            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