Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Espnow tutorials needed #1806

Open
nne998 opened this issue Sep 13, 2023 · 3 comments
Open

Espnow tutorials needed #1806

nne998 opened this issue Sep 13, 2023 · 3 comments

Comments

@nne998
Copy link

nne998 commented Sep 13, 2023

Hi,
Is there any espnow tutorials for esp32c3 chip ?

Thank you

@floitsch
Copy link
Member

We don't have a tutorial yet, but there is an example here: https://github.com/toitlang/toit/blob/master/examples/espnow.toit

Note that Toit doesn't support running espnow at the same time as WiFi.

If you are using Jaguar, you have to disable Jaguar, so it doesn't start up the WiFi while the espnow program is running.

jag container install -D jag.disabled -D jag.timeout=2m  espnow examples/espnow.toit

This would disable Jaguar for 2 minutes while the espnow example is running.

@kidandcat
Copy link

We don't have a tutorial yet, but there is an example here: https://github.com/toitlang/toit/blob/master/examples/espnow.toit

Note that Toit doesn't support running espnow at the same time as WiFi.

If you are using Jaguar, you have to disable Jaguar, so it doesn't start up the WiFi while the espnow program is running.

jag container install -D jag.disabled -D jag.timeout=2m  espnow examples/espnow.toit

This would disable Jaguar for 2 minutes while the espnow example is running.

Can it be done with Artemis too? And what happens when the timeout expires if the app is still running? will it start failing? or will jaguar/artemis fail to configure the wifi?

@kasperl
Copy link
Member

kasperl commented Nov 16, 2024

@kidandcat Artemis allows you to stop the networking while your app runs, so that way you can programatically insist that Artemis doens't interfere with your WiFi / espnow usage.

https://pkg.toit.io/github.com/toitware/[email protected]/docs/artemis/library-summary#run(3%2C1%2C0%2Coffline%2Ctimeout)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

4 participants