microsoft / devicescript

TypeScript for Tiny IoT Devices (ESP32, RP2040, ...)
https://microsoft.github.io/devicescript/
MIT License
3.28k stars 119 forks source link

wifi enable = false should turn off wifi #385

Open pelikhan opened 1 year ago

pelikhan commented 1 year ago

To save power, shut down wifi when enabled is false.

This work item will require knowledge of ESP-IDF.

Sadaf-A commented 1 year ago

@pelikhan greetings! this has caught my interest I would like to work on it. can you please elaborate a little, thank you.

pelikhan commented 1 year ago

Most likely this is a fix in https://github.com/microsoft/devicescript-esp32/blob/main/main/wifi_impl.c where we need to implement support for the enabled register (as described in https://microsoft.github.io/jacdac-docs/services/wifi/).

This work item requires familiarity with ESP-IDF programming.

Sadaf-A commented 1 year ago

@pelikhan I'm sorry I'm not familiar with ESP-IDF

pelikhan commented 1 year ago

This might be too much for you to chew on as a first contribution. Have you looked at the "good first issue" tag?

Sadaf-A commented 1 year ago

@pelikhan thanks for your recommendation I'll try to find a more beginner friendly issue