Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[leshan-dev] Bootstrapping

Hello everyone,

Please I am trying out the leshan bootstrap server and I realize that it has a method in the BootstrapStoreImpl:

@Override
    public BootstrapConfig getBootstrap(String endpoint) {
        return bootstrapByEndpoint.get(endpoint);
    }

From my understanding, the bsStore instance that is passed to the LwM2mBootstrapServerImpl uses a client's endpoint to search for the corresponding configuration for provisioning the client.

My question is that how does the client request for this data from the server (is there an API at the client side for purposely requesting for this config with its endpoint identifier) ?

When I use HTTP I am able to get the data in a json format because of the getBootstrapConfigs() of BootstrapStoreImpl, which is not an overriden method, called in the doGet of the BootstrapServlet but obviously, the client will not be doing the request over HTTP but CoAP... and hence my questions.

Thanks very much for the attention and help

Best regards,
Brighter

Back to the top