Пример #1
0
void StartDiscoveryServer()
{
    Serial.println("discovery server");
    CAResult_t ret = CAStartDiscoveryServer();
    if(ret != CA_STATUS_OK)
    {
        Serial.print("discovery failed: ");
        Serial.println(ret);
        return;
    }
}
Пример #2
0
void start_discovery_server()
{
    printf("start discovery client!!\n");

    CAResult_t res = CAStartDiscoveryServer();
    if (CA_STATUS_OK != res)
    {
        printf("start discovery client fail, error code : %d\n", res);
    }
    else
    {
        printf("start discovery client success\n");
    }
}
Пример #3
0
JNIEXPORT void JNICALL
Java_org_iotivity_ca_service_RMInterface_RMStartDiscoveryServer(JNIEnv *env, jobject obj)
{
    LOGI("RMStartDiscoveryServer");
    if (!env || !obj)
    {
        LOGI("Invalid input parameter");
        return;
    }

    if (CA_STATUS_OK != CAStartDiscoveryServer())
    {
        LOGE("Could not start discovery server");
    }
}
Пример #4
0
// CAStartDiscoveryServer TC
// check return value
TEST(StartDiscoveryServerTest, DISABLED_TC_04_Positive_01)
{
    EXPECT_EQ(CA_STATUS_OK, CAStartDiscoveryServer());
}