esplog_display.cc 893 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. #include "esplog_display.h"
  2. #include "esp_log.h"
  3. #define TAG "EspLogDisplay"
  4. EspLogDisplay::EspLogDisplay()
  5. {}
  6. EspLogDisplay::~EspLogDisplay()
  7. {}
  8. void EspLogDisplay::SetStatus(const char* status)
  9. {
  10. ESP_LOGW(TAG, "SetStatus: %s", status);
  11. }
  12. void EspLogDisplay::ShowNotification(const char* notification, int duration_ms)
  13. {
  14. ESP_LOGW(TAG, "ShowNotification: %s", notification);
  15. }
  16. void EspLogDisplay::ShowNotification(const std::string &notification, int duration_ms)
  17. {
  18. ShowNotification(notification.c_str(), duration_ms);
  19. }
  20. void EspLogDisplay::SetEmotion(const char* emotion)
  21. {
  22. ESP_LOGW(TAG, "SetEmotion: %s", emotion);
  23. }
  24. void EspLogDisplay::SetIcon(const char* icon)
  25. {
  26. ESP_LOGW(TAG, "SetIcon: %s", icon);
  27. }
  28. void EspLogDisplay::SetChatMessage(const char* role, const char* content)
  29. {
  30. ESP_LOGW(TAG, "Role:%s", role);
  31. ESP_LOGW(TAG, " %s", content);
  32. }