Just wanted to let you know, for anybody else coming here.
I have made an implementation for unity3d.
Open Sourcing it soon
https://github.com/TobiasFP
Latest posts made by tobias
-
RE: Flic with Unity
-
RE: Unity support
@tobias I have successfully made the implementation. Anybody in need, write here or contact me on my github (TobiasFP/"tobias" at "osandweb.dk").
-
NRF Connect does not register notify characteristic updates
Hi.
I am developing a UNITY3D game for Android and I am using this C# unity3D plugin:
bluetooth-le-for-ios-tvos-and-android-26661(Cannot reference it as URL due to akismet flagging it as spam)
I have successfully connected to the button, and subscribed to characteristic 00420002-8f59-4420-870d-84f3b617e493 (I am using a Flic2 button).
However, no data ever gets transmitted to me, in the notify loop.
I am debugging this in NRF connect, and under the characteristic, the button actions do not get updated as well.
The flic button is working fine under the flic2 android sample, but how do I get notified in a more standard BLE way, instead of using the Flic2 app/framework (which I do not have access to under Unity3D).I know I could write an android library which I might be inclined to do, but I am just sure there is an easier way, as the connection and all is already properly set up.
NRF screenshot:
link textFull code linked:
https://drive.google.com/file/d/1Q0GPlI2SiXwrEn0aOJq64ZECgOWr3qv-/view?usp=sharing
(Feel free to use it for your own purposes if you want to)Can anyone see any issues here?
Why do I not get notified?All the best
Tobias -
RE: How do I set lowLatency?
Most likely, you would set button.lowLatency = true; not yes, but I dont know
Swift or Objective C? -
RE: Unity support
Hi.
I am almost there with a nice implementation, write me if you need it.
It is using the Unity bluetooth LE, which is quite easy to setup, just missing the last notify function to work. -
RE: Ionic Development with Flic 2
Hi.
Ionic and Flic2 is a perfect match, since there is a very good BLE Gatt library that you can use.
This one is the simplest one to use, but is very limited:
https://ionicframework.com/docs/native/bleI would recommend using this one, by Rand Dusing:
https://ionicframework.com/docs/native/bluetooth-le