202122232425262728293031323334
} public void read(DataInput is) throws Exception { MsgUint16 count = new MsgUint16(); MsgUint32 moteId; clear(); count.read(is); for (int i=0; i<count.getValue(); i++) { moteId = new MsgUint32(); moteId.read(is); this.addMoteId(moteId); } }
34353637383940414243444546
} public void write(DataOutput os) throws Exception { MsgUint16 count = new MsgUint16(moteIds.size()); MsgUint32 moteId; count.write(os); for (int i=0; i<count.getValue(); i++) { moteId = (MsgUint32)moteIds.get(i); moteId.write(os); } }
9899100101102103104105106107108
MsgMoteIdList idlist = message.getClientRequest().getMoteIdList(); for (int i = 0; i < moteids.length; i++) { idlist.addMoteId(new MsgUint32(moteids[i])); } try { sendMsg(message); }
121122123124125126127128129130131
148149150151152153154155156157158
e.printStackTrace(); } MsgMoteIdList idlist = message.getClientRequest().getMoteIdList(); for (int i = 0; i < moteids.length; i++) { idlist.addMoteId(new MsgUint32(moteids[i])); } try{ sendMsg(message); } catch (Exception e)