jurajsadel / esp32c3-no-std-async-mqtt-demo Goto Github PK
View Code? Open in Web Editor NEWLicense: Apache License 2.0
License: Apache License 2.0
It's very nice example for ESP32-C3.
Please, could you provide also the example for other most common ESP32 chips like plain old ESP32 and ESP32-S3 which are popular in some ePaper based boards?
In some routers, the program crashes with the following panic:
I (270) boot: Disabling RNG early entropy source...
start connection task
Device capabilities: Ok(EnumSet(Client | AccessPoint))
Starting wifi
Wifi started!
About to connect...
Wifi connected!
Waiting to get IP address...
!! A panic occured in '/home/sergio/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smoltcp-0.10.0/src/socket/dns.rs', at line 170, column 49
PanicInfo {
payload: Any { .. },
message: Some(
called `Result::unwrap()` on an `Err` value: (),
),
location: Location {
file: "/home/sergio/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smoltcp-0.10.0/src/socket/dns.rs",
line: 170,
col: 49,
},
can_unwind: true,
}
The solution was proposed by @MabezDev in #1 (comment):
For my router I also needed to bump the number of DNS servers smoltcp has capacity for with:
# .cargo/config.toml [env] SMOLTCP_DNS_MAX_SERVER_COUNT = "3"
Be warned that you have to do a clean build for those changes to take effect, see: rust-lang/cargo#10358
Current version of README does not contain instructions on how to build the project.
Build fails with:
error: environment variable `SSID` not defined at compile time
--> src/main.rs:49:20
|
49 | const SSID: &str = env!("SSID");
| ^^^^^^^^^^^^
|
= help: use `std::env::var("SSID")` to read the variable at run time
= note: this error originates in the macro `env` (in Nightly builds, run with -Z macro-backtrace for more info)
error: environment variable `PASSWORD` not defined at compile time
--> src/main.rs:50:24
|
50 | const PASSWORD: &str = env!("PASSWORD");
| ^^^^^^^^^^^^^^^^
|
= help: use `std::env::var("PASSWORD")` to read the variable at run time
= note: this error originates in the macro `env` (in Nightly builds, run with -Z macro-backtrace for more info)
Instead of initializing the executor manually
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.