Comments (4)
Hi Jakub
first of all I'm really really sorry for this late response. I've been really
busy with my new job.
Also I've updated the code to fix some minor bugs:
https://github.com/betomaluje/Mi-Band
Easy use: compile 'com.betomaluje.miband:app:1.0.3'
I'm really grateful you're using this library.
Have a great day!
Cheers!
Sent with inky
"Jakub Krajniak" [email protected] wrote:
Hi,
I've tried very simple application (single button -> on click vibrate) but
unfortunatelly it does not work.
git:
https://github.com/MrTheodor/MiWatch
Here is what I noticed on logcat:
10-07 21:16:16.269 11983-12273/pl.jkrajniak.miwatch W/BluetoothGatt﹕
Unhandled exception in callbackjava.lang.IllegalArgumentException: Invalid parameters
at com.betomaluje.miband.model.UserInfo.create(UserInfo.java:74)
at com.betomaluje.miband.model.UserInfo.getSavedUser(UserInfo.java:277)
at com.betomaluje.miband.MiBand$1.onSuccess(MiBand.java:54)
at
com.betomaluje.miband.bluetooth.BTConnectionManager$3.onServicesDiscovered(BTConnectionManager.java:319)at android.bluetooth.BluetoothGatt$1.onSearchComplete(BluetoothGatt.java:305)
at
android.bluetooth.IBluetoothGattCallback$Stub.onTransact(IBluetoothGattCallback.java:217)at android.os.Binder.execTransact(Binder.java:446)
—Reply to this email directly or [view it on
GitHub](https://github.com/betomaluje/Mi-
Band/issues/3).
from mi-band.
I'm getting the same exception on version 1.0.3
from mi-band.
Thanks for update!
I think that the problem comes from line UserInfo.java:74; First I thought that those data like weight or age comes from MiBand :-D but then I realized that it comes from SharedPreferences where there has to be set beforhand. It is a variety of application where you actually do not need to store any user profile apart from btAddress.
My quick solution was to change this line to
if (address == null || address.length() == 0) {
btw, would it be possible to change name of module from app
to libsomething
, otherwise it is difficult to import it as a module in AS.
from mi-band.
Changed validation as @MrTheodor suggested.
Regarding changing the module's name, just create a new issue and I will get to it asap
from mi-band.
Related Issues (16)
- Why not differ "TYPE_ACTIVITY" into walk and run? HOT 1
- Sync error : OncharacteristicWrite fail
- Mi Band 2 HOT 2
- Create plugin for cordova? HOT 1
- mi band 2 support?
- MI Band 2 Support
- Connected but Write Action returns false in all cases
- Q: Mi Band Sync Activity Data Protocol
- Method miBand.startListeningSync(actionCallback) do not work. HOT 2
- Vibration no longer working with new firmware HOT 15
- Rename resources to avoid conflict HOT 1
- Support for heart rate monitor of Mi Band Pulse? HOT 2
- Sync fail: data null HOT 2
- Cannot connect HOT 10
- Custom vibration doesnt' work - Protocol problem? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mi-band.