Midnight Sun Firmware
Loading...
Searching...
No Matches
ServerAppCallback

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...
 

Detailed Description

Application Callback functions for the Server.

Function Documentation

◆ applicationConnectCallback()

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

Parameters
serverPointer to the server
clientPointer to the connected clientConnection instance

◆ applicationMessageCallback()

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

Parameters
serverPointer to the server
clientPointer to the connected clientConnection instance
messageString message value that has been received