Skip to content
Snippets Groups Projects
Commit 0c5781b7 authored by Moritz Perschke's avatar Moritz Perschke
Browse files

added logging to caching lib

parent f0de9096
No related branches found
No related tags found
4 merge requests!39Merge Develop into Main,!19development into master,!17Inital Host, initial Client,!6Espnow
...@@ -22,6 +22,7 @@ namespace RtcMemory{ ...@@ -22,6 +22,7 @@ namespace RtcMemory{
jsonString, jsonString,
sizeof(jsonString) sizeof(jsonString)
); );
ESP_LOGI(TAG, "Moved message to storage.");
} }
String get_from_storage(){ String get_from_storage(){
...@@ -39,6 +40,7 @@ namespace RtcMemory{ ...@@ -39,6 +40,7 @@ namespace RtcMemory{
// move tail to next element // move tail to next element
tailElement = (tailElement + 1) % maxLength_; tailElement = (tailElement + 1) % maxLength_;
Serial.println(buf); Serial.println(buf);
ESP_LOGI(TAG, "Retrieved message from storage");
return buf; return buf;
} }
} }
......
  • Developer

    The Client still doesn't know whether a message was received or not, right now it only knows the status of sending it. The first thing that came to mind to do this was to add a semaphore to ESPNOW or a bool to Message, which I don't think is the best option

0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment