@Override
public void run() {
final CoapMessage coapPing = CoapMessage.createPing(CoapMessage.UNDEFINED_MESSAGE_ID);
OutboundMessageWrapper wrapper = new OutboundMessageWrapper(coapPing, clientCallback);
ChannelFuture future = Channels.write(channel, wrapper, remoteEndpoint);
future.addListener(new ChannelFutureListener() {
@Override
public void operationComplete(ChannelFuture future) throws Exception {