Skip to content

Commit 7bda45d

Browse files
author
ted
committed
Updated the documentation and readme
1 parent f31d990 commit 7bda45d

File tree

3 files changed

+47
-4
lines changed

3 files changed

+47
-4
lines changed

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@
22

33
Library project for Android apps that use the Sense platform and communicate with CommonSense.
44

5-
## Javadoc
6-
7-
See this projects' [GitHub pages](http://senseobservationsystems.github.com/sense-android-library).
5+
## Documentation
6+
For information about the used concepts and implementation details visit the [GitHub pages](http://senseobservationsystems.github.com/sense-android-library).
87

98
## Tutorial
109

sense-android-library/Doxyfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ PROJECT_NAME = "Sense Android Library"
3232
# This could be handy for archiving the generated documentation or
3333
# if some version control system is used.
3434

35-
PROJECT_NUMBER = 2.7.0
35+
PROJECT_NUMBER = 3.4
3636

3737
# Using the PROJECT_BRIEF tag one can provide an optional one line description
3838
# for a project that appears at the top of each page and should give viewer

sense-android-library/documentation/settings.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,39 @@ senseService.setPrefString(SensePrefs.Main.Advanced.ENCRYPT_DATABASE_SALT, "some
4444
String username = senseService.getPrefString(SensePrefs.Auth.LOGIN_USERNAME, "");
4545
~~~
4646

47+
# Sample and sync rate {#sample_sync_rate}
48+
With the preferences nl.sense_os.service.constants.SensePrefs.Main.SAMPLE_RATE and nl.sense_os.service.constants.SensePrefs.Main.SYNC_RATE the sensor sample and data upload interval can be set respectively. By default the NORMAL sync and sample rates are selected, however for most applications it's recommended to use the BALANCED sample rate and lowest sync rate e.g. ECO_MODE.
49+
50+
The different sample rates:
51+
52+
* RARELY<br>
53+
every 15 minutes
54+
* BALANCED<br>
55+
every 3 minutes, 5 minutes for location sensors
56+
* NORMAL<br>
57+
every minute, 5 minuts for location sensors
58+
* OFTEN<br>
59+
every 10 seconds, 30 seconds for location sensors, 5 seconds for external and motion sensors
60+
61+
The different sync rates:
62+
63+
* ECO_MODE<br>
64+
every 30 minutes
65+
* RARELY<br>
66+
every 15 minutes
67+
* NORMAL<br>
68+
every 5 minutes
69+
* OFTEN<br>
70+
every minute
71+
* REAL_TIME<br>
72+
immediately, local data buffering is disabled
73+
74+
Example for setting the sample and sync rate:
75+
~~~
76+
senseService.setPrefString(SensePrefs.Main.SAMPLE_RATE, SensePrefs.Main.SampleRate.BALANCED);
77+
senseService.setPrefString(SensePrefs.Main.SYNC_RATE, SensePrefs.Main.SyncRate.ECO_MODE);
78+
~~~
79+
4780
# Settings list {#settings_list}
4881

4982
* nl.sense_os.service.constants.SensePrefs.Main
@@ -118,6 +151,17 @@ String username = senseService.getPrefString(SensePrefs.Auth.LOGIN_USERNAME, "")
118151
* nl.sense_os.service.constants.SensePrefs.Main.PhoneState.SERVICE_STATE
119152
* nl.sense_os.service.constants.SensePrefs.Main.PhoneState.SIGNAL_STRENGTH
120153
* nl.sense_os.service.constants.SensePrefs.Main.PhoneState.UNREAD_MSG
154+
* nl.sense_os.service.constants.SensePrefs.Main.SampleRate
155+
* nl.sense_os.service.constants.SensePrefs.Main.SampleRate.RARELY
156+
* nl.sense_os.service.constants.SensePrefs.Main.SampleRate.BALANCED
157+
* nl.sense_os.service.constants.SensePrefs.Main.SampleRate.NORMAL
158+
* nl.sense_os.service.constants.SensePrefs.Main.SampleRate.OFTEN
159+
* nl.sense_os.service.constants.SensePrefs.Main.SyncRate
160+
* nl.sense_os.service.constants.SensePrefs.Main.SyncRate.RARELY
161+
* nl.sense_os.service.constants.SensePrefs.Main.SyncRate.ECO_MODE
162+
* nl.sense_os.service.constants.SensePrefs.Main.SyncRate.NORMAL
163+
* nl.sense_os.service.constants.SensePrefs.Main.SyncRate.OFTEN
164+
* nl.sense_os.service.constants.SensePrefs.Main.SyncRate.REAL_TIME
121165
* nl.sense_os.service.constants.SensePrefs.Main.Quiz
122166
* nl.sense_os.service.constants.SensePrefs.Main.Quiz.RATE
123167
* nl.sense_os.service.constants.SensePrefs.Main.Quiz.SILENT_MODE

0 commit comments

Comments
 (0)