Navigation

    • Register
    • Login
    • OpenHardware.io
    • Categories
    • Recent
    • Tags
    • Popular
    1. Home
    2. zzz-teo
    3. Topics
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    Topics created by zzz-teo

    • zzz-teo

      about ACK ...
      My Project • • zzz-teo  

      2
      0
      Votes
      2
      Posts
      1190
      Views

      zzz-teo

      ... this approach seems that work ! #define ACKDELAY 40 //seems 40 millis is a good value bool nodeACK = false; void SendData(byte sensor, byte destination, bool value, bool ack) { msg.setSensor(sensor); msg.setDestination(destination); for(byte i=0; i<=ATTEMPTS; i++){ if(send(msg.set(value),ack)){ Serial.println("Gateway ACK"); // wait(ACKDELAY); if(nodeACK == true){ Serial.println("Node ACK"); nodeACK = false; break;}else{ Serial.println("Node NACK"); } }else{ Serial.println("Gateway NACK"); } wait(ACKDELAY); } } ... in combination with this void receive(const MyMessage &message) { if (message.isAck()){ nodeACK=true; digitalWrite(LED_PINS[message.sensor], message.getBool()? LED_ON:LED_OFF); Serial.println(F("ACK recieved LED Status Changed")); } ... but probably is not the most elegand way! ... because if during the send/ack back message duty cycle, an ack from an other sensor received, a conflict may occure! i do not feel safe! (i also have a feeling that i did that post in the wrong topic! )
    • zzz-teo

      How can i define message Payload Type
      Troubleshooting • • zzz-teo  

      5
      0
      Votes
      5
      Posts
      1303
      Views

      zzz-teo

      hmm! OK! sounds reasonable! Thanx you...
    • zzz-teo

      "connected()" function
      General Discussion • • zzz-teo  

      3
      0
      Votes
      3
      Posts
      819
      Views

      zzz-teo

      Thank you @Boots33 for the links seems that "isTransportReady()" will do my job... i have a lot of work...
    • zzz-teo

      ... using two Gateways
      General Discussion • • zzz-teo  

      25
      0
      Votes
      25
      Posts
      4100
      Views

      zzz-teo

    • zzz-teo

      Mysensors "Global" message
      My Project • • zzz-teo  

      7
      0
      Votes
      7
      Posts
      2479
      Views

      zzz-teo

      @napo7 said in Mysensors "Global" message: Is there a way to broadcast messages ? Hi, @napo7, still have the same question! The only thing that i have done till now is... to send a message to set.Destination(255) that is being handled from gateway as a normal message, but althought is visible to serial output all other nodes, wasn't able to handle it! (do not forget that i am new to this). is there any idea how to retrieve the payload from this kind of "INTERNAL" message?