soorajshankar / DigitalTwin-Android

Simulate mqtt payloads from android device and send it to MQTT Broker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 ✔️
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/

About

Simulate mqtt payloads from android device and send it to MQTT Broker

License:Apache License 2.0


Languages

Language:Kotlin 50.6%Language:HTML 41.2%Language:CSS 5.6%Language:Java 2.6%