Skip to content

Commit

Permalink
Receive and print calibration messages
Browse files Browse the repository at this point in the history
  • Loading branch information
maniacbug committed Aug 21, 2013
1 parent 7432b0d commit ecff492
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions examples/sensornet/sensornet.pde
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,13 @@ void loop(void)
RF24NetworkHeader response_header(/*to node*/ header.from_node, /*type*/ 'C');
network.write(response_header,&response,sizeof(response));
}
else if ( header.type == 'C' )
{
// This is a calibration message. Calculate the diff
uint16_t diff = message.temp_reading - measure_temp();
printf_P(PSTR("%lu: APP Calibration received %04x diff %04x\n\r"),millis(),message.temp_reading,diff);

}
}
}

Expand Down

0 comments on commit ecff492

Please sign in to comment.