bristlemouth / bm_protocol

Primary Bristlemouth firmware repository
https://www.bristlemouth.org/
Apache License 2.0
12 stars 8 forks source link

don't update a node if it's note in the topology #125

Closed russelldeguzman closed 7 months ago

russelldeguzman commented 7 months ago

bridge dfu test.bin abcdef123456 120000 force

2024-03-29T16:52:37.238Z [BM_DFU] [INFO] Transfer complete!
2024-03-29T16:52:37.238Z [BM_DFU] [INFO] Transitioning to state: update
2024-03-29T16:52:37.242Z [BM_DFU] [INFO] File transferred, entering update phase.
2024-03-29T16:52:37.242Z [BM_DFU] [INFO] Opening test.bin
2024-03-29T16:52:37.542Z [BM_DFU] [INFO] Node 0000abcdef123456 update status: 0, 12
Update finished: 0000abcdef123456 success: 0 err:c

Will note hotplugging will cause DFU availability delay until topology sampler kicks in (up to 1 min) in the spec upon merge.