Skip to content

Known bt status #349

Closed Answered by SashaCX75
miguelavh asked this question in Q&A
May 24, 2024 · 3 comments · 5 replies
Discussion options

You must be logged in to vote

Checking Bluetooth status in watch faces works the same way as in apps
https://docs.zepp.com/docs/1.0/reference/device-app-api/hmBle/

To check the API level, you need to use getSystemInfo
https://docs.zepp.com/docs/v2/reference/device-app-api/newAPI/settings/getSystemInfo/
This function works since API 2.1, so you need to add error handling when calling it. If the function call ends in an error, the device has API 1. Otherwise, the function will return the API value.

Replies: 3 comments 5 replies

Comment options

You must be logged in to vote
1 reply
@miguelavh
Comment options

Answer selected by miguelavh
Comment options

You must be logged in to vote
1 reply
@miguelavh
Comment options

Comment options

You must be logged in to vote
3 replies
@miguelavh
Comment options

@SashaCX75
Comment options

@miguelavh
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants