Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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 specify

Demo

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/