Search in sources :

Example 1 with LoraProtocolAdapter

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;
}
Also used : LoraProtocolAdapter(org.eclipse.hono.adapter.lora.LoraProtocolAdapter) LoraProvider(org.eclipse.hono.adapter.lora.providers.LoraProvider) ArrayList(java.util.ArrayList)

Aggregations

ArrayList (java.util.ArrayList)1 LoraProtocolAdapter (org.eclipse.hono.adapter.lora.LoraProtocolAdapter)1 LoraProvider (org.eclipse.hono.adapter.lora.providers.LoraProvider)1