buffer.flip();
if(event.getType() == EventType.START_PUBLISH){
System.out.println("got event");
for (int i = 0; i < TIMES; i++) {
System.out.println("apcket "+i);
client.publishData(event.getId(), payload, Strategy.NODE, null);
}
}
client.disconnect();
}