kaxori
04/21/2025, 4:04 PMfloitsch
04/22/2025, 8:42 AM-D flags.This means that you can't run Jaguar while having a container that sporadically connects to EPSNow.
The following options would fix this:
- allow WiFi and EPSNow at the same time. In theory the ESP-IDF supports this (as long as EPSNow uses the same channel as the WiFi). That's work that would probably need to be done by us.
- change Jaguar so it has a way to disconnect from WiFi. Maybe add a service to it that allows you to ask it to turn off the WiFi for a period of time. We did something similar in Artemis.
- use your own Jaguar implementation. Jaguar is getting more complicated with time, but the basics are really simple. You can probably reimplement a mini-version in ~100 lines of code? We did something similar for our testing: https://github.com/toitlang/toit/blob/master/tests/hw/esp-tester/mini-jag.toit
- implement a network service. Jaguar uses the standard network service which, by default, uses WiFi. However, you could add your own network service that supports disconnecting from WiFi. Artemis uses this to support other networks than WiFi (while still using net.open). This is basically a cleaner version of "change Jaguar" from above, since you get the same behavior but without changing Jaguar itself.
If you are interested in trying one of these options, let me know, and I can try to provide more information.kaxori
04/22/2025, 10:50 AMfloitsch
04/22/2025, 10:51 AMfloitsch
04/22/2025, 10:52 AMfloitsch
04/22/2025, 10:52 AMkaxori
04/22/2025, 11:00 AMfloitsch
04/22/2025, 2:55 PM