hello_world_main.c 814 B

1234567891011121314151617181920212223
  1. /* Startup time example
  2. This example code is in the Public Domain (or CC0 licensed, at your option.)
  3. Unless required by applicable law or agreed to in writing, this
  4. software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
  5. CONDITIONS OF ANY KIND, either express or implied.
  6. */
  7. #include <stdio.h>
  8. #include "esp_log.h"
  9. static const char *TAG = "example";
  10. /* The purpose of this app is to demonstrate fast startup time only, so feel free
  11. to replace this app_main() with your own code or copy the sdkconfig.defaults contents
  12. into a different project's sdkconfig file.
  13. */
  14. void app_main(void)
  15. {
  16. // Calling this function restores all Info-level logging at runtime (as "Log Maximum Verbosity" set to "Info")
  17. esp_log_level_set("*", ESP_LOG_INFO);
  18. ESP_LOGI(TAG, "App started!");
  19. }