Implement file transfer progress

This commit is contained in:
2021-12-12 17:08:48 -08:00
parent 56ed3dda88
commit 8c020f792d
8 changed files with 328 additions and 73 deletions

View File

@@ -72,6 +72,13 @@ type DFUProgress struct {
Sent int64 `mapstructure:"sent"`
}
type FSTransferProgress struct {
Type int `json:"type" mapstructure:"type"`
Total uint32 `json:"total" mapstructure:"total"`
Sent uint32 `json:"sent" mapstructure:"sent"`
Done bool `json:"done" mapstructure:"done"`
}
type MotionValues struct {
X int16
Y int16