Trying to use hooks
This commit is contained in:
parent
0b94c99567
commit
1d159e6d7c
4 changed files with 27 additions and 8 deletions
|
@ -16,14 +16,6 @@
|
|||
static const char *WIFI_TAG = "wifi station";
|
||||
static const char *SERVER_TAG = "http server";
|
||||
|
||||
int my_hook(struct pbuf *pbuf, struct netif *input_netif)
|
||||
{
|
||||
ESP_LOGI(WIFI_TAG, "TESTING!");
|
||||
return ESP_OK;
|
||||
}
|
||||
|
||||
#define LWIP_HOOK_IP4_INPUT(pbuf, input_netif) my_hook(pbuf, input_netif)
|
||||
|
||||
/* FreeRTOS event group to signal when we are connected*/
|
||||
static EventGroupHandle_t s_wifi_event_group;
|
||||
|
||||
|
|
Reference in a new issue