This repository has been archived by the owner on Feb 19, 2024. It is now read-only.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This reverts commit f85bee3.
…e-driver-py into tomchy-feature/vs_services
Handle api_v5/v2 difference in handling tx_complete event
Whilespace and logger cleanup
…e-driver-py into tomchy-feature/vs_services
Handle vendor specific services
SWIG has an issue with unions that are named. See swig/swig#1305. In pc-ble-driver there are several structs that use named unions. For example: typedef struct { uint16_t conn_handle; union common_evt_params_union { ble_evt_tx_complete_t tx_complete; ble_evt_user_mem_request_t user_mem_request; ble_evt_user_mem_release_t user_mem_release; } params; } ble_common_evt_t; SWIG is not able to add a params struct member with this syntax. However, removing common_evt_params_union works. This commit circumvent this by inlining structs using this syntax before the include is done.
Feature/s132v5 py3
Fix SDv5 API struct
Add softdevice_v5 handlers: exchange of default MTU and TX complete
Hi there! I'm trying to use this branch to get my NRF51 dongle to work with Python3.7, have you managed to do something similar? Currently with the heart_rate_collector example, i'm hitting the following:
It appears that the handles that come back are really strange (and typically large) numbers, instead of 2,4,6... that I get with the pip package and Python 2.7. On our actual development code, if I request a characteristic handle I know is present, I get a Python list of the first two characters in ASCII, then a load of incorrect garbage afterwards also. Any tips/guesses on what I could be doing wrong? Cheers! |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Python 3 support
s132_v5 API support