strlen(msg_params->data), msg_params->data);
req.msg_len = strlen(msg_params->data);
- g_strlcpy(req.msg, msg_params->data, sizeof(msg_params->data) + 1);
+ g_strlcpy(req.msg, msg_params->data, req.msg_len + 1);
} else {
req.msg_len = 0;
}
strlen(msg_params->data), msg_params->data);
req.msg_len = strlen(msg_params->data);
- g_strlcpy(req.msg, msg_params->data, sizeof(msg_params->data) + 1);
+ g_strlcpy(req.msg, msg_params->data, req.msg_len + 1);
} else {
req.msg_len = 0;
}
TC_PRT("Model Creation Failed!");
break;
}
- /* Sleep for 100 msec to allow network Proxy attach */
- usleep(100000);
+
+ /*
+ * System-d has start-limit on number of process to be started in given time
+ * Sleep for 2000 msec
+ */
+ usleep(2000);
+
/* Create Network */
network_name = g_strdup_printf("TestMeshNet%d", i);
bt_mesh_network_h net_h;
model_h = GUINT_TO_POINTER(strtoul(g_test_param.params[0], NULL, 16));
}
- const char *msg_s = "0101";
+ const char *msg_s = "01010000";
msg_params.opcode = 0x8202;
msg_params.data = g_strdup(msg_s);
ret = __bt_mesh_model_send_msg(model_h, appkey_h, &msg_params,
model_h = GUINT_TO_POINTER(strtoul(g_test_param.params[0], NULL, 16));
}
- const char *msg_s = "0001";
+ const char *msg_s = "00010000";
msg_params.opcode = 0x8202;
msg_params.data = g_strdup(msg_s);
ret = __bt_mesh_model_send_msg(model_h, appkey_h, &msg_params,
group_h = GUINT_TO_POINTER(strtoul(g_test_param.params[0], NULL, 16));
}
- const char *msg_s = "0101";
+ const char *msg_s = "01010000";
msg_params.opcode = 0x8202;
msg_params.data = g_strdup(msg_s);
ret = __bt_mesh_group_send_msg(group_h, appkey_h, &msg_params,
group_h = GUINT_TO_POINTER(strtoul(g_test_param.params[0], NULL, 16));
}
- const char *msg_s = "0001";
+ const char *msg_s = "00010000";
msg_params.opcode = 0x8202;
msg_params.data = g_strdup(msg_s);
ret = __bt_mesh_group_send_msg(group_h, appkey_h, &msg_params,