![]() |
RSeries astromech firmware
|
#include <wifi/WifiSerialBridge.h>
Base template of automatic forwarder from i2c to CommandEvent.
Create an instance of this template to automatically forward i2c string commands to CommandEvent. A convenience type of I2CReceiver is provided that uses the default buffer size of 32 bytes. Only a single instance of I2CReceiver should be created per sketch.
To support more than one client (for example) use:
Inheritance diagram for WifiSerialBridgeBase< maxClients >:
Collaboration diagram for WifiSerialBridgeBase< maxClients >:Public Member Functions | |
| WifiSerialBridgeBase (HardwareSerial &serial, WifiAccess &wifiAccess, uint16_t port=2000) | |
| Constructor. More... | |
| 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] |
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 |
|
inlineoverridevirtual |
Implements WifiAccess::Notify.
|
inlineoverridevirtual |
Implements WifiAccess::Notify.
| WiFiClient WifiSerialBridgeBase< maxClients >::fClients[maxClients] |