RF24Ethernet - TCP/IP over RF24Network v1.6.17
TMRh20 - Pushing the practical limits of RF24 modules
|
#include <RF24Ethernet.h>
Public Member Functions | |
RF24EthernetClass (RF24 &_radio, RF24Network &_network, RF24Mesh &_mesh) | |
RF24EthernetClass () | |
void | use_device () |
void | begin (IP_ADDR myIP, IP_ADDR subnet) |
void | begin (IPAddress ip) |
void | begin (IPAddress ip, IPAddress dns) |
void | begin (IPAddress ip, IPAddress dns, IPAddress gateway) |
void | begin (IPAddress ip, IPAddress dns, IPAddress gateway, IPAddress subnet) |
void | set_gateway (IPAddress gwIP) |
void | listen (uint16_t port) |
void | setMac (uint16_t address) |
void | setChannel (uint8_t channel) |
int | available () |
IPAddress | localIP () |
IPAddress | subnetMask () |
IPAddress | gatewayIP () |
IPAddress | dnsServerIP () |
void | update () |
Friends | |
class | RF24Server |
class | RF24Client |
class | RF24UDP |
Definition at line 106 of file RF24Ethernet.h.
RF24EthernetClass::RF24EthernetClass | ( | RF24 & | _radio, |
RF24Network & | _network, | ||
RF24Mesh & | _mesh ) |
Constructor to set up the Ethernet layer. Requires the radio and network to be configured by the user this allows users to set custom settings at the radio or network level
Definition at line 34 of file RF24Ethernet.cpp.
RF24EthernetClass::RF24EthernetClass | ( | ) |
Basic constructor
void RF24EthernetClass::use_device | ( | ) |
This function is no longer needed, and does nothing
Definition at line 60 of file RF24Ethernet.cpp.
void RF24EthernetClass::begin | ( | IP_ADDR | myIP, |
IP_ADDR | subnet ) |
void RF24EthernetClass::begin | ( | IPAddress | ip | ) |
Configure the IP address and subnet mask of the node. This is independent of the RF24Network layer, so the IP and subnet only have to conform to standard IP routing rules within your network
Definition at line 100 of file RF24Ethernet.cpp.
References begin().
void RF24EthernetClass::begin | ( | IPAddress | ip, |
IPAddress | dns ) |
Definition at line 109 of file RF24Ethernet.cpp.
References begin().
void RF24EthernetClass::begin | ( | IPAddress | ip, |
IPAddress | dns, | ||
IPAddress | gateway ) |
Definition at line 118 of file RF24Ethernet.cpp.
References begin().
void RF24EthernetClass::begin | ( | IPAddress | ip, |
IPAddress | dns, | ||
IPAddress | gateway, | ||
IPAddress | subnet ) |
Definition at line 126 of file RF24Ethernet.cpp.
void RF24EthernetClass::set_gateway | ( | IPAddress | gwIP | ) |
Configure the gateway IP address. This is generally going to be your master node with RF24Network address 00.
Definition at line 164 of file RF24Ethernet.cpp.
References uip_ip_addr.
void RF24EthernetClass::listen | ( | uint16_t | port | ) |
Listen to a specified port - This will likely be changed to closer match the Arduino Ethernet API with server.begin();
Definition at line 173 of file RF24Ethernet.cpp.
void RF24EthernetClass::setMac | ( | uint16_t | address | ) |
Sets the MAC address of the RF24 module, which is an RF24Network address Specify an Octal address to assign to this node, which will be used as the Ethernet mac address If setting up only a few nodes, use 01 to 05 Please reference the RF24Network documentation for information on setting up a static network RF24Mesh will be integrated to provide this automatically
Definition at line 67 of file RF24Ethernet.cpp.
References uip_seteth_addr.
void RF24EthernetClass::setChannel | ( | uint8_t | channel | ) |
Sets the Radio channel/frequency to use (0-127)
Definition at line 90 of file RF24Ethernet.cpp.
int RF24EthernetClass::available | ( | ) |
Indicates whether data is available.
IPAddress RF24EthernetClass::localIP | ( | ) |
Returns the local IP address
Definition at line 180 of file RF24Ethernet.cpp.
References ip_addr_uip.
IPAddress RF24EthernetClass::subnetMask | ( | ) |
IPAddress RF24EthernetClass::gatewayIP | ( | ) |
Returns the gateway IP address
Definition at line 200 of file RF24Ethernet.cpp.
References ip_addr_uip.
IPAddress RF24EthernetClass::dnsServerIP | ( | ) |
Returns the DNS server IP address
Definition at line 210 of file RF24Ethernet.cpp.
void RF24EthernetClass::update | ( | ) |
Keeps the TCP/IP stack running & processing incoming data
Definition at line 53 of file RF24Ethernet.cpp.
References Ethernet.
|
friend |
Definition at line 224 of file RF24Ethernet.h.
|
friend |
Definition at line 225 of file RF24Ethernet.h.
|
friend |
Definition at line 226 of file RF24Ethernet.h.