NanodeRF adjust onboard time from server reply

I have just added to github a new NanodeRF example that at the same time as sending sensor data to a server gets the server time from the reply and adjusts a software realtime clock accordingly. Saves needing a real time clock onboard. 

For a quick overview of how it works, here is the main bit of code that decodes the time string from the reply and adjusts the software rtc.

The software RTC library is another of Jean-Claude Wippler's great pieces of work and can be downloaded here

static void my_callback (byte status, word off, word len)
{
  get_header_line(2,off);      // Get the date and time line from the header (line 2)
  Serial.println(line_buf);    // Print out the date and time
  // Decode date time string to get integers for hour, min, sec, day
  // Search for the date time characters and hope they are in the right place
  char val[1];
  val[0] = line_buf[23]; val[1] = line_buf[24];
  int hour = atoi(val);
  val[0] = line_buf[26]; val[1] = line_buf[27];
  int mins = atoi(val);
  val[0] = line_buf[29]; val[1] = line_buf[30];
  int sec = atoi(val);
  val[0] = line_buf[11]; val[1] = line_buf[12];
  int day = atoi(val);
  // Set the RTC
  RTC.adjust(DateTime(2012, 1, day, hour, mins, sec));
  DateTime now = RTC.now();
  // Print the date and time
  showDate("now", now);
  

The full example can be found here:

https://github.com/openenergymonitor/NanodeRF/tree/master/NanodeRF_singleCT_rtc