platform_console.h 548 B

12345678910111213141516171819
  1. /* Console example — declarations of command registration functions.
  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. #pragma once
  8. #include "esp_console.h"
  9. #include "cJSON.h"
  10. #ifdef __cplusplus
  11. extern "C" {
  12. #endif
  13. esp_err_t cmd_to_json(const esp_console_cmd_t *cmd);
  14. cJSON * get_cmd_list();
  15. #ifdef __cplusplus
  16. }
  17. #endif