Interaction between Android systems and PLUX devices is extremely easy, using the available Unity/Android API. This repository contains a demonstration of this type of integration through an intuitive Sample APP.
First it connects to 00:00:00:00:00:00 a couple of times before connecting to the specified address.
IsSensorConnected() returns false inside of OnDeviceConnection, which somehow gets triggered multiple times per second and acquisition (which gets started by OnDeviceConnection in my script) isn't functional as OnNewDataEvent doesn't get triggered.
However after waiting for a minute or so OnNewDataEvent finally prints values, albeit at pace of only once per 10th of a second.
I made some changes compared to the one I posted in the aforementioned GitHub issue:
Moved the IsSensorConnected() print statement inside of OnDeviceConnection
Commented out the connection mode logic because for some inexplicable reason it was changing to automatic after one turn, even though it was also set to manual in the inspector.
So since automatic connection wasn't working for me (see https://github.com/biosignalsplux/unity-android-sample/issues/2) I attempted manual connection but I experience the following issues:
First it connects to 00:00:00:00:00:00 a couple of times before connecting to the specified address.
IsSensorConnected() returns false inside of OnDeviceConnection, which somehow gets triggered multiple times per second and acquisition (which gets started by OnDeviceConnection in my script) isn't functional as OnNewDataEvent doesn't get triggered.
However after waiting for a minute or so OnNewDataEvent finally prints values, albeit at pace of only once per 10th of a second.
Here is my script: https://pastebin.com/PqhjZB63
I made some changes compared to the one I posted in the aforementioned GitHub issue: