Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
X
xxdk-wasm
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
elixxir
xxdk-wasm
Commits
8a68a48e
Commit
8a68a48e
authored
1 year ago
by
Josh Brooks
Browse files
Options
Downloads
Patches
Plain Diff
Add suggested values for low power mode
parent
6add3c5d
No related branches found
No related tags found
2 merge requests
!104
Modify documentation of SetTrackNetworkPeriod for clarity on Low Power Mode
,
!67
fix for latest client release
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
wasm/follow.go
+8
-0
8 additions, 0 deletions
wasm/follow.go
with
8 additions
and
0 deletions
wasm/follow.go
+
8
−
0
View file @
8a68a48e
...
@@ -91,9 +91,17 @@ func (c *Cmix) StopNetworkFollower(js.Value, []js.Value) any {
...
@@ -91,9 +91,17 @@ func (c *Cmix) StopNetworkFollower(js.Value, []js.Value) any {
// of the device following the network.
// of the device following the network.
// - Low period -> Higher frequency of polling -> Higher battery usage
// - Low period -> Higher frequency of polling -> Higher battery usage
// - High period -> Lower frequency of polling -> Lower battery usage
// - High period -> Lower frequency of polling -> Lower battery usage
//
// This may be used to enable a low power (or battery optimization) mode
// This may be used to enable a low power (or battery optimization) mode
// for the end user.
// for the end user.
//
//
// Suggested values are provided, however there are no guarantees that these
// values will perfectly fit what the end user's device would require to match
// the user's expectations:
// - Low Power Usage: 5000 milliseconds
// - High Power Usage: 1000 milliseconds (default, see
// [cmix.DefaultFollowPeriod]
//
// Parameters:
// Parameters:
// - args[0] - The duration of the period, in milliseconds (int).
// - args[0] - The duration of the period, in milliseconds (int).
func
(
c
*
Cmix
)
SetTrackNetworkPeriod
(
_
js
.
Value
,
args
[]
js
.
Value
)
any
{
func
(
c
*
Cmix
)
SetTrackNetworkPeriod
(
_
js
.
Value
,
args
[]
js
.
Value
)
any
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment