RF24Gateway - TCP/IP over RF24Network v2.1.1
TMRh20 - Pushing the practical limits of RF24 modules
|
#include <RF24Gateway.h>
Public Attributes | |
struct in_addr | ip |
struct in_addr | mask |
struct in_addr | gw |
If a user has created a file "routing.txt" in the RF24Gateway working directory, it will be loaded
at startup into the routing table. The file should contain standard routing table entries as follows:
IP<space>NetMask<space>Gateway
ie: routing.txt
The first example entry would route all traffic to the 10.1.4.x subnet to 10.1.3.33
All other traffic not destined for the RF24 nodes will use 10.1.3.34 as the gateway
Data can be accessed using standard linux Internet address manipulation routines as follows:
Definition at line 209 of file RF24Gateway.h.
struct in_addr ESBGateway< mesh_t, network_t, radio_t >::routeStruct::ip |
Definition at line 211 of file RF24Gateway.h.
struct in_addr ESBGateway< mesh_t, network_t, radio_t >::routeStruct::mask |
Definition at line 212 of file RF24Gateway.h.
struct in_addr ESBGateway< mesh_t, network_t, radio_t >::routeStruct::gw |
Definition at line 213 of file RF24Gateway.h.