xiaomi-miband-android | Access Xiaomi MiBand from Android via Bluetooth LE
kandi X-RAY | xiaomi-miband-android Summary
kandi X-RAY | xiaomi-miband-android Summary
Access Xiaomi MiBand from Android (4.3+) via Bluetooth LE.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Sets the number of steps
- Sends an INFO log message
- Gets the tag name
- Sets the battery
- Returns a string representation of this battery
- This method is used to scan device
- Stops Bluetooth Activity
- Called when a menu item is selected
- Displays a toast message
- Sets the color value
- Send pair
- Pauses the LE device
- Attempts to connect to the device
- Resume the device
- Sends a debug message
- On createOptions menu
- Disconnect from the server
- Override this method to hide the activity
- Sets the name of the BLE
- Deserializes a battery
- Updates the UI
- Called when the activity is created
- Set the color picker view
- Writes the parameters to Parcel
- Initializes this instance
xiaomi-miband-android Key Features
xiaomi-miband-android Examples and Code Snippets
Community Discussions
Trending Discussions on xiaomi-miband-android
QUESTION
Can not connect to the mi band 2 using pangliang/miband-sdk-android lib. I unpaired the band and removed mifit app.
Here is code sample.
...ANSWER
Answered 2017-Mar-13 at 14:36I've discovered two things: first - my question wasn't clear enough, and second - mi band 2 has another сonnection sequence and another service uuids.
When we start scanning for a BT devices, we use ScanCallback. When we get something in onScanResult method, we can try to connect to that device and we need to use GattCallback in this case.
Now we need to find a characteristic for auth with UUID "00000009-0000-3512-2118-0009af100700".
When we found it, we need to enable notifications on it:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install xiaomi-miband-android
You can use xiaomi-miband-android like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the xiaomi-miband-android component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page