?
case 3: {
if ( wbit ) {
try{
final SmlDataItemParser parser = SmlDataItemParser.newInstance();
int count=secs.get().size();
String infomation="<L ";
for(int i=0;i<count;i++){
System.out.println("SVID-->"+secs2.getInt(i,0));//必须加个0,理论有多值,取第一个
//这里随便生成一个有边界值随机数,理论要取SVID设备对应的数据
Random random = new Random();
int minValue = 50;
int maxValue = 80;
int randomInt = random.nextInt(maxValue - minValue + 1) + minValue;
infomation+="<A \""+String.valueOf(randomInt)+"\">";
}
infomation+=">";
Secs ss = parser.parse(infomation);
comm.send(msg, strm, 4, false,ss);
}
catch ( SmlParseException e ) {
e.printStackTrace();
}
}
break;
}