ClientMsg message = new ClientMsg();
message.getType().setValue(ClientMsgType.CLIENTREQUEST);
message.getClientRequest().getCommand().setValue(MsgClientCommand.MSGCLIENTCOMMAND_DROPMOTECONTROL);
MsgMoteIdList idlist = message.getClientRequest().getMoteIdList();
for (int i = 0; i < moteids.length; i++)
{
idlist.addMoteId(new MsgUint32(moteids[i]));
}
try
{
sendMsg(message);
}