use of org.eclipse.hono.adapter.lora.LoraProtocolAdapter in project hono by eclipse.
the class Application method adapter.
/**
* {@inheritDoc}
*/
@Override
protected LoraProtocolAdapter adapter() {
final List<LoraProvider> providers = new ArrayList<>();
loraProviders.forEach(handler -> providers.add(handler));
final LoraProtocolAdapter adapter = new LoraProtocolAdapter(WebClient.create(vertx));
adapter.setConfig(protocolAdapterProperties);
adapter.setLoraProviders(providers);
adapter.setMetrics(metrics);
setCollaborators(adapter);
return adapter;
}
Aggregations