35 #include "safec_lib.h"
37 #define SAFEC_ERR_CHECK(safec_rc) if(safec_rc != EOK) {\
42 int main(
int argc,
char** argv)
44 #ifdef ENABLE_MFR_WIFI
47 errno_t safec_rc = -1;
51 printf(
"usage is : ./mfr_wifiSetCredentials <SSID Name> <SSID Password> <Security mode>\n");
55 printf(
"Client Entering\r\n");
59 param.requestType=WIFI_SET_CREDENTIALS;
60 safec_rc = strcpy_s(param.wifiCredentials.cSSID,
sizeof(param.wifiCredentials.cSSID), argv[1]);
61 SAFEC_ERR_CHECK(safec_rc);
63 safec_rc = strcpy_s(param.wifiCredentials.cPassword,
sizeof(param.wifiCredentials.cPassword), argv[2]);
64 SAFEC_ERR_CHECK(safec_rc);
67 param.wifiCredentials.iSecurityMode=-1;
70 param.wifiCredentials.iSecurityMode=atoi(argv[3]);
75 printf(
"IARM_Bus_Call Success...\n");
79 printf(
"Problem with IARM_Bus_Call \n");
82 while(getchar()!=
'x') {
89 printf(
"Client Exiting\r\n");
91 printf(
"WIFI NOT SUPPORTED IN THIS DEVICE Exiting\r\n");