Skip to main content

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

It seems this is the same question as : https://github.com/eclipse/leshan/issues/653

Le 11/02/2019 à 23:37, Steve Smith a écrit :
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.

_______________________________________________
leshan-dev mailing list
leshan-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/leshan-dev

Back to the top