Midnight Sun Firmware
|
Application Callback functions for the Server. More...
Functions | |
void | applicationMessageCallback (Server *server, ClientConnection *client, std::string &message) |
Handle receiving new client messages. More... | |
void | applicationConnectCallback (Server *server, ClientConnection *client) |
Handle connecting to a new client. More... | |
Application Callback functions for the Server.
void applicationConnectCallback | ( | Server * | server, |
ClientConnection * | client | ||
) |
Handle connecting to a new client.
This shall notify the user about a new client connection This shall refresh the application interface with the new client data
server | Pointer to the server |
client | Pointer to the connected clientConnection instance |
void applicationMessageCallback | ( | Server * | server, |
ClientConnection * | client, | ||
std::string & | message | ||
) |
Handle receiving new client messages.
This shall handle all CommandCodes received This shall branch out to the GpioManager, I2CManager, SPIManager or InterruptManager based on the CommandCode
server | Pointer to the server |
client | Pointer to the connected clientConnection instance |
message | String message value that has been received |