RF24Ethernet - TCP/IP over RF24Network v1.6.17
TMRh20 - Pushing the practical limits of RF24 modules
Loading...
Searching...
No Matches
RF24Server.h
Go to the documentation of this file.
1/*
2 RF24Server.h - Arduino implementation of a uIP wrapper class.
3 Copyright (c) 2014 tmrh20@gmail.com, github.com/TMRh20
4 Copyright (c) 2013 Norbert Truchsess <norbert.truchsess@t-online.de>
5 All rights reserved.
6 This program is free software: you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation, either version 3 of the License, or
9 (at your option) any later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
16 */
17
18#ifndef RF24SERVER_H
19#define RF24SERVER_H
20
21#include "Server.h"
22#include "RF24Client.h"
23#include "ethernet_comp.h"
24
25class RF24Server : public Server
26{
27
28public:
29 RF24Server(uint16_t);
31 void begin();
32#if defined(ESP32)
33 /* on esp32 this is a pure virtual func */
34 void begin(uint16_t port);
35#endif
36 size_t write(uint8_t);
37 size_t write(const uint8_t* buf, size_t size);
38 using Print::write;
39 void setTimeout(uint32_t timeout);
40
41private:
42 uint16_t _port;
43};
44
45#endif
size_t write(uint8_t)
void begin()
RF24Server(uint16_t)
RF24Client available()
void setTimeout(uint32_t timeout)