sethcurry/scwifi

0.0.1

Latest
uploaded 2 days ago
A component for easily configuring basic wifi

readme

# scwifi

This is a basic component for configuring wifi access.

You can set your SSID and password with `idf.py menuconfig` under the "WiFi settings" option.

From there, just import the header and call `start_wifi()`.  E.g.:

```
#include "scwifi.h"

void app_main(void)
{
	// I believe this is required for wifi to work
	esp_err_t ret = nvs_flash_init();
  	if (ret == ESP_ERR_NVS_NO_FREE_PAGES || ret == ESP_ERR_NVS_NEW_VERSION_FOUND) {
		ESP_ERROR_CHECK(nvs_flash_erase());
		ret = nvs_flash_init();
	}

	start_wifi();
}
```

Links

Supports all targets

License: MIT

To add this component to your project, run:

idf.py add-dependency "sethcurry/scwifi^0.0.1"

download archive

Stats

  • Archive size
    Archive size ~ 3.43 KB
  • Downloaded in total
    Downloaded in total 0 times
  • Downloaded this version
    This version: 0 times

Badge

sethcurry/scwifi version: 0.0.1
|