-
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.
Merge pull request #22 from hedrosistemas/develop
Develop
- Loading branch information
Showing
362 changed files
with
36,996 additions
and
137,993 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
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,5 +1,9 @@ | ||
gen: | ||
gen-c: | ||
$(MAKE) gen L=c O=../src/proto -C proto -f Makefile | ||
|
||
gen-py: | ||
$(MAKE) gen L=python O=../scripts -C proto -f Makefile | ||
|
||
help: | ||
@echo gen: generate proto files | ||
@echo gen-c: generate ANSI-C proto files | ||
@echo gen-py: generate python proto files |
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,44 +1,25 @@ | ||
set(CIOT_DIR_RELATIVE ../../) | ||
|
||
get_filename_component(CIOT_DIR "${CMAKE_CURRENT_LIST_FILE}/${CIOT_DIR_RELATIVE}" ABSOLUTE) | ||
|
||
message(${CIOT_DIR}) | ||
get_filename_component(CIOT_DIR "${CMAKE_CURRENT_LIST_DIR}/.." ABSOLUTE) | ||
|
||
set(CIOT_INCLUDE_DIRS | ||
${CIOT_DIR}/include/types | ||
${CIOT_DIR}/include | ||
${CIOT_DIR}/src/mg | ||
${CIOT_DIR}/src/mg/ | ||
${CIOT_DIR}/src/proto/protobuf-c | ||
) | ||
|
||
set(PROTOBUF_C_DIR ${CIOT_DIR}/src/proto/protobuf-c) | ||
|
||
set(PROTO_INCLUDE_DIRS | ||
${PROTOBUF_C_DIR} | ||
${CIOT_DIR}/src/proto | ||
set(CIOT_PB_INCLUDE_DIRS | ||
${CIOT_DIR}/src/proto/ | ||
) | ||
|
||
FILE(GLOB_RECURSE PROTOBUF_C ${PROTOBUF_C_DIR}/protobuf-c/*.c) | ||
FILE(GLOB_RECURSE PROTO_CIOT ${CIOT_DIR}/src/proto/*.c) | ||
|
||
FILE(GLOB_RECURSE CIOT_UNSUPPORTED ${CIOT_DIR}/src/unsupported/*.c) | ||
FILE(GLOB_RECURSE CIOT_COMMON ${CIOT_DIR}/src/common/*.c) | ||
FILE(GLOB_RECURSE CIOT_ESP32 ${CIOT_DIR}/src/esp32/*.c) | ||
FILE(GLOB_RECURSE CIOT_MONGOOSE ${CIOT_DIR}/src/mg/*.c) | ||
FILE(GLOB_RECURSE CIOT_WIN ${CIOT_DIR}/src/win/*.c) | ||
FILE(GLOB_RECURSE CIOT_LINUX ${CIOT_DIR}/src/linux/*.c) | ||
|
||
list(APPEND PROTO_SRCS ${PROTOBUF_C}) | ||
list(APPEND PROTO_SRCS ${PROTO_CIOT}) | ||
|
||
list(APPEND CIOT_ESP32_SRCS ${CIOT_COMMON}) | ||
list(APPEND CIOT_ESP32_SRCS ${CIOT_ESP32}) | ||
FILE(GLOB_RECURSE CIOT_COMMON_SRCS ${CIOT_DIR}/src/common/*.c) | ||
FILE(GLOB_RECURSE CIOT_CORE_SRCS ${CIOT_DIR}/src/core/*.c) | ||
FILE(GLOB_RECURSE CIOT_PB_C_SRCS ${CIOT_DIR}/src/proto/protobuf-c/protobuf-c/*.c) | ||
FILE(GLOB_RECURSE CIOT_PB_V1_SRCS ${CIOT_DIR}/src/proto/ciot/proto/v1/*.c) | ||
|
||
list(APPEND CIOT_PC_SRCS ${CIOT_UNSUPPORTED}) | ||
list(APPEND CIOT_PC_SRCS ${CIOT_COMMON}) | ||
list(APPEND CIOT_PC_SRCS ${CIOT_MONGOOSE}) | ||
list(APPEND CIOT_SRCS ${CIOT_COMMON_SRCS}) | ||
list(APPEND CIOT_SRCS ${CIOT_CORE_SRCS}) | ||
list(APPEND CIOT_SRCS ${CIOT_PB_C_SRCS}) | ||
|
||
if (UNIX) | ||
list(APPEND CIOT_PC_SRCS ${CIOT_LINUX}) | ||
else() | ||
list(APPEND CIOT_PC_SRCS ${CIOT_WIN}) | ||
endif() | ||
FILE(GLOB_RECURSE CIOT_NRF_SRCS ${CIOT_DIR}/src/nrf/*.c) | ||
FILE(GLOB_RECURSE CIOT_ESP32_SRCS ${CIOT_DIR}/src/esp32/*.c) | ||
FILE(GLOB_RECURSE CIOT_MG_SRCS ${CIOT_DIR}/src/mg/*.c) | ||
FILE(GLOB_RECURSE CIOT_WIN_SRCS ${CIOT_DIR}/src/win/*.c) |
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,6 @@ | ||
# PROJ_DIR = ../../.. | ||
# HDR_DIR = $(PROJ_DIR)/.. | ||
# HG_TCP_DIR = $(HDR_DIR)/hg_tcp | ||
NRF_SDK_12 = F:/projects/hedrosistemas/nRF5_SDK_12 | ||
NRF_SDK_17 = F:/projects/hedrosistemas/nRF5_SDK_17 | ||
CIOT_DIR = F:/projects/hedrosistemas/hg/ciot_c |
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,20 @@ | ||
include(../../common/Common.cmake) | ||
|
||
project(http_server) | ||
|
||
FILE(GLOB_RECURSE MAIN_SRCS *.c) | ||
|
||
include_directories( | ||
${CIOT_INCLUDE_DIRS} | ||
. | ||
) | ||
|
||
add_executable(${PROJECT_NAME} | ||
${CIOT_SRCS} | ||
${CIOT_MG_SRCS} | ||
${MAIN_SRCS} | ||
) | ||
|
||
if(WIN32) | ||
target_link_libraries(${PROJECT_NAME} ws2_32) | ||
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,36 @@ | ||
/** | ||
* @file ciot_custom_config.h | ||
* @author your name ([email protected]) | ||
* @brief | ||
* @version 0.1 | ||
* @date 2024-06-11 | ||
* | ||
* @copyright Copyright (c) 2024 | ||
* | ||
*/ | ||
|
||
#ifndef __CIOT_CUSTOM_CONFIG__H__ | ||
#define __CIOT_CUSTOM_CONFIG__H__ | ||
|
||
#define CIOT_CONFIG_LOG_LEVEL CIOT_LOG_LEVEL_INFO | ||
#define CIOT_CONFIG_APP_VER 0, 1, 0 | ||
#define CIOT_CONFIG_HARDWARE_NAME "CIoT HTTP Server" | ||
|
||
#define CIOT_CONFIG_FEATURE_STORAGE 0 | ||
#define CIOT_CONFIG_FEATURE_SYSTEM 1 | ||
#define CIOT_CONFIG_FEATURE_UART 0 | ||
#define CIOT_CONFIG_FEATURE_USB 0 | ||
#define CIOT_CONFIG_FEATURE_ETHERNET 0 | ||
#define CIOT_CONFIG_FEATURE_WIFI 0 | ||
#define CIOT_CONFIG_FEATURE_BLE_SCN 0 | ||
#define CIOT_CONFIG_FEATURE_GPIO 0 | ||
#define CIOT_CONFIG_FEATURE_NTP 0 | ||
#define CIOT_CONFIG_FEATURE_OTA 0 | ||
#define CIOT_CONFIG_FEATURE_DFU 0 | ||
#define CIOT_CONFIG_FEATURE_HTTP_CLIENT 0 | ||
#define CIOT_CONFIG_FEATURE_HTTP_SERVER 1 | ||
#define CIOT_CONFIG_FEATURE_MQTT_CLIENT 0 | ||
#define CIOT_CONFIG_FEATURE_TIMER 0 | ||
#define CIOT_CONFIG_FEATURE_SERIALIZER 0 | ||
|
||
#endif //!__CIOT_CUSTOM_CONFIG__H__ |
Oops, something went wrong.