Skip to content

Latest commit

 

History

History
106 lines (69 loc) · 3.95 KB

Mappls-BLE-Plugins.md

File metadata and controls

106 lines (69 loc) · 3.95 KB

Mappls Bluetooth(BLE) Sensor Android Plugin

Introduction

Now capture temperature and humidity information in real-time with the Mappls Intouch SDK. The Bluetooth(BLE) Sensor Android Plugin connects with the InTouch SDK to give you real-time temperature and humidity details along with the user's live location.

Step 1. Add Mappls BLE Plugin

Follow these steps to add the SDK to your project –

  • Create a new project in Android Studio
  • Add Mappls repository in your project level build.gradle
allprojects {
    repositories {

        maven {
            url 'https://maven.mappls.com/repository/mappls/'
        }
    }
}
  • Add below dependency in your app-level build.gradle
implementation 'com.mappls.sdk:intouch-sdk:1.0.0'
implementation 'com.mappls.sdk:ble-plugin:1.0.0'

Add Java 8 Support to the project

compileOptions {
      sourceCompatibility 1.8
      targetCompatibility 1.8
  }
 Required Minimum sdk version
 minSdkVersion 18

Track your app user's phone live location with BLE sensor details (like temperature, Battery and humidity) by using the below method. Before the start tracking method add the MAC address of the BLE sensor for which you need to get the temperature data.

Java

BluetoothLEScanHelper.getInstance().setBleDeviceMacId("<Ble Mac address>"); // sample mac address of the BLE sensor is xx:xx:xx:xx:xx:xx
InTouch.startTracking();

Kotlin

 BluetoothLEScanHelper.getInstance().setBleDeviceMacId("<Ble Mac address>"); // sample mac address of the BLE sensor is xx:xx:xx:xx:xx:xx
InTouch.startTracking

Java

InTouch.stopTracking();

Kotlin

InTouch.stopTracking()





For any queries and support, please contact:

Email us at apisupport@mappls.com

Support

Need support? contact us!





@ Copyright 2022 CE Info Systems Ltd. All Rights Reserved.