MA_LOGD("Found %d Mowned devices", g_client->g_mowndev_cnt);
}
+ char *uuid_str = NULL;
+ OicUuid_t uuid;
+
+ GetDoxmDevOwnerId(&uuid);
+ ConvertUuidToStr(&uuid, &uuid_str);
+
+ MA_LOGD("local owner uuid is %s", uuid_str);
+
while (iter != NULL) {
+ MA_LOGD("-----------------------------------");
+ if (con->cid == MA_FIND_MOT_ENABLED_DEVICES) {
+ bool is_invited = false;
+ OicSecSubOwner_t* subOwner = iter->doxm->subOwners;
+ if (subOwner != NULL) {
+ while (subOwner != NULL) {
+ char *readable_uuid = ma_get_readable_uuid(&(subOwner->uuid));
+ MA_LOGD("remote owner uuid is %s", readable_uuid);
+
+ if (g_strcmp0(readable_uuid, uuid_str) == 0) {
+ is_invited = true;
+ break;
+ }
+ subOwner = subOwner->next;
+ }
+ }
+
+ if (is_invited == true) {
+ MA_LOGD("The device is already invited. Skip the device");
+ iter = iter->next;
+ continue;
+ }
+ }
+
OicUuid_t *uuid = &iter->doxm->deviceID;
ma_check_null_ret_error("uuid", uuid, NULL);