Commit 342037c
committed
fix: Resolve critical BLE interface issues and improve pub/sub consistency
- Fix disconnect callback to properly handle BleakClient and close BLEClient wrapper
- Add meshtastic.connection.status messages with connected boolean to align with example
- Improve reconnect_example.py exception handling to continue loop instead of exiting
- Prevent thread leaks by properly closing BLE client wrapper in background thread
- Fix AttributeError in disconnect callback by using correct client.address attribute
Critical fixes that ensure the BLE reconnection feature works correctly and
prevents resource leaks during disconnection events.1 parent 28a5880 commit 342037c
3 files changed
Lines changed: 16 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
| 77 | + | |
| 78 | + | |
78 | 79 | | |
79 | 80 | | |
80 | 81 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
109 | | - | |
| 109 | + | |
110 | 110 | | |
111 | | - | |
| 111 | + | |
| 112 | + | |
112 | 113 | | |
113 | | - | |
114 | | - | |
| 114 | + | |
115 | 115 | | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
116 | 120 | | |
117 | 121 | | |
118 | 122 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1132 | 1132 | | |
1133 | 1133 | | |
1134 | 1134 | | |
| 1135 | + | |
| 1136 | + | |
| 1137 | + | |
1135 | 1138 | | |
1136 | 1139 | | |
1137 | 1140 | | |
| |||
1165 | 1168 | | |
1166 | 1169 | | |
1167 | 1170 | | |
| 1171 | + | |
| 1172 | + | |
| 1173 | + | |
1168 | 1174 | | |
1169 | 1175 | | |
1170 | 1176 | | |
| |||
0 commit comments