BLE Device
#710
Replies: 1 comment 1 reply
-
This seems to be linked to NimBLESecurity. If I replace my sample NimBLESecurity code with the following, the python code works fine, even after disconnecting / reconnecting:
// Temporarily disable security for testing |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I'm just discovering Nimble for a small project, and am facing some questions :)
The goal is to configure an ESP32 as a gamepad, to which a computer or mobile device will connect to and get data back.
At this stage, I'm able to:
On the Nimble side I'm noticing that if I manually disconnect from the device, it immediately auto reconnects. I made sure to remove all restart advertising code I had, but it's still occurring and I don't know why.
I'm noticing that subsequent use of the script on a bound device fails. If I forget the device, and rebind it, the script works again (until a subsequent disconnection...). This may be due to python code ( and Bleak). It seems that I'm able to see the device if it's unbound and unconnected, but as soon as it's bound, I can no longer read from it.
I would appreciate any feedback or help on this !
Arduino script:
main.txt
Python Bleak Updated
bleak.txt
Thanks!
J.
Beta Was this translation helpful? Give feedback.
All reactions