Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/soorajshankar/digitaltwin-android
Simulate mqtt payloads from android device and send it to MQTT Broker
https://github.com/soorajshankar/digitaltwin-android
android hacktoberfest kotlin mqtt
Last synced: about 1 month ago
JSON representation
Simulate mqtt payloads from android device and send it to MQTT Broker
- Host: GitHub
- URL: https://github.com/soorajshankar/digitaltwin-android
- Owner: soorajshankar
- License: apache-2.0
- Created: 2019-05-16T18:47:17.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-05-25T04:04:31.000Z (over 2 years ago)
- Last Synced: 2024-10-13T04:28:59.830Z (2 months ago)
- Topics: android, hacktoberfest, kotlin, mqtt
- Language: Kotlin
- Homepage:
- Size: 2.48 MB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Android Digital Twin
## Project Description
This project is a sample digital twin which streams real time rotational sensor data to the mqtt cloud and the supporting web application will render the twin application on the web browser.## Features
| | |
|---------------------|--------------------|
| MQTT | :heavy_check_mark: |
| sensors | Gyroscope |### Running the Sample App:
* Open the this current directory in Android Studio.
* Resolve dependencies by gradle sync.
* Run the sample android application on a physical android device.
* Provide a valid mqtt url (without http or tcp) and a client id to recognize your device (this will identify this device to render the digital twin on the web application)
> You may try free MQTT brokers like http://www.hivemq.com/demos/websocket-client/
* Press start button to connect with the mqtt broker.
* Application will start polling the mqtt data with the sensor data.
> To check the data on broker
> subscribe to topic "digital_twin/android/#"
> will be replaced by the client id which you specifyDemo
https://play.google.com/store/apps/details?id=tech.sooraj.androidsensormqtt
To run the web renderer
```
npx serve .
```Demo Web App: https://soorajshankar.github.io/DigitalTwin-Android/