Download Summit Software Developer`s Kit
Transcript
Programmers Guide
Summit SDK
SAMPLE CODE
ActivateConfig Sample Code
SDCERR sdcErr;
//Use the name of a valid config
sdcErr = ActivateConfig("config 1");
if (sdcErr == SDCERR_SUCCESS)
AfxMessageBox(_T("Activate Config OK"));
else
AfxMessageBox(_T("Activate Config FAILED"));
Function: ActivateConfig
AddConfig Sample Code
SDCConfig config;
SDCERR sdcErr;
memset(&config, 0, sizeof(SDCConfig));
// Setting Defaults
sprintf(config.configName,"config 1");
sprintf(config.SSID,"Summit1");
sprintf(config.clientName,"client 1");
config.txPower = TXPOWER_MAX;
config.authType = AUTH_OPEN;
config.eapType = EAP_NONE;
config.powerSave = POWERSAVE_FAST;
config.wepType = WEP_OFF;
config.bitRate = BITRATE_AUTO;
config.radioMode = RADIOMODE_BG;
sdcErr = AddConfig(&config);
if (sdcErr == SDCERR_SUCCESS)
AfxMessageBox(_T("Added Config OK"));
else
AfxMessageBox(_T("Added Config FAILED"));
Function: AddConfig
Embedded Wireless Solutions Support Center:
http://ews-support.lairdtech.com
www.lairdtech.com/wireless
83
Laird Technologies
Americas: +1-800-492-2320
Europe: +44-1628-858-940
Hong Kong: +852 2923 0610