Commit ee8fbde
committed
update: firmware: profile: support to update multiple nodes at once
'XBeeNetwork' class includes a new method 'update_nodes()' to update several
nodes at once (firmware or profile).
It requires a list of update tasks with the process details (node, files,
timeout) and also an optional progress callback to get information about each
single update process, similar to the callbacks in 'update_firmware()' and
'apply_profile()' methods of 'XBeeDevice' and 'RemoteXBeeDevice'.
This commit adds the possibility of registering a new callback in the network
using 'add_update_progress_callback()' method. This callback is executed every
time the status of any update process (firmware or profile) changes.
It indicates the XBee being updated, the tasks in process, and its current
percentage.
The corresponding 'del_update_progress_callback()' is also implemented.
https://onedigi.atlassian.net/browse/DAL-5285
Signed-off-by: Tatiana Leon <Tatiana.Leon@digi.com>1 parent fe6eb08 commit ee8fbde
File tree
8 files changed
+761
-73
lines changed- digi/xbee
- models
- doc/user_doc
8 files changed
+761
-73
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| 27 | + | |
| 28 | + | |
26 | 29 | | |
27 | 30 | | |
28 | 31 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
| 61 | + | |
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| |||
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
| 149 | + | |
149 | 150 | | |
150 | 151 | | |
151 | 152 | | |
| |||
8607 | 8608 | | |
8608 | 8609 | | |
8609 | 8610 | | |
| 8611 | + | |
8610 | 8612 | | |
8611 | 8613 | | |
8612 | 8614 | | |
| |||
8908 | 8910 | | |
8909 | 8911 | | |
8910 | 8912 | | |
| 8913 | + | |
| 8914 | + | |
| 8915 | + | |
| 8916 | + | |
| 8917 | + | |
| 8918 | + | |
| 8919 | + | |
| 8920 | + | |
| 8921 | + | |
| 8922 | + | |
| 8923 | + | |
| 8924 | + | |
| 8925 | + | |
| 8926 | + | |
| 8927 | + | |
| 8928 | + | |
| 8929 | + | |
| 8930 | + | |
| 8931 | + | |
| 8932 | + | |
| 8933 | + | |
| 8934 | + | |
| 8935 | + | |
| 8936 | + | |
| 8937 | + | |
| 8938 | + | |
| 8939 | + | |
| 8940 | + | |
| 8941 | + | |
| 8942 | + | |
| 8943 | + | |
| 8944 | + | |
| 8945 | + | |
| 8946 | + | |
| 8947 | + | |
| 8948 | + | |
| 8949 | + | |
| 8950 | + | |
8911 | 8951 | | |
8912 | 8952 | | |
8913 | 8953 | | |
| |||
9028 | 9068 | | |
9029 | 9069 | | |
9030 | 9070 | | |
| 9071 | + | |
| 9072 | + | |
| 9073 | + | |
| 9074 | + | |
| 9075 | + | |
| 9076 | + | |
| 9077 | + | |
| 9078 | + | |
| 9079 | + | |
| 9080 | + | |
| 9081 | + | |
| 9082 | + | |
| 9083 | + | |
| 9084 | + | |
9031 | 9085 | | |
9032 | 9086 | | |
9033 | 9087 | | |
| |||
9128 | 9182 | | |
9129 | 9183 | | |
9130 | 9184 | | |
| 9185 | + | |
| 9186 | + | |
| 9187 | + | |
| 9188 | + | |
| 9189 | + | |
| 9190 | + | |
| 9191 | + | |
| 9192 | + | |
| 9193 | + | |
| 9194 | + | |
| 9195 | + | |
| 9196 | + | |
| 9197 | + | |
| 9198 | + | |
| 9199 | + | |
| 9200 | + | |
| 9201 | + | |
| 9202 | + | |
| 9203 | + | |
| 9204 | + | |
| 9205 | + | |
| 9206 | + | |
| 9207 | + | |
9131 | 9208 | | |
9132 | 9209 | | |
9133 | 9210 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3287 | 3287 | | |
3288 | 3288 | | |
3289 | 3289 | | |
3290 | | - | |
| 3290 | + | |
3291 | 3291 | | |
3292 | 3292 | | |
3293 | 3293 | | |
| |||
3320 | 3320 | | |
3321 | 3321 | | |
3322 | 3322 | | |
3323 | | - | |
| 3323 | + | |
3324 | 3324 | | |
3325 | 3325 | | |
3326 | 3326 | | |
| |||
0 commit comments