public void StartBLE(int channel) { #if UNITY_STANDALONE || UNITY_EDITOR #elif UNITY_ANDROID PluginBLEPM5.InitBLEPM5(0); #else PM5EventHandler.connectToPM5(channel); #endif }
public void ScanDevices() { #if UNITY_STANDALONE || UNITY_EDITOR #elif UNITY_ANDROID PluginBLEPM5.StartScanning((ErgData a) => { ergDataEvent = new ErgDataEvent(a); erdataReady = true; print("INTERO_BLE ergdata " + a); }, (StrokeData a) => { strokeDataEvent = new StrokeDataEvent(a); strokeDataReady = true; print("INTERO_BLE stroke " + a); }); #endif }