CHAPTER
4
SAMPLE CODE
Start/Stop Server
Start Server
// Logging doesn't rely on the Server, so we can initialize the level at the
beginning.
SetLogLevelWifi(ELL_DEBUG);
Result_t res = StartServer(strIP, lPort);
If (res == RESULT_SUCCESS)
{
}
8680i WiFi SDK User Guide
// Register the callback functions for receiving the events.
RegCallbacksWithWifi(OnConnect, OnDisconnect,
OnDecode, OnPressButton,
OnGetSymbProp, OnSendMenuCmd);
25