Skip to content

Could not compile esp-wifi (lib) #346

Closed Answered by JurajSadel
liyang8246 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi, @liyang8246! You are mixing std crates with no_std ones.

We have support for both directions. For std we have crates with names like esp-idf-XXX (the idf in the middle is important here). For no_std it's esp-XXX. For more information, please look at Overview of Development Approaches.

In your case, you've created an std project via esp-idf-template and you are trying to use it together with esp-wifi, which is no_std. If you want to experiment with esp-wifi, use esp-template instead.

If you are a beginner in embedded rust, starting with repository examples might be a better way.
For no_std you could try these examples esp-wifi or esp-hal.
For std esp-idf-hal or the all-in-one beast rus…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@liyang8246
Comment options

Answer selected by liyang8246
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #345 on November 15, 2023 06:19.