{"id":22878204,"url":"https://github.com/allthingstalk/java-sdk","last_synced_at":"2025-03-31T14:18:50.562Z","repository":{"id":81066082,"uuid":"85066073","full_name":"allthingstalk/java-sdk","owner":"allthingstalk","description":"Java SDK for AllThingsTalk IoT Platform","archived":false,"fork":false,"pushed_at":"2018-05-15T13:53:30.000Z","size":1740,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":13,"default_branch":"master","last_synced_at":"2025-02-06T20:26:11.978Z","etag":null,"topics":["iot","iot-platform","java","sdk"],"latest_commit_sha":null,"homepage":"https://www.allthingstalk.com","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/allthingstalk.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-03-15T11:47:31.000Z","updated_at":"2018-05-15T12:40:29.000Z","dependencies_parsed_at":null,"dependency_job_id":"89ea241a-1680-488c-a8cb-6d56d5ede7cb","html_url":"https://github.com/allthingstalk/java-sdk","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allthingstalk%2Fjava-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allthingstalk%2Fjava-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allthingstalk%2Fjava-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allthingstalk%2Fjava-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/allthingstalk","download_url":"https://codeload.github.com/allthingstalk/java-sdk/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246481005,"owners_count":20784458,"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":["iot","iot-platform","java","sdk"],"created_at":"2024-12-13T16:18:59.371Z","updated_at":"2025-03-31T14:18:50.537Z","avatar_url":"https://github.com/allthingstalk.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"Java SDK [![Build Status](https://travis-ci.org/allthingstalk/java-sdk.svg?branch=master)](https://travis-ci.org/allthingstalk/java-sdk)\n---\n\n### Installation\n\nGet the `jar` from the Release page and include it in your project.\n\n### Examples\n\nSeveral basic examples are found in the `/src/examples` folder.\n* `Counter.java` send data from your application to AllThingsTalk _(sensing)_\n* `Actuation.java` toggle a boolean from AllThingsTalk _(actuation)_\n* `BinaryPayload.java` send data of multiple assets together in one binary payload. The corresponding .json file for decoding the payload in AllThingsTalk can be found in the same folder.\n\n### Device Credentials\n\nYou can either set them globally, using the same credentials for all applications using the sdk.\nOr you can set them locally in a specific sketch, overriding the global settings.\n\nDepending on how you initialize the device object in your application, the global or local credentials will be used.\n\n* `device = new Device(this, \"your_device_id\", \"your_device_token\");` will use the provided local credentials\n* `device = new Device(this);` will use the global credentials from the keys.json file\n\n### Raspberry Pi support\n\n#### Prerequisites\n\nJava 1.8 installed on your Raspberry Pi.\n\n[Raspian Jessie with Pixel](https://www.raspberrypi.org/downloads/raspbian/) has the latest Java version by default.\n\n\u003e Raspian Jessie lite does not come with Java preinstalled.\n\n#### GPIO pin layout and setup\n\nPlease check [the pi4j documentation](http://pi4j.com/example/control.html).\nAdd the following _jars_ to your project\n* `pi4j-core.jar`\n* `pi4j-gpio-extension.jar`\n\nYou can download the _pi4j_ library [here](http://pi4j.com/download.html).\n\n## Building\n\nYou can build the project locally using supplied `gradlew` wrapper:\n\n```bash\ngradlew jar\n```\n\nThis will produce `.jar` in the `build/libs` directory.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fallthingstalk%2Fjava-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fallthingstalk%2Fjava-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fallthingstalk%2Fjava-sdk/lists"}