https://github.com/acceleronix/android-sdk-sample
This sample demonstrates how to use Acceleronix Android App SDK features.
https://github.com/acceleronix/android-sdk-sample
acceleronix android iot java kotlin
Last synced: about 1 year ago
JSON representation
This sample demonstrates how to use Acceleronix Android App SDK features.
- Host: GitHub
- URL: https://github.com/acceleronix/android-sdk-sample
- Owner: Acceleronix
- License: mit
- Created: 2025-01-27T05:31:59.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-03T02:23:52.000Z (over 1 year ago)
- Last Synced: 2025-03-26T03:51:15.429Z (over 1 year ago)
- Topics: acceleronix, android, iot, java, kotlin
- Language: Java
- Homepage: https://core.acceleronix.io
- Size: 518 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Acceleronix Android App SDK Sample
This sample demonstrates the use of Acceleronix Android App SDK to build an IoT app from scratch. Acceleronix Android App SDK is divided into several functional groups to give developers a clear understanding of different features, including user registration, device binding and control, and device group settings. It supports binding both cellular and WiFi/Bluetooth devices. Device control can be performed via HTTP and WebSocket.
# Get Started
## Initialization
You need to call `QuecSDKMergeManager.getInstance().init(this);` in the `onCreate` method of the application as soon as it starts.
## Configure user domain, user domain secret, and cloud service type
Call `public void initProject(int serviceType, String userDomain, String domainSecret)` in the `onCreate()` method of the application using `QuecSDKMergeManager.getInstance().initProject(0, userDomain, domainSecret);`.
| Parameter | Required | Description |
|--------------|----------|-------------------------------------------------------|
| serviceType | Yes | 0 for domestic, non-0 for international |
| userDomain | Yes | User domain, generated when creating an app on the Acceleronix IoT platform |
| domainSecret | Yes | User domain secret, generated when creating an app on the Acceleronix IoT platform |
# References
For more information on the Acceleronix Android App SDK, please refer to the [API documentation](https://github.com/Acceleronix/android-sdk-sample/blob/main/API_doc_android.md).