-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: separate idf and mongoose implementation
- Loading branch information
Showing
29 changed files
with
2,138 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,32 @@ | ||
cmake_minimum_required(VERSION 3.16.0) | ||
|
||
project(ciot_c) | ||
option(CIOT_CONFIG_USE_MONGOOSE "Enable mongoose instead idf on ESP32" OFF) | ||
|
||
if(DEFINED ENV{IDF_PATH}) | ||
include($ENV{IDF_PATH}/tools/cmake/project.cmake) | ||
project(ciot_c) | ||
else() | ||
FILE(GLOB_RECURSE app_sources ${CMAKE_SOURCE_DIR}/src/*.*) | ||
FILE(GLOB_RECURSE infa_src ${CMAKE_SOURCE_DIR}/main/infra/mg/*) | ||
FILE(GLOB_RECURSE ifaces_src ${CMAKE_SOURCE_DIR}/main/interfaces/*) | ||
FILE(GLOB_RECURSE mg_src ${CMAKE_SOURCE_DIR}/main/mongoose/*) | ||
FILE(GLOB app_src ${CMAKE_SOURCE_DIR}/main/*) | ||
|
||
include_directories(AFTER | ||
${CMAKE_SOURCE_DIR}/src/data | ||
${CMAKE_SOURCE_DIR}/src/infra | ||
${CMAKE_SOURCE_DIR}/src/interfaces | ||
${CMAKE_SOURCE_DIR}/src/mongoose | ||
${CMAKE_SOURCE_DIR}/src | ||
${CMAKE_SOURCE_DIR}/main/data | ||
${CMAKE_SOURCE_DIR}/main/infra | ||
${CMAKE_SOURCE_DIR}/main/interfaces | ||
${CMAKE_SOURCE_DIR}/main/mongoose | ||
${CMAKE_SOURCE_DIR}/main | ||
) | ||
|
||
add_executable(${PROJECT_NAME} ${app_sources}) | ||
add_executable(${PROJECT_NAME} ${infa_src} | ||
${ifaces_src} | ||
${ifaces_src} | ||
${mg_src} | ||
${app_src}) | ||
|
||
if(WIN32) | ||
target_link_libraries(${PROJECT_NAME} ws2_32) | ||
endif() | ||
project(ciot_c) | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
FILE(GLOB_RECURSE infa_src ${CMAKE_SOURCE_DIR}/main/infra/idf/*) | ||
FILE(GLOB_RECURSE ifaces_src ${CMAKE_SOURCE_DIR}/main/interfaces/*) | ||
FILE(GLOB app_src ${CMAKE_SOURCE_DIR}/main/*) | ||
|
||
idf_component_register(SRCS ${infa_src} | ||
${ifaces_src} | ||
${app_src} | ||
INCLUDE_DIRS data | ||
infra | ||
interfaces .) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
/** | ||
* @file ciot_httpc.c | ||
* @author your name ([email protected]) | ||
* @brief | ||
* @version 0.1 | ||
* @date 2023-10-13 | ||
* | ||
* @copyright Copyright (c) 2023 | ||
* | ||
*/ | ||
|
||
#include "ciot_httpc.h" | ||
|
||
ciot_httpc_t ciot_httpc_new(void *handle) | ||
{ | ||
return NULL; | ||
} | ||
|
||
ciot_err_t ciot_httpc_start(ciot_httpc_t this, ciot_httpc_cfg_t *cfg) | ||
{ | ||
return CIOT_ERR_NOT_IMPLEMENTED; | ||
} | ||
|
||
ciot_err_t ciot_httpc_stop(ciot_httpc_t this) | ||
{ | ||
return CIOT_ERR_NOT_IMPLEMENTED; | ||
} | ||
|
||
ciot_err_t ciot_httpc_process_req(ciot_httpc_t this, ciot_httpc_req_t *req) | ||
{ | ||
return CIOT_ERR_NOT_IMPLEMENTED; | ||
} | ||
|
||
ciot_err_t ciot_httpc_send_data(ciot_httpc_t this, uint8_t *data, int size) | ||
{ | ||
return CIOT_ERR_NOT_IMPLEMENTED; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
/** | ||
* @file ciot_https.c | ||
* @author your name ([email protected]) | ||
* @brief | ||
* @version 0.1 | ||
* @date 2023-10-13 | ||
* | ||
* @copyright Copyright (c) 2023 | ||
* | ||
*/ | ||
|
||
#include "ciot_https.h" | ||
|
||
ciot_https_t ciot_https_new(void *handle) | ||
{ | ||
return NULL; | ||
} | ||
|
||
ciot_err_t ciot_https_start(ciot_https_t this, ciot_https_cfg_t *cfg) | ||
{ | ||
return CIOT_ERR_NOT_IMPLEMENTED; | ||
} | ||
|
||
ciot_err_t ciot_https_stop(ciot_https_t this) | ||
{ | ||
return CIOT_ERR_NOT_IMPLEMENTED; | ||
} | ||
|
||
ciot_err_t ciot_https_process_req(ciot_https_t this, ciot_https_req_t *req) | ||
{ | ||
return CIOT_ERR_NOT_IMPLEMENTED; | ||
} | ||
|
||
ciot_err_t ciot_https_send_data(ciot_https_t this, uint8_t *data, int size) | ||
{ | ||
return CIOT_ERR_NOT_IMPLEMENTED; | ||
} |
Oops, something went wrong.