Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parameterizing MQTT adapter #1019

Open
BobClaerhout opened this issue Feb 4, 2019 · 0 comments
Open

Parameterizing MQTT adapter #1019

BobClaerhout opened this issue Feb 4, 2019 · 0 comments

Comments

@BobClaerhout
Copy link
Contributor

I think most of the protocol adapters will almost be identical to an existing one.
For example, the actility thingpark LoraWan network sends data to the MQTT adapter on topic "accountPrefix/things/deviceEUI/uplink" and expects control commands on topic "accountPrefix/things/deviceEUI/downlink". It consists of the same functional data as the hono topics except for the path segments to be ordered differently.
I had a brief look into the code and I think changes are limited to:

  • ResourceIdentifier, make IDX parameterizable:
    • private static final int IDX_ENDPOINT = 0;
    • private static final int IDX_TENANT_ID = 1;
    • private static final int IDX_RESOURCE_ID = 2;
  • EndpointType:
    • parameterize the constants
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant