{"id":19230618,"url":"https://github.com/ctron/kapua-gateway-client","last_synced_at":"2025-04-21T03:31:12.083Z","repository":{"id":57730397,"uuid":"91478358","full_name":"ctron/kapua-gateway-client","owner":"ctron","description":"A Gateway Client SDK for Eclipse Kapua™ ","archived":false,"fork":false,"pushed_at":"2017-07-20T09:10:08.000Z","size":920,"stargazers_count":9,"open_issues_count":4,"forks_count":3,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-01T08:26:14.419Z","etag":null,"topics":["eclipse-iot","iot","iot-gateway"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"epl-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ctron.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"license.html","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-05-16T16:08:13.000Z","updated_at":"2025-01-25T08:59:13.000Z","dependencies_parsed_at":"2022-09-26T22:01:22.377Z","dependency_job_id":null,"html_url":"https://github.com/ctron/kapua-gateway-client","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ctron%2Fkapua-gateway-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ctron%2Fkapua-gateway-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ctron%2Fkapua-gateway-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ctron%2Fkapua-gateway-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ctron","download_url":"https://codeload.github.com/ctron/kapua-gateway-client/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249990915,"owners_count":21357168,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["eclipse-iot","iot","iot-gateway"],"created_at":"2024-11-09T15:39:55.286Z","updated_at":"2025-04-21T03:31:11.772Z","avatar_url":"https://github.com/ctron.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Eclipse Kapua™ Gateway Client SDK [![Build status](https://api.travis-ci.org/ctron/kapua-gateway-client.svg)](https://travis-ci.org/ctron/kapua-gateway-client) [![Maven Central](https://img.shields.io/maven-central/v/de.dentrassi.kapua/kapua-gateway-client.svg \"Maven Central Status\")](https://search.maven.org/#search%7Cga%7C1%7Cg%3A%22de.dentrassi.kapua%22)\n\nThis project provides an SDK for connecting to [Eclipse Kapua](https://eclipse.org/kapua) as a gateway.\n\n**Note:** This is not part of the Eclipse Kapua project.\n\nThis project should provide a simple to use SDK for pushing telemetry data into Kapua\nand consuming command messages out of Kapua.\n\n**Note:** This is a work in progress and should not be considered production ready.\n\n## How to use\n\nThe following quick steps should provide you with a working example.\n\n### Add to your Maven project\n\n```xml\n\u003cdependency\u003e\n  \u003cgroupId\u003ede.dentrassi.kapua\u003c/groupId\u003e\n  \u003cartifactId\u003ekapua-gateway-client-provider-mqtt-fuse\u003c/artifactId\u003e\n  \u003cversion\u003e\u003c!-- replace with current version --\u003e\u003c/version\u003e\n\u003c/dependency\u003e\n\u003cdependency\u003e\n  \u003cgroupId\u003ede.dentrassi.kapua\u003c/groupId\u003e\n  \u003cartifactId\u003ekapua-gateway-client-profile-kura\u003c/artifactId\u003e\n  \u003cversion\u003e\u003c!-- replace with current version --\u003e\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n### Example client\n\n```java\n\nimport static org.eclipse.kapua.gateway.client.Credentials.userAndPassword;\nimport static org.eclipse.kapua.gateway.client.Errors.ignore;\n\nimport org.eclipse.kapua.gateway.client.mqtt.fuse.FuseClient;\nimport org.eclipse.kapua.gateway.client.profile.kura.KuraMqttProfile;\n\ntry (Client client = KuraMqttProfile.newProfile(FuseClient.Builder::new)\n  .accountName(\"kapua-sys\")\n  .clientId(\"foo-bar-1\")\n  .brokerUrl(\"tcp://localhost:1883\")\n  .credentials(userAndPassword(\"kapua-broker\", \"kapua-password\"))\n  .build()) {\n\n  try (Application application = client.buildApplication(\"app1\").build()) {\n\n    // subscribe to a topic\n\n    application.data(Topic.of(\"my\", \"receiver\")).subscribe(message -\u003e {\n      System.out.format(\"Received: %s%n\", message);\n    });\n\n    // cache sender instance\n\n    Sender\u003cRuntimeException\u003e sender = application\n      .data(Topic.of(\"my\", \"sender\"))\n      .errors(ignore());\n\n    int i = 0;\n    while (true) {\n      // send\n      sender.send(Payload.of(\"counter\", i++));\n      Thread.sleep(1000);\n    }\n  }\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fctron%2Fkapua-gateway-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fctron%2Fkapua-gateway-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fctron%2Fkapua-gateway-client/lists"}