Skip to content

Commit

Permalink
HTTP/S Server/Client Module (pycom#118)
Browse files Browse the repository at this point in the history
  • Loading branch information
mate-pycom authored Jun 10, 2020
1 parent bddca69 commit 2b3207f
Show file tree
Hide file tree
Showing 53 changed files with 1,741 additions and 227 deletions.
4 changes: 2 additions & 2 deletions esp32/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ ifeq ($(wildcard boards/$(BOARD)/.),)
$(error Invalid BOARD specified)
endif

IDF_HASH=d072c55
IDF_HASH=1f96153

TARGET ?= boot_app

Expand Down Expand Up @@ -103,7 +103,7 @@ LIBS = -L$(ESP_IDF_COMP_PATH)/esp32/lib -L$(ESP_IDF_COMP_PATH)/esp32/ld -L$(ESP_
$(ESP_IDF_COMP_PATH)/newlib/lib/libc-psram-workaround.a \
-lfreertos -ljson -ljsmn -llwip -lnewlib -lvfs -lopenssl -lmbedtls -lwpa_supplicant \
-lxtensa-debug-module -lbt -lsdmmc -lsoc -lheap -lbootloader_support -lmicro-ecc \
-u ld_include_panic_highint_hdl -lsmartconfig_ack -lmesh -lesp_ringbuf -lcoap -lmdns -lefuse -lespcoredump -lapp_update
-u ld_include_panic_highint_hdl -lsmartconfig_ack -lmesh -lesp_ringbuf -lcoap -lmdns -lefuse -lespcoredump -lapp_update -lesp_http_server -lesp_https_server -lesp_http_client -ltcp_transport -lesp-tls
ifeq ($(BOARD), $(filter $(BOARD), SIPY LOPY4 FIPY))
LIBS += sigfox/modsigfox_$(BOARD).a
$(BUILD)/application.elf: sigfox/modsigfox_$(BOARD).a
Expand Down
12 changes: 12 additions & 0 deletions esp32/application.mk
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,17 @@ APP_INC += -I$(ESP_IDF_COMP_PATH)/coap/libcoap/examples
APP_INC += -I$(ESP_IDF_COMP_PATH)/coap/port/include
APP_INC += -I$(ESP_IDF_COMP_PATH)/coap/port/include/coap
APP_INC += -I$(ESP_IDF_COMP_PATH)/mdns/include
APP_INC += -I$(ESP_IDF_COMP_PATH)/esp_https_server/include
APP_INC += -I$(ESP_IDF_COMP_PATH)/esp_http_server/include
APP_INC += -I$(ESP_IDF_COMP_PATH)/esp_http_server/src
APP_INC += -I$(ESP_IDF_COMP_PATH)/esp_http_server/src/port/esp32
APP_INC += -I$(ESP_IDF_COMP_PATH)/esp_http_client/include
APP_INC += -I$(ESP_IDF_COMP_PATH)/esp_http_client/lib/include
APP_INC += -I$(ESP_IDF_COMP_PATH)/openssl/include
APP_INC += -I$(ESP_IDF_COMP_PATH)/nghttp/port/include
APP_INC += -I$(ESP_IDF_COMP_PATH)/tcp_transport
APP_INC += -I$(ESP_IDF_COMP_PATH)/esp-tls
APP_INC += -I$(ESP_IDF_COMP_PATH)/tcp_transport/include
APP_INC += -I../lib/mp-readline
APP_INC += -I../lib/netutils
APP_INC += -I../lib/oofatfs
Expand Down Expand Up @@ -162,6 +173,7 @@ APP_MODS_SRC_C = $(addprefix mods/,\
machtouch.c \
modcoap.c \
modmdns.c \
modhttp.c \
)

APP_MODS_LORA_SRC_C = $(addprefix mods/,\
Expand Down
Binary file modified esp32/bootloader/lib/libbootloader_support.a
Binary file not shown.
Binary file modified esp32/bootloader/lib/libefuse.a
Binary file not shown.
Binary file modified esp32/bootloader/lib/liblog.a
Binary file not shown.
Binary file modified esp32/bootloader/lib/libmicro-ecc.a
Binary file not shown.
Binary file modified esp32/bootloader/lib/libsoc.a
Binary file not shown.
Binary file modified esp32/bootloader/lib/libspi_flash.a
Binary file not shown.
448 changes: 224 additions & 224 deletions esp32/esp32.project.ld

Large diffs are not rendered by default.

6 changes: 5 additions & 1 deletion esp32/get_idf_libs.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,11 @@ def main():
shutil.copy(src + '/efuse/libefuse.a', dsttmpapp)
shutil.copy(src + '/espcoredump/libespcoredump.a', dsttmpapp)
shutil.copy(src + '/app_update/libapp_update.a', dsttmpapp)

shutil.copy(src + '/esp_http_server/libesp_http_server.a', dsttmpapp)
shutil.copy(src + '/esp_https_server/libesp_https_server.a', dsttmpapp)
shutil.copy(src + '/esp_http_client/libesp_http_client.a', dsttmpapp)
shutil.copy(src + '/tcp_transport/libtcp_transport.a', dsttmpapp)
shutil.copy(src + '/esp-tls/libesp-tls.a', dsttmpapp)
except:
print("Couldn't Copy IDF libs defaulting to Local Lib Folders!")
traceback.print_exc()
Expand Down
Binary file modified esp32/lib/libapp_update.a
Binary file not shown.
Binary file modified esp32/lib/libbootloader_support.a
Binary file not shown.
Binary file modified esp32/lib/libbt.a
Binary file not shown.
Binary file modified esp32/lib/libcoap.a
Binary file not shown.
Binary file modified esp32/lib/libcxx.a
Binary file not shown.
Binary file modified esp32/lib/libdriver.a
Binary file not shown.
Binary file modified esp32/lib/libefuse.a
Binary file not shown.
Binary file added esp32/lib/libesp-tls.a
Binary file not shown.
Binary file modified esp32/lib/libesp32.a
Binary file not shown.
Binary file modified esp32/lib/libesp_adc_cal.a
Binary file not shown.
Binary file added esp32/lib/libesp_http_client.a
Binary file not shown.
Binary file added esp32/lib/libesp_http_server.a
Binary file not shown.
Binary file added esp32/lib/libesp_https_server.a
Binary file not shown.
Binary file modified esp32/lib/libesp_ringbuf.a
Binary file not shown.
Binary file modified esp32/lib/libespcoredump.a
Binary file not shown.
Binary file modified esp32/lib/libexpat.a
Binary file not shown.
Binary file modified esp32/lib/libfreertos.a
Binary file not shown.
Binary file modified esp32/lib/libheap.a
Binary file not shown.
Binary file modified esp32/lib/libjsmn.a
Binary file not shown.
Binary file modified esp32/lib/libjson.a
Binary file not shown.
Binary file modified esp32/lib/liblog.a
Binary file not shown.
Binary file modified esp32/lib/liblwip.a
Binary file not shown.
Binary file modified esp32/lib/libmbedtls.a
Binary file not shown.
Binary file modified esp32/lib/libmdns.a
Binary file not shown.
Binary file modified esp32/lib/libmicro-ecc.a
Binary file not shown.
Binary file modified esp32/lib/libnewlib.a
Binary file not shown.
Binary file modified esp32/lib/libnghttp.a
Binary file not shown.
Binary file modified esp32/lib/libnvs_flash.a
Binary file not shown.
Binary file modified esp32/lib/libopenssl.a
Binary file not shown.
Binary file modified esp32/lib/libpthread.a
Binary file not shown.
Binary file modified esp32/lib/libsdmmc.a
Binary file not shown.
Binary file modified esp32/lib/libsmartconfig_ack.a
Binary file not shown.
Binary file modified esp32/lib/libsoc.a
Binary file not shown.
Binary file modified esp32/lib/libspi_flash.a
Binary file not shown.
Binary file added esp32/lib/libtcp_transport.a
Binary file not shown.
Binary file modified esp32/lib/libtcpip_adapter.a
Binary file not shown.
Binary file modified esp32/lib/libvfs.a
Binary file not shown.
Binary file modified esp32/lib/libwpa_supplicant.a
Binary file not shown.
Binary file modified esp32/lib/libxtensa-debug-module.a
Binary file not shown.
Loading

0 comments on commit 2b3207f

Please sign in to comment.