-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bluetooth write_characteristic_value fails #699
Comments
Running into the same issue. PY_SSIZE_T_CLEAN indicates that @omz needs to update the cb module to account for an interface change introduced with python 3.10. The documentation seems to be https://docs.python.org/3/c-api/arg.html#strings-and-buffers . |
An update would be very much appreciated! At the current state, I cannot use my Bluetooth serial adapter with my iPad which I used to check the state on various devices.. |
Same problem here. Please make an Update. BR kami |
@omz @zrzka @cclaus Please fix this; the hint provided in the comments before hopefully helps. In my experience it was also due to some iPadOS update, which broke my scripts that help my customers use BLE to operate/test devices; currently, my customers are instructed not to update iPadOS or Pythonista, but this is getting critical. If not addressed, I will stop using Pythonista and will need to provide my customers with some custom Apps to operate/test BLE devices instead. Testing with Pythonista 3.4 on iPadOS 17.1 shows the PY_SSIZE_T_CLEAN macro must be defined for '#' formats system error message when my script tries to write to the BLE device; it does work on scanning for devices, it can connect and discover services; and it can read using BLE; it is on the write that the error occurs. |
The issue is the core Bluetooth library needs to be updated to be compatible with python 3.10. Relevant python docs here. |
Hi, anything new for this? BR kami |
Following this thread just in case this ever gets fixed. If CoreBluetooth |
I am pretty sure it was working before the latest update. Probably a combination of module upgrades I am having the same problem, i will wait for an update :-) |
Hi, you are right, in the last version it was working. Is there any way to downgrade? I need this function really often. Because i have got a lot of script for Bluetooth recieve and send. BR kami |
As far as I know, no update yet? Or am I mistaken |
Still not working. |
Also waiting. |
🎂 1 year |
Happy Birthday :) Please fix it. BR kami |
Please fix this or explain how to downgrade or use some other library - this is very frustrating as this was my main use of Pythonista |
How is this still broken? Is pythonista not maintained anymore? Maybe the project is dead. I assume there are no work-arounds given this thread. |
PY_SSIZE_T_CLEAN |
No work arounds are available. Issue can only be fixed by @omz . |
Bug in Core Bluetooth fails with PY_SSIZE_T_CLEAN macro must be defined for '#' formats whenever write_characteristic_value is called
The text was updated successfully, but these errors were encountered: