 
 void loop ()
 {
+
+    HttpClient client;
+
     if (rf12_recvDone() && rf12_crc == 0)
     {
+
         /*
             // debugging only: examine packet byte by byte
             for (byte i = 0; i < rf12_len; ++i) {


    Serial.begin(57600);
    Serial.println("***");
    Serial.println("*** 150105 Yun RF12 Data Logger");
    Serial.println("***");
    Serial.println("*** Format:     time stamp, RF12 group ID, node ID, Vcc, T");
    Serial.println("***             time stamp, RF12 group ID, node ID, raw data bytes");
    Serial.println("***");
    Serial.println("*** Logging to  /mnt/sda1/datalogs/YYYY-MM-DD_RF12.dat");
    Serial.println("***             /mnt/sda1/datalogs/YYYY-MM-DD_RF12_raw.dat");
    Serial.println("***");

    // initialize digital pin 13 as an output.

            Serial.println("error opening raw data log file");
        }

        // send data for to emoncms.org: node id, T, Vcc
        emonapiurl = "http://emoncms.org/input/post.json?apikey="
                     + EMONCMS_APIKEY
                     + "&node="
                     + String(dataPackage.rf12_nodeid)
                     + "&csv="
                     + String(dataPackage.T)
                     + ","
                     + String(dataPackage.Vcc);

        client.get(emonapiurl);

        //
    }
    digitalWrite(13, LOW);   // turn the LED off (HIGH is the voltage level)
}
