   byte * key_buf = (unsigned char*)key.c_str();
   int plain_length = cipher.length();
   byte plain_buf[plain_length];
-  aes.do_aes_decrypt(cipher_buf, cipher.length()/2-2, plain_buf, key_buf, bits);
+  aes.do_aes_decrypt(cipher_buf, cipher.length()/2-2, plain_buf, key_buf, AES_BITS);
   String plain = aes.printToString(plain_buf, plain_size);
   //Serial.println(sizeof(plain_buf)/sizeof(plain_buf[0]));
   //Serial.println(plain.length());
-  printHeap();
+  //printHeap();
   return plain;
 }
-
-
-
+/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
+
+
+/************************************************************************/
+/* Mesh received callback: Receives a message and if the topic of the   */ 
+/* received message matches LED_TOPIC, then sets the LED ON, if payload */
+/* is equal to 1, and OFF, if payload is equal to 0                     */
+/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
 void receivedCallback( uint32_t from, String &msg ) {
-  String decrypted_msg = AES_decrypt(msg, key);
+  String decrypted_msg = AES_decrypt(msg, AES_KEY);
   Serial.printf("startHere: Received from %d msg=",from); Serial.println(decrypted_msg);
   String response = "Message received! ID: ";
   char contentBuffer[500];



/************************************************************************/
/* Reads from DS18B20 sensor interfase given one-wire                   */
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
String getMac()                                    
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/


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


