Basic setup with hook and arduino for esp32
This commit is contained in:
parent
8c36882772
commit
bb999311a7
9 changed files with 2812 additions and 0 deletions
20
ESP32Firewall/include/lwip_hooks.h
Normal file
20
ESP32Firewall/include/lwip_hooks.h
Normal file
|
@ -0,0 +1,20 @@
|
|||
#ifndef _LWIP_HOOKS_H_
|
||||
#define _LWIP_HOOKS_H_
|
||||
|
||||
#include "lwip/netif.h"
|
||||
#include "lwip/pbuf.h"
|
||||
#include "lwip/ip4.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
int lwip_hook_ip4_input(struct pbuf *pbuf, struct netif *input_netif);
|
||||
#define LWIP_HOOK_IP4_INPUT lwip_hook_ip4_input
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* _LWIP_HOOKS_H_ */
|
9
ESP32Firewall/include/theSecrets-example.h
Normal file
9
ESP32Firewall/include/theSecrets-example.h
Normal file
|
@ -0,0 +1,9 @@
|
|||
#ifndef _THE_SECRETS_H_
|
||||
#define _THE_SECRETS_H_
|
||||
|
||||
const char *ssid = "Wifi";
|
||||
const char *psk = "password";
|
||||
const char *username = "username";
|
||||
const char *password = "password";
|
||||
|
||||
#endif
|
Reference in a new issue