Permalink
Browse files

Add ACK support to RX_Simple

  • Loading branch information...
1 parent dad1e7a commit d72fb2aa458a2721dd58d608dab6b08f76347e86 @nathanchantrell committed Nov 25, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 TinyTX_RX_Simple/TinyTX_RX_Simple.ino
@@ -39,6 +39,12 @@ void loop() {
rx = *(Payload*) rf12_data;
int value = rx.rxD;
int millivolts = rx.supplyV;
+
+ if (RF12_WANTS_ACK) { // Send ACK if requested
+ rf12_sendStart(RF12_ACK_REPLY, 0, 0);
+ Serial.println(“-> ack sent”);
+ }
+
Serial.println("Received a packet:");
Serial.print("From Node: ");
Serial.println(nodeID);

0 comments on commit d72fb2a

Please sign in to comment.