Description
When running a project templated by esp-idf-template
and adding wifi.rs
from common
, I can not successfully run cargo build
.
I must admit, I'm a bit confused on the use of heapless in the esp_idf_svf::wifi Component. I thought the whole point of using the std
feature flag was to enable the use of std::String.
Note that I am aware of #233 and the usage of heapless:v.08
, however, since the esp-rs
book links to std-training
and std-training
uses esp_idf_svc:v.0.47.3
and neither crate uses Semver past 1.0, users (like me) could be rightfully confused on compilation errors when using the esp-idf-template
instead of the provided workshop
repository.
I think we should consider moving from .into
to try_from
, as the documentation of heapless
suggests.
Error:
error[E0277]: the trait bound `heapless::string::String<64>: From<&str>` is not satisfied
--> src/wifi.rs:59:24
|
59 | password: pass.into(),
| ^^^^ the trait `From<&str>` is not implemented for `heapless::string::String<64>`, which is required by `&str: Into<_>`
|
= note: required for `&str` to implement `Into<heapless::string::String<64>>`
Metadata
Metadata
Assignees
Labels
Type
Projects
Status