diff --git a/bindings/fileTransfer.go b/bindings/fileTransfer.go index 79e4bbb86550887d7effacf17df335a4a6fa92fa..a460252a970814964c2a631f4eba916845b59047 100644 --- a/bindings/fileTransfer.go +++ b/bindings/fileTransfer.go @@ -268,7 +268,9 @@ func (f *FileTransfer) CloseSend(tidBytes []byte) error { // Parameters: // - tidBytes - file transfer ID // - callback - callback that reports file reception progress -// - period - duration (in ms) to wait between progress callbacks triggering +// - period - Duration (in ms) to wait between progress callbacks triggering. +// This value should depend on how frequently you want to receive +// updates. Suggested default: 50 func (f *FileTransfer) RegisterSentProgressCallback(tidBytes []byte, callback FileTransferSentProgressCallback, period int) error { cb := func(completed bool, arrived, total uint16, @@ -297,7 +299,8 @@ func (f *FileTransfer) RegisterSentProgressCallback(tidBytes []byte, // - tidBytes - file transfer ID // - callback - callback that reports file reception progress // - period - Duration (in ms) to wait between progress callbacks triggering. -// Suggested default: 50 +// This value should depend on how frequently you want to receive +// updates. Suggested default: 50 func (f *FileTransfer) RegisterReceivedProgressCallback(tidBytes []byte, callback FileTransferReceiveProgressCallback, period int) error { cb := func(completed bool, received, total uint16,