Skip to content

Commit 1614960

Browse files
authored
Update README.md
1 parent 3626d7f commit 1614960

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
# lwip_nat_arduino
22
lwip library with NAT routing feature for Arduino environment
33

4+
## Sample
5+
For an example look into: "WiFiNATRouter.ino" that sets up a basic NAT router between the AP and the STA interface (works like a basic version of https://github.com/martin-ger/esp_wifi_repeater ).
6+
7+
The other example "CaptiveHotspot.ino" implements a skeleton of a hotspot with MAC filtering and a captive portal. In this sample it only asks for a confirmation of the "Terms of use" before enabling a certain MAC address. In a more sophisticated version it could ask for some credentials.
8+
49
## Install
510
Install the Arduino environment for the esp8266 as described here: https://github.com/esp8266/Arduino . As you are here, you probably did this already...
611

@@ -94,10 +99,6 @@ void dhcps_set_DNS(struct ip_addr *dns_ip) ICACHE_FLASH_ATTR;
9499

95100
This sets the DNS server that is distributed to the stations connected to the AP interface.
96101

97-
For an example look into: "WiFiNATRouter.ino" that sets up a basic NAT router between the AP and the STA interface (works like a basic version of https://github.com/martin-ger/esp_wifi_repeater ).
98-
99-
The other example "CaptiveHotspot.ino" implements a skeleton of a hotspot with MAC filtering and a captive portal. In this sample it only asks for a confirmation of the "Terms of use" before enabling a certain MAC address. In a more sophisticated version it could ask for some credentials.
100-
101102
## Routing
102103

103104
IPv4 also now supports a static routing table. In "ip_route.h" there are these new functions:

0 commit comments

Comments
 (0)