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. Bug Reports
  3. Variables are ack'ed with messageType M_SET_VARIABLE

Variables are ack'ed with messageType M_SET_VARIABLE

Scheduled Pinned Locked Moved Bug Reports
6 Posts 2 Posters 2.5k 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.
  • YveauxY Offline
    YveauxY Offline
    Yveaux
    Mod
    wrote on last edited by
    #1

    Hi there,

    I recently started using MySensors and stumbled upon what seems to be a problem when ack'ing a variable sent by the gateway to a sensor.
    This variable is sent using M_SET_VARIABLE and is ack'ed in the sensor's sendVariableAck() method by sending a message of type M_SET_VARIABLE.

    Setting of the messageType is located in: Sensor::begin(uint8_t _radioId, rf24_pa_dbm_e paLevel, uint8_t channel, rf24_datarate_e dataRate)
    ack.header.messageType = M_SET_VARIABLE;

    This should be changed into:
    ack.header.messageType = M_ACK_VARIABLE;

    Or am I missing something?

    http://yveaux.blogspot.nl

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

      Hmm. I'm refactoring this as we speak (among other things). In the future message acking will be possible to do between sensors and when sending data to the controller which is missing in the current version.

      But the idea is to ask for a ACK and get SET back.

      YveauxY 1 Reply Last reply
      0
      • hekH hek

        Hmm. I'm refactoring this as we speak (among other things). In the future message acking will be possible to do between sensors and when sending data to the controller which is missing in the current version.

        But the idea is to ask for a ACK and get SET back.

        YveauxY Offline
        YveauxY Offline
        Yveaux
        Mod
        wrote on last edited by
        #3

        @hek Hmmm... Strange concept to send the ACK first.
        I'd expect a gateway which pushes an updated state of e.g. an actuator to an end-node to send a SET and get an ACK back from the end-node.

        http://yveaux.blogspot.nl

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

          Yes, that is how it works.
          You send a message and ask for an ack back. The receiving node will send set-message back to the sender.

          1 Reply Last reply
          0
          • YveauxY Offline
            YveauxY Offline
            Yveaux
            Mod
            wrote on last edited by
            #5

            In getStatus the call is passed on to the get method, which sends a REQ and expects an ACK:
            return get(GATEWAY_ADDRESS, childId, M_REQ_VARIABLE, M_ACK_VARIABLE, variableType);

            That's the other way around, right?

            http://yveaux.blogspot.nl

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

              Yes, when sending an request you expect and M_ACK answer back from gateway. (This has changed to a SET back in the version I'm working on now).

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


              25

              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