https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/330
(cherry picked from commit
ee54128ab52b613734213d16cdbaebb0c9c1c409)
Change-Id: I5841fd01f0fd831bf8b7269db1fd305746ab9437
Signed-off-by: agrkush <kush.agrawal@samsung.com>
Signed-off-by: Amit KS <amit.s12@samsung.com>
ESResult SetSCPnPPin(const char *pnp);
ESResult SetESVersionInfo(const char *esVersionInfo);
+ESResult SetSSOList(const char *ssoList);
#endif /* EASYSETUPX_ENROLLEE_H__ */
return ES_ERROR;
}
+ESResult SetSSOList(const char *ssoList)
+{
+ if(ssoList != NULL)
+ {
+ OICStrcpy(g_SCProperties.ssoList, sizeof(g_SCProperties.ssoList), ssoList);
+ return ES_OK;
+ }
+ return ES_ERROR;
+}
+
void ReadUserdataCb(OCRepPayload* payload, char* resourceType, void** userdata)
{
OIC_LOG(INFO, SC_ENROLLEE_TAG, "ReadUserdataCb IN");
if(SetSCProperties(&g_SCProperties) == ES_ERROR)
printf("SetSCProperties Error\n");
+ if(SetSSOList( "[{\"AvailableCount\" : \"1\", \"RegisteredCount\" : \"3\", \"AccountList\" : {\"aaa@samsung.com\", \"bbb@samsung.com\",\"ccc@samsung.com\"} }] ")== ES_ERROR)
+ printf("SetSSOList Error\n");
+
printf("SetDeviceInfo OUT\n");
}