use of org.thingsboard.server.transport.coap.callback.GetAttributesSyncSessionCallback in project thingsboard by thingsboard.
the class CoapTransportResource method handleGetAttributesRequest.
private void handleGetAttributesRequest(TbCoapClientState clientState, CoapExchange exchange, Request request) throws AdaptorException {
TransportProtos.SessionInfoProto sessionInfo = clients.getNewSyncSession(clientState);
UUID sessionId = toSessionId(sessionInfo);
transportService.registerSyncSession(sessionInfo, new GetAttributesSyncSessionCallback(clientState, exchange, request), timeout);
transportService.process(sessionInfo, clientState.getAdaptor().convertToGetAttributes(sessionId, request), new CoapNoOpCallback(exchange));
}
Aggregations