Comments (6)
You would need to implement a custom command, i.e.
- Extend from Command and call readRemoteRssi() on the provide gatt instance
- override the onReadRemoteRssi() to get the value
- call finish when the command is done (so other BT operations can proceed)
When the implementation is done, create a operation build and call it's * executeCommand*
from neatle.
from neatle.
Wow thanks for the response. I'm not familiar with operations or commands but I will try to implement your solution and report my results =)
from neatle.
You say call finish when the command is done, does that mean at the end of Command.start() ?
from neatle.
Perhaps I misunderstood but I've attempted to implement your solution, however I'm unable to do the last step. When I attempt to call finish() from within the Command subclass I'm stuck since finish takes a CommandResult. From what I can see all of the default CommandResults are limited to the library, and I cannot override the constructor. =(
from neatle.
Hmm. I don't see any such static methods. The constructor itself seems to be public but for some reason when I try to use it I get an error saying:
Cannot access '': it is public/package/ in 'CommandResult'
I don't think I'm understanding the meaning of this error. I would think that since it is public I should be fine to use it... Could it perhaps be because I'm using Kotlin?
from neatle.
Related Issues (20)
- Subscriptions are not working - Type not found.
- Can't find SubscribeCommand.Type when using proguard
- Add support to scan for available devices. HOT 1
- BluetoothGattCharacteristic needed to extract value on subscription HOT 3
- How to read & write sequentially with chained results? HOT 4
- Support for requestMtu upgrade
- Cannot connect using Nougat 7.x HOT 9
- Access to the ConnectionMonitor when using a subscription HOT 1
- Example: create an write operation HOT 2
- IllegalStateException during connection HOT 3
- Neatle: Command failed. Aborting operation. Error: 257 HOT 2
- SubscribeCommand doesn't handle indication HOT 2
- Write to DFU Control Service - Connection attempt failed HOT 1
- ByteArrayInputSource MAX_CHUNK_SIZE isn't configurable HOT 1
- Command becomes null... HOT 14
- IllegalStateException HOT 1
- How to clear all active ble connection without closing apps? HOT 3
- App Crash On Android 10 (Model - Mi A2) HOT 1
- Migration from jCenter to Maven HOT 1
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 neatle.