Skip to content

zhortech/ztwarmkit-android-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Core kit setup

Please read core kit SDK setup part first. ZTCoreKit

Gradle

If you use Gradle to build your project — as a Gradle project implementation dependency:

def zhortechSdkVersion = '1.0.52'
implementation "fr.zhortech.android:ztcorekit:$zhortechSdkVersion-prod"
implementation "fr.zhortech.android:ztwarmkit:$zhortechSdkVersion-prod"

Heating

To control heating use ZTWarm functions.
ZTWarm.startHeating(30) will set target temperature in celsius and start heating.
To stop heating use ZTWarm.stopHeating()
ZTWarm.getTargetTemperature() will return current target temperature, if target temperature is 0 that means heating is disabled.

Stop timer

You can set how long heating will work by starting timer ZTWarm.startTimer(10), after timer finish heating will stop.
ZTWarm.stopTimer() will stop timer if he in progress. ZTWarm.getRemainingTimer() return remaining timer seconds

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published