Station API
Station Class Reference
A simple command/response network interface for mbed. More...
#include <Station.h>
Public Member Functions | |
Station (int port) | |
creates a Station object | |
void | addHandler (string command, void(*handler)(void)) |
adds a command handler | |
template<typename T > | |
void | addHandler (string command, T *tptr, void(T::*handler)(void)) |
adds a command handler | |
void | setBuffer (char *buf, int length) |
sets the buffer for communication between caller and callee | |
void | handleClient () |
Check for any client and handle its request. |
Detailed Description
A simple command/response network interface for mbed.
Definition at line 33 of file Station.h.
Constructor & Destructor Documentation
Station | ( | int | port ) |
Member Function Documentation
void addHandler | ( | string | command, |
void(*)(void) | handler | ||
) |
void addHandler | ( | string | command, |
T * | tptr, | ||
void(T::*)(void) | handler | ||
) |
void handleClient | ( | ) |
Generated on Wed Jul 20 2022 21:57:17 by 1.7.2