Comments (5)
Sounds reasonable. It should be fairly straightforward to add a manufacturer data field to the DeviceInfo
struct. We should probably also add a BluetoothSession::get_device_info
method, similar to the existing get_service_info
and so on, to get a single device rather than having to get them all with get_devices
.
It looks like scan configuration is done by calling SetDiscoveryFilter
on the adapter. This could be done by BluetoothSession::start_discovery
or by a new method. We should probably also add a stop_discovery
method as we don't yet have that.
Feel free to send a pull request, or else I can have a look tonight or this weekend.
from mijia-homie.
Oh, and it sounds like you also want a new DeviceEvent
variant. I haven't looked into that yet.
from mijia-homie.
@MattesWhite Please take a look at #130 and see if it does what you want, and what you think of the code structure. If you give me a code review on that then I'll merge it and release a new version for you.
from mijia-homie.
Thanks a lot for the big amount of work you put into my request. I really didn't expected that much. As requested I reviewed the PR, don't have anything to complain about.
To finish things, I'll test the events example with my setup to acknowledge that everything works.
from mijia-homie.
Fixed by #130.
from mijia-homie.
Related Issues (20)
- mijia-homie is failing to connect to sensors because "The maximum number of pending replies per connection has been reached"
- Consider making a fake BluetoothSession for clients to use for testing
- Debian packages link against the wrong version of libssl HOT 2
- mijia-homie crash HOT 1
- Add support for non-retained properties to homie-device
- Influxdb v2 HOT 3
- make a homie-rs github org and move this repo into it
- controller: properties sometimes have no payload if not updated at runtime HOT 1
- support for influx v2 Tokens for authentication HOT 2
- SOLVED: the topic for the device was corrupted and malformed HOT 2
- Integration tests for `homie-device` and `homie-controller` together
- Fix ldd auto-dependency warning for armv7 Debian package HOT 1
- Use correct hci device in mijia crate
- Consider switching to from bluez-generated to https://github.com/i-poper/bluez-dbus HOT 2
- Support using multiple Bluetooth adapters simultaneously
- Add backtraces to thiserror error types once std::backtrace is stable
- bluez-generated: Error: DbusError(D-Bus error: Method "WriteValue" with signature "aya{sv}" on interface "org.bluez.GattCharacteristic1" doesn't exist HOT 5
- Add config option to limit frequency of sensor updates
- Ensure that sensitive config files are not world readable
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 mijia-homie.