Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[leshan-dev] LwM2M request asynchronously

Hi guys,
Could anyone describe as how to send the LwM2M request asynchronously? Currently leshan server seem to be sending the requests synchronously, as I see in the ClientServlet.java

```
        // create & process request
            ReadRequest request = new ReadRequest(contentFormat, target);
            ReadResponse cResponse = server.send(registration, request, TIMEOUT);
            processDeviceResponse(req, resp, cResponse);
```

Could someone share the code snippet as how to change/incorporate the implementation to support sending the request Asynchronously/with callback with ResponseCallback & ErrorCallback ?

Thanks.

Back to the top