 
 
 /************************************************************************/
-/* Reads from DS18B20 sensor interfase given one-wire                   */
+/* Reads and returns the device MAC adress as a String                  */
 /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
 String getMac()                                    
 /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/

}
/************************************************************************/

void printHeap(){
  Serial.print("Free Heap: "); Serial.println(ESP.getFreeHeap());
}

String AES_encrypt(String plain, String key) {
  /* Local AES instance (uncomment to recreate problem) */
  AES aes ; 
  aes.set_IV(my_iv);
  byte * plain_buf = (unsigned char*)plain.c_str();
  byte * key_buf = (unsigned char*)key.c_str();
  // add padding where appropriate
  int cipher_length = (plain.length()+1 < 16) ? 16 : (plain.length()+1) + (16 - (plain.length()+1) % 16);
  byte cipher_buf[cipher_length];
  aes.do_aes_encrypt(plain_buf, plain.length() + 1, cipher_buf, key_buf, bits);
  String cipher = aes.printToHEXString(cipher_buf, cipher_length);
  //aes.printArray(cipher_buf, false);
  uint16_t plain_size = plain.length();


void loop() {
  mesh.update();
  readTemp(D4);
}


