RSeries astromech firmware
|
#include <wifi/WifiMarcduinoReceiver.h>
Base template of Marcduino receiver over WiFi.
Instances of this template will invoke the provided callback function when a complete Marcduino command has been received over TCP/IP on port 2000 (default).
To support more than one client (for example) use:
Public Member Functions | |
WifiMarcduinoReceiverBase (WifiAccess &wifiAccess, uint16_t port=2000) | |
Constructor. More... | |
void | setCommandHandler (void(*commandHandler)(const char *cmd)) |
void | setEnabled (bool enabled) |
bool | enabled () |
virtual void | wifiConnected (WifiAccess &access) override |
virtual void | wifiDisconnected (WifiAccess &access) override |
virtual void | animate () override |
Dispatch any received i2c event to CommandEvent. More... | |
Public Member Functions inherited from AnimatedEvent | |
AnimatedEvent () | |
Default Constructor. More... | |
void | setLoopDoneCallback (AnimatedLoopDone loopProc) |
Public Attributes | |
WiFiClient | fClients [maxClients] |
uint32_t | fClientLastMsg [maxClients] = {} |
Additional Inherited Members | |
Static Public Member Functions inherited from AnimatedEvent | |
static void | process () |
Calls animate() for each created AnimatedEvent subclass. More... | |
|
inline |
Constructor.
Only a single instance of WifiSerialBridge should be created per sketch.
port | the port number of this service |
|
inlineoverridevirtual |
Dispatch any received i2c event to CommandEvent.
Implements AnimatedEvent.
|
inline |
|
inline |
|
inline |
|
inlineoverridevirtual |
Implements WifiAccess::Notify.
|
inlineoverridevirtual |
Implements WifiAccess::Notify.
uint32_t WifiMarcduinoReceiverBase< maxClients, BUFFER_SIZE >::fClientLastMsg[maxClients] = {} |
WiFiClient WifiMarcduinoReceiverBase< maxClients, BUFFER_SIZE >::fClients[maxClients] |