Welcome to the Tedee Mobile SDK for Android! This comprehensive toolkit empowers developers to seamlessly integrate Tedee Lock functionality into their Android applications. Whether you're building a smart home app or enhancing access control features, our SDK provides the necessary tools to communicate with and control Tedee locks with ease, leveraging Bluetooth Low Energy (BLE) communication protocol.
- Effortless Integration: Incorporate Tedee lock functionality into your Android applications seamlessly.
- Full Control: Communicate with and operate Tedee locks, including Tedee PRO and Tedee GO, with comprehensive control options.
- Efficient Communication: Utilize Bluetooth Low Energy (BLE) for efficient device interaction, ensuring optimal performance and minimal energy consumption.
Getting started with the Tedee Mobile SDK is straightforward:
Step 1. Add the JitPack repository to your build file.
Add it in your settings.gradle or settings.gradle.kts if you use Kotlin:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
}
}
Or directly in root build.gradle if there will be a problem with sync build gradle:
repositories {
google()
mavenCentral()
maven { url 'https://jitpack.io' }
}
Step 2. Add the dependency
dependencies {
implementation("com.github.tedee-com:tedee-mobile-sdk-android:1.0.0@aar") { isTransitive = true }
}
Or if you are using Groovy instead of Kotlin:
dependencies {
implementation("com.github.tedee-com:tedee-mobile-sdk-android:1.0.0@aar") { transitive = true }
}
To properly use sdk for lock already added to account you will need:
- register your app with your app name and mobile public key (https://api.tedee.com/swagger/index.html#/Mobile/PostMobile, mobile public key is generated with
getMobilePublicKey()
See example app) - provide lock serial number and device name (you can find it in Tedee app "Lock settings" -> "Information")
- get device public key, certificate and certificate expiry date (see example app how to get them from Tedee API - Documentation
When all required data is provided you can try to secure connect to the lock using
fun connect(
serialNumber: String,
deviceCertificate: DeviceCertificate,
keepConnection: Boolean = true,
secureConnectionListener: ILockConnectionListener
)
method.
To properly use sdk for lock not added to account you will need:
- provide lock serial number. You can get it from Tedee API based on Activation Code. See example app how to get them from Tedee API - Add lock documentation
When all required data is provided you can try to connect to the lock using
fun connectForAdding(
serialNumber: String,
keepConnection: Boolean = true,
addLockConnectionListener: IAddLockConnectionListener
)
method.
Explore the capabilities of the Tedee Mobile SDK through our example app. This example app demonstrates various use cases and serves as a practical guide for integrating the SDK into your projects.
Documentation describing basic steps required to add a lock to your Tedee account and register the lock device. Add lock documentation
Documentation describing public API of the Tedee Lock framework is available at API. Refer to this documentation for in-depth insights into available functionalities and methods.
For more details about Tedee Lock BLE API, available commands, their parameters, notifications and more please refer to our BLE API documentation available at https://tedee-tedee-lock-ble-api-doc.readthedocs-hosted.com/en/latest/index.html.
Right now there is an issue on Google Pixel 4a device with generating mobile key pair. We are working on it and will fix it soon. As workaround please use other device.
For any inquiries, feedback, or assistance, our Android team is here to help. Reach out to us at Discussions section with any questions or concerns you may have.
We're excited to witness the innovative solutions you create with the Tedee Mobile SDK! Happy coding! 🚀