Comments (1)
Hi @SofianeBek
I'm glad that you've found my plugin helpful up till now. From what I've gathered from your question, you're trying to get catch exceptions that occur with a specific command?
Currently the only way to catch any exceptions is if they're raised by the BleAdapter
, which is the adapter between Unity and the Android library. In there there's a .NET event and a UnityEvent to which you can subscribe to. They both return a BleObject
that should contain some general information about what caused the error (device UUID, characteristics or services, etc.).
If you're looking for exceptions on certain commands, that's something that hasn't been implemented as of yet. I'm always open for suggestions if you do see this as something you'd like to see in the plugin.
from unity-android-bluetooth-low-energy.
Related Issues (20)
- Subscribe problem HOT 6
- Subscribing to multiple characteristics HOT 1
- Error (and maybe workaround) connecting to BLE device in Unity and Oculus Quest 2 HOT 12
- BLUETOOTH_SCAN permission issue (android 11+) HOT 2
- Make a new release that includes the latest fix for convenience HOT 1
- Permission missing HOT 1
- Error on write characteristic HOT 8
- Write characteristic issue with control characters? HOT 2
- No devices appearing on Windows 10 HOT 6
- BLE device not appear in Android 14 while scanning HOT 1
- Option to initiate disconnect from device in refactored code? HOT 2
- Updating to newer Unity editor
- No devices found in one project but same scene works in another project HOT 12
- Unable to re-scan after device is found HOT 4
- Broken path to unity.jar HOT 1
- BluetoothDevice hasn't been discovered yet error when attempting to connect to a device HOT 2
- Can't properly connect or read characteristic from BLE sensor HOT 2
- Wrong command name in BleDevice.cs
- Feature: Include Android Library within Project/Package for 2022.2 and greater.
- Cannot scan or try out the plugin in Unity Version 2022.3.9 HOT 5
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 unity-android-bluetooth-low-energy.