-
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 #7 from mawoka-myblock/edge-http-test
Migration to Edge-Http
- Loading branch information
Showing
7 changed files
with
611 additions
and
501 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 |
---|---|---|
|
@@ -4,7 +4,7 @@ version = "0.1.0" | |
authors = ["Mawoka <[email protected]>"] | ||
edition = "2021" | ||
resolver = "2" | ||
rust-version = "1.77" | ||
rust-version = "1.84" | ||
|
||
[[bin]] | ||
name = "td-free-rs" | ||
|
@@ -21,50 +21,30 @@ strip = true | |
debug = true # Symbols are nice and they don't increase the size on Flash | ||
opt-level = "z" | ||
|
||
[features] | ||
ota = ["dep:esp-ota"] | ||
default = ["std", "esp-idf-svc/native"] | ||
#critical-section-impl = ["critical-section/restore-state-none"] | ||
|
||
pio = ["esp-idf-svc/pio"] | ||
std = ["alloc", "esp-idf-svc/binstart", "esp-idf-svc/std"] | ||
alloc = ["esp-idf-svc/alloc"] | ||
nightly = ["esp-idf-svc/nightly"] | ||
experimental = ["esp-idf-svc/experimental"] | ||
embassy = [ | ||
"esp-idf-svc/embassy-sync", | ||
"esp-idf-svc/critical-section", | ||
"esp-idf-svc/embassy-time-driver", | ||
] | ||
|
||
[dependencies] | ||
log = { version = "0.4", default-features = false } | ||
esp-idf-svc = { version = "0.49", default-features = false, features= ["experimental"] } | ||
log = "0.4" | ||
esp-idf-svc = { version = "0.51", features= ["experimental", "embassy-time-driver", "critical-section"] } | ||
embedded-hal = "1" | ||
heapless = "0.8" | ||
|
||
|
||
edge-http = "0.5.1" | ||
edge-captive = "0.5" | ||
edge-nal = "0.5" | ||
edge-ws = "0.4" | ||
edge-nal-std = { version = "0.5", features = ["async-io-mini"] } | ||
embedded-io-async = "0.6" | ||
anyhow = "1" | ||
url = "2.5" | ||
esp-ota = { git= "https://github.com/KevinBeckers/esp-ota.git", rev = "d6b572f1df6b68135666d6802f8c9b273ef03f17", optional = true} | ||
|
||
|
||
veml7700 = "0.2.0" | ||
ws2812-esp32-rmt-driver = { version = "0.9", features = ["smart-leds-trait"] } | ||
smart-leds = "0.4" | ||
#smol = { version = "2" } | ||
#embedded-svc = "0.28" | ||
|
||
#edge-captive = { version = "0.3", features = ["std", "io"] } | ||
#edge-nal-std = "0.3" | ||
#async-io-mini = "0.2" | ||
|
||
embassy-time = { version = "0.4", features = ["log", "generic-queue-8"] } | ||
embassy-futures = "0.1" | ||
async-std = {version = "1.13"} | ||
smart-leds = "*" | ||
ws2812-esp32-rmt-driver = { version = "*", features = ["smart-leds-trait"] } | ||
|
||
[build-dependencies] | ||
embuild = "0.32.0" | ||
embuild = {version = "0.33", features = ["espidf"]} | ||
vergen-gix = { version = "1", features = ["build", "rustc"] } | ||
anyhow = "1" | ||
cc = "=1.1.20" | ||
|
||
# [package.metadata.espflash] | ||
# partition_table = "partitions.csv" |
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,13 +1,2 @@ | ||
# Rust often needs a bit of an extra main task stack size compared to C (the default is 3K) | ||
CONFIG_ESP_MAIN_TASK_STACK_SIZE=15000 | ||
CONFIG_PTHREAD_TASK_STACK_SIZE_DEFAULT=10000 | ||
CONFIG_HTTPD_WS_SUPPORT=y | ||
CONFIG_LWIP_LOCAL_HOSTNAME=tdfree | ||
|
||
# Use this to set FreeRTOS kernel tick frequency to 1000 Hz (100 Hz by default). | ||
# This allows to use 1 ms granularity for thread sleeps (10 ms by default). | ||
#CONFIG_FREERTOS_HZ=1000 | ||
|
||
# Workaround for https://github.com/espressif/esp-idf/issues/7631 | ||
#CONFIG_MBEDTLS_CERTIFICATE_BUNDLE=n | ||
#CONFIG_MBEDTLS_CERTIFICATE_BUNDLE_DEFAULT_FULL=n | ||
CONFIG_ESP_MAIN_TASK_STACK_SIZE=50000 | ||
CONFIG_ESP_SYSTEM_EVENT_TASK_STACK_SIZE=4096 |
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
Oops, something went wrong.