Comments (2)
Thank you for the kind words about the library.
From the information you've shared, nothing is coming to mind as to where the issue is. So let me share some information about where to look to get more debug information. Hopefully that will be helpful and yield some results for you.
When the BLE peripheral is created, the following method is registered with D-Bus and is called when a write happens to that characteristic. The method is acting as an interface between D-Bus and your callback. The method takes the values from D-Bus and converts them into Python objects. It then calls the write_callback
it was given.
python-bluezero/bluezero/localGATT.py
Lines 366 to 375 in 6db02ad
Getting the Python debugger to stop in this function (or adding a print statement) might be useful to see what is happening in your situation.
sudo busctl monitor org.bluez
will show you the messages on org.bluez
D-Bus. This should show the calls to WriteValue
so you can see what is coming from D-Bus.
Finally, it is not obvious to me why you have wrapped your call back in staticmethod
. e.g.
write_callback=staticmethod(nodeMeshWifiSSIDChar.WriteValue),
In your method you are using self
so I would have thought you needed the object instance passed in. I don't have the context you are using this in so I can't tell if this is a code smell or a bug.
from python-bluezero.
Closing because of inactivity.
from python-bluezero.
Related Issues (20)
- create 2 services from the same source? HOT 3
- Force disconnect clients from peripheral HOT 2
- How best to get extra information like RSSI and tx_power during scan HOT 2
- Disabling BlueZ request to pair with central on connect. HOT 5
- AttributeError: module 'bluezero.async_tools' has no attribute 'EventLoop' HOT 9
- Tests failing and blocking release HOT 1
- Can't install dbus-python to use bluezero HOT 3
- Error "dbus.exceptions.DBusException: org.bluez.Error.NotAvailable: Operation currently not available" on central HOT 8
- Method to determinate current/negotiated MTU for connection HOT 7
- Documentation about PIN on pairing HOT 6
- Name a service and a characteristic HOT 1
- Method to retrieve remote device path in StartNotify and StopNotify HOT 9
- Advertisment of peripheral HOT 3
- Unable to set `DiscoverableTimeout` HOT 2
- What is srv_id 0 zero? HOT 1
- Enable services changed on Generic Attribute service HOT 1
- Wait notification functionality feature HOT 2
- Setting Manufacturer data in Advertiser only works if data is less than 3 bytes long HOT 4
- How to show Txpower in advertisement data HOT 12
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 python-bluezero.