z3ugma
05/01/2024, 8:43 PMfloitsch
05/01/2024, 8:44 PMz3ugma
05/01/2024, 8:45 PMz3ugma
05/01/2024, 8:45 PMz3ugma
05/01/2024, 8:47 PMadapter := ble.Adapter
central := adapter.central
address := find_by_name central DEV_NAME
remote_device := central.connect address
then it just hangs on connect for a very long time, minutes at leastz3ugma
05/01/2024, 8:48 PMfloitsch
05/01/2024, 8:49 PMz3ugma
05/01/2024, 8:50 PMwith_timeout and catching to implement thatfloitsch
05/01/2024, 8:51 PMconnect --secure?floitsch
05/01/2024, 8:51 PMz3ugma
05/01/2024, 8:53 PMfloitsch
05/01/2024, 8:53 PMz3ugma
05/01/2024, 9:10 PMz3ugma
05/01/2024, 9:10 PMfloitsch
05/01/2024, 9:11 PMfloitsch
05/01/2024, 9:12 PM--secure flag does, though.z3ugma
05/01/2024, 9:12 PMfloitsch
05/01/2024, 9:14 PMsetSecurityAuth, but that might be the Arduino wrapper.z3ugma
05/01/2024, 9:15 PMfloitsch
05/01/2024, 9:19 PMble_gap_security_exchangez3ugma
05/01/2024, 9:19 PM--secure flag is what was needed. Additionally, my device has a 2-minute window exactly after inserting the batteries that it will attempt new connectionsfloitsch
05/01/2024, 9:20 PMfloitsch
05/01/2024, 9:20 PM--secure is indeed doing a "Just works" security.
I will add documentationz3ugma
05/01/2024, 9:35 PMz3ugma
05/01/2024, 9:35 PMfloitsch
05/01/2024, 9:37 PMfloitsch
05/01/2024, 9:37 PMz3ugma
05/01/2024, 9:38 PMfloitsch
05/01/2024, 9:38 PM