if EXAMPLES_TESTCASE_DM_UTC
+config UTC_DM_SERVER_IPADDR
+ string "Server IP address"
+ default "192.168.1.7"
+
+config UTC_DM_SERVER_PORT
+ string "Server Port"
+ default "5683"
+
config TC_DM_START
bool "Start API"
default n
static void utc_dm_conn_set_tx_power_p(void)
{
int ret;
- int val;
+ int val = 20;
+ /* Please make sure you provide a valid tx power value within
+ * the range of 13 to 29. Here, we provide a valid value of 20.
+ */
ret = dm_conn_set_tx_power(&val);
TC_ASSERT_EQ("dm_conn_set_tx_power", ret, DM_ERROR_NONE);
extern dm_lwm2m_client_state_e dm_state;
-struct dm_lwm2m_context_s test_data1 = { {"192.168.1.152", "5683", false}, {300} };
-struct dm_lwm2m_context_s test_data2 = { {"192.168.1.152", "123AB", false}, {300} };
+struct dm_lwm2m_context_s test_data1 = { {CONFIG_UTC_DM_SERVER_IPADDR, CONFIG_UTC_DM_SERVER_PORT, false}, {300} };
+struct dm_lwm2m_context_s test_data2 = { {CONFIG_UTC_DM_SERVER_IPADDR, "123AB", false}, {300} };
/**
* @testcase utc_dm_lwm2m_start_client_p
dm_conn_register_linkup_cb(linkUpEvent);
if (WiFiIsConnected(&result, NULL) != SLSI_STATUS_SUCCESS) {
- printf("failed to WifiIsConnected\n");
- return -1;
+ printf("Wifi Is not Connected\n");
}
if (result > 0) {