Send Message, pass ID


  • Hardware Contributor

    It would be nice to, in the send function, that we could pass a extra value after the ack request, that value would be a numeric value that the gw would return back when replying with the ack. That way we could pass a unique id with the message, allowing to filter if the messages that we are acknowledging is the expected one.

    id++;
    send(msg2.set(state?false:true), true,id);
    

    something like this.


Log in to reply
 

Suggested Topics

  • 1
  • 10
  • 5
  • 4
  • 3
  • 9
  • 3
  • 1

235
Online

9.8k
Users

10.3k
Topics

106.8k
Posts