This app is part of the Activity Recognition project, it demonstrates how to use the Bluetooth LE Generic Attribute Profile (GATT) to transmit data from a BLE connected device to AWS IoT.
Be careful: for this project we have used free trial periods (12 months for AWS IoT/DynamoDB), after that period you have to pay for them.
Follow these steps to run the app:
- Import the app on Android Studio.
- Change
private static final String CUSTOMER_SPECIFIC_IOT_ENDPOINT = "YOUR_ENDPOINT";
in theAWSServiceClient.java
file with your AWS IoT Endpoint. - Change
final String topic = "YOUR_TOPIC";
in theAWSServiceClient.java
with the name of your topic. - Change
"PoolId": "YOUR_POOLID",
"Region": "YOUR_REGION"
in the res/raw/awsconfiguration.json
file with your PoolID and Region values.
- Build and Run the app.
For further information about these steps see the GitHub and Hackster.io of the project.
Feel free to contact us for further information!