make example code cute uwu
This commit is contained in:
@@ -22,7 +22,6 @@ and then in C
|
||||
#include <network.h>
|
||||
#include <esp_event.h>
|
||||
|
||||
|
||||
static const wifi_networks_t known_networks = {
|
||||
.nets = {
|
||||
{"DAA+", "password"},
|
||||
@@ -55,4 +54,4 @@ just register the callback before with
|
||||
esp_event_handler_register(IP_EVENT, IP_EVENT_STA_GOT_IP, &on_get_ip, nullptr);
|
||||
```
|
||||
|
||||
Event loop is global so as long as you include `<esp_event.h>` you can write and register a callback to anything you need to.
|
||||
Event loop is global so as long as you include `<esp_event.h>` you can write and register a callback to anything you need to. You might also need `<esp_netif.h>`
|
||||
|
||||
Reference in New Issue
Block a user