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

Application Callback functions for the Client. More...

Functions

void applicationMessageCallback (Client *client, std::string &message)
 Handle receiving new client messages. More...
 
void applicationConnectCallback (Client *client)
 Handle connecting to the server. More...
 

Detailed Description

Application Callback functions for the Client.

Function Documentation

◆ applicationConnectCallback()

void applicationConnectCallback ( Client client)

Handle connecting to the server.

This shall notify the user about a new server connection

Parameters
clientPointer to the connected client instance

◆ applicationMessageCallback()

void applicationMessageCallback ( Client 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
clientPointer to the connected client instance
messageString message value that has been received