|
RF24Ethernet - TCP/IP over RF24Network v2.0.1
TMRh20 - Pushing the practical limits of RF24 modules
|
#include <RF24Udp.h>
Public Member Functions | |
| RF24UDP () | |
| Constructor. | |
| uint8_t | begin (uint16_t) |
| initialize, start listening on specified port. | |
| void | stop () |
| Finish with the UDP socket. | |
| int | beginPacket (IPAddress ip, uint16_t port) |
| Sending UDP packets. | |
| int | beginPacket (const char *host, uint16_t port) |
| int | endPacket () |
| Finish off this packet and send it. | |
| size_t | write (uint8_t) |
| Write a single byte into the packet. | |
| size_t | write (const uint8_t *buffer, size_t size) |
Write size bytes from buffer into the packet. | |
| int | parsePacket () |
| int | available () |
| int | read () |
| int | read (unsigned char *buffer, size_t len) |
| int | read (char *buffer, size_t len) |
| int | peek () |
| void | flush () |
| IPAddress | remoteIP () |
| uint16_t | remotePort () |
Friends | |
| class | RF24EthernetClass |
| class | RF24Client |
| void | uipudp_appcall (void) |
| RF24UDP::RF24UDP | ( | ) |
Constructor.
Definition at line 58 of file RF24Udp.cpp.
| uint8_t RF24UDP::begin | ( | uint16_t | port | ) |
initialize, start listening on specified port.
Definition at line 65 of file RF24Udp.cpp.
| void RF24UDP::stop | ( | ) |
Finish with the UDP socket.
Definition at line 96 of file RF24Udp.cpp.
| int RF24UDP::beginPacket | ( | IPAddress | ip, |
| uint16_t | port ) |
Sending UDP packets.
Start building up a packet to send to the remote host specific in ip and port
Definition at line 124 of file RF24Udp.cpp.
References IF_RF24ETHERNET_DEBUG_UDP.
Referenced by beginPacket().
| int RF24UDP::beginPacket | ( | const char * | host, |
| uint16_t | port ) |
Start building up a packet to send to the remote host specific in host and port
Definition at line 203 of file RF24Udp.cpp.
References DNSClient::begin(), beginPacket(), DNSClient::getHostByName(), and RF24Ethernet.
| int RF24UDP::endPacket | ( | ) |
Finish off this packet and send it.
Definition at line 245 of file RF24Udp.cpp.
References IF_RF24ETHERNET_DEBUG_UDP.
| size_t RF24UDP::write | ( | uint8_t | c | ) |
Write a single byte into the packet.
Definition at line 273 of file RF24Udp.cpp.
References write().
Referenced by write().
| size_t RF24UDP::write | ( | const uint8_t * | buffer, |
| size_t | size ) |
Write size bytes from buffer into the packet.
Definition at line 281 of file RF24Udp.cpp.
References RF24Client::all_data, and IF_RF24ETHERNET_DEBUG_UDP.
| int RF24UDP::parsePacket | ( | ) |
Start processing the next available incoming packet
Definition at line 306 of file RF24Udp.cpp.
References IF_RF24ETHERNET_DEBUG_UDP.
| int RF24UDP::available | ( | ) |
Number of bytes remaining in the current packet
Definition at line 333 of file RF24Udp.cpp.
| int RF24UDP::read | ( | ) |
| int RF24UDP::read | ( | unsigned char * | buffer, |
| size_t | len ) |
Read up to len bytes from the current packet and place them into buffer
Definition at line 360 of file RF24Udp.cpp.
References RF24Client::all_data.
|
inline |
| int RF24UDP::peek | ( | ) |
Definition at line 397 of file RF24Udp.cpp.
References RF24Client::all_data.
| void RF24UDP::flush | ( | ) |
| IPAddress RF24UDP::remoteIP | ( | ) |
Return the IP address of the host who sent the current incoming packet
Definition at line 435 of file RF24Udp.cpp.
| uint16_t RF24UDP::remotePort | ( | ) |
Return the port of the host who sent the current incoming packet
Definition at line 456 of file RF24Udp.cpp.
|
friend |
Definition at line 168 of file RF24Udp.h.
References RF24EthernetClass.
Referenced by RF24EthernetClass.
|
friend |
|
friend |
Definition at line 473 of file RF24Udp.cpp.
References RF24Client::all_data, IF_RF24ETHERNET_DEBUG_UDP, and UDPBUF.