diff --git a/.phrozn/entries/history/index.twig b/.phrozn/entries/history/index.twig
index 067d4d6..ebe37c5 100755
--- a/.phrozn/entries/history/index.twig
+++ b/.phrozn/entries/history/index.twig
@@ -2,6 +2,19 @@ id: history
title: History
---
+Version 2.0.1 (2011/10/10)
+
+
+ -
+ Send EnvayaSMS log messages to server via
log
parameter
+
+ -
+ Notify server of changes in the Android device's power/battery state
+ via
device_status
action.
+
+
+
+
Version 2.0 (2011/10/01)
diff --git a/.phrozn/entries/serverapi/index.twig b/.phrozn/entries/serverapi/index.twig
index e69ade2..ad45c54 100755
--- a/.phrozn/entries/serverapi/index.twig
+++ b/.phrozn/entries/serverapi/index.twig
@@ -201,7 +201,18 @@ The following parameters are sent in all POST requests from EnvayaSMS:
are running EnvayaSMS.
- - "action" ::= "outgoing" | "incoming" | "send_status" | "test"
+ - "log" ::= <text>
+ -
+ Log messages printed to the EnvayaSMS console since the last successful HTTP request.
+
+ You may wish to append this data to a log file to allow administrators
+ to see error details without needing physical access to the phone.
+
+ EnvayaSMS does not guarantee that the server receives log messages in order. Occasionally,
+ the server may receive the same log message multiple times.
+
+
+ - "action" ::= "outgoing" | "incoming" | "send_status" | "device_status" | "test"
-
The request action determines the purpose of the HTTP request:
@@ -221,10 +232,16 @@ The following parameters are sent in all POST requests from EnvayaSMS:
Update the server on the status of sending an outgoing message
+ - "device_status":
+ -
+ Notify the server of a change in the Android device's state.
+
+
- "test":
-
Test the server connection.
+
@@ -360,6 +377,39 @@ Additional parameters sent in POST requests with action=send_status
+Additional parameters sent in POST requests with action=device_status
:
+
+
+ - "status" ::= "power_connected" | "power_disconnected"
+ | "battery_low" | "battery_okay"
+ -
+ This field describes a condition that has changed on the Android device.
+
+
+ - "power_connected":
+ -
+ The phone is now connected to external power.
+
+
+ - "power_disconnected":
+ -
+ This phone is no longer connected to external power.
+
+
+ - "battery_low":
+ -
+ The phone's battery level has dropped below 15%.
+
+
+ - "battery_okay":
+ -
+ The phone's battery level is now at least 20% (after dropping below 15%).
+
+
+
+
+
+
HTTP Response Format
diff --git a/.phrozn/entries/test/index.twig b/.phrozn/entries/test/index.twig
index 567f7d4..e800de3 100755
--- a/.phrozn/entries/test/index.twig
+++ b/.phrozn/entries/test/index.twig
@@ -23,8 +23,7 @@ The following steps explain how to set up EnvayaSMS on an Android Virtual Device
Note: Android Market does not work in the emulator.
- Install EnvayaSMS
- Configure EnvayaSMS with the settings of your development server.
- Note: Do not enter localhost
as the Server URL (since this would refer to the AVD itself). Instead, use your computer's IP address on the local network, as shown by the ipconfig
- or ifconfig
utilities.
+ Note: Use 10.0.2.2
as the host in the Server URL. Do not enter localhost
, since this would refer to the AVD itself).
-
To simulate incoming SMS on the emulator:
diff --git a/history/index.html b/history/index.html
index 27c3677..a133132 100755
--- a/history/index.html
+++ b/history/index.html
@@ -42,6 +42,19 @@
History
+Version 2.0.1 (2011/10/10)
+
+
+ -
+ Send EnvayaSMS log messages to server via
log
parameter
+
+ -
+ Notify server of changes in the Android device's power/battery state
+ via
device_status
action.
+
+
+
+
Version 2.0 (2011/10/01)
diff --git a/serverapi/index.html b/serverapi/index.html
index 93e3480..4874e73 100755
--- a/serverapi/index.html
+++ b/serverapi/index.html
@@ -241,7 +241,18 @@ The following parameters are sent in all POST requests from EnvayaSMS:
are running EnvayaSMS.
- - "action" ::= "outgoing" | "incoming" | "send_status" | "test"
+ - "log" ::= <text>
+ -
+ Log messages printed to the EnvayaSMS console since the last successful HTTP request.
+
+ You may wish to append this data to a log file to allow administrators
+ to see error details without needing physical access to the phone.
+
+ EnvayaSMS does not guarantee that the server receives log messages in order. Occasionally,
+ the server may receive the same log message multiple times.
+
+
+ - "action" ::= "outgoing" | "incoming" | "send_status" | "device_status" | "test"
-
The request action determines the purpose of the HTTP request:
@@ -261,10 +272,16 @@ The following parameters are sent in all POST requests from EnvayaSMS:
Update the server on the status of sending an outgoing message
+ - "device_status":
+ -
+ Notify the server of a change in the Android device's state.
+
+
- "test":
-
Test the server connection.
+
@@ -400,6 +417,39 @@ Additional parameters sent in POST requests with action=send_status
+Additional parameters sent in POST requests with action=device_status
:
+
+
+ - "status" ::= "power_connected" | "power_disconnected"
+ | "battery_low" | "battery_okay"
+ -
+ This field describes a condition that has changed on the Android device.
+
+
+ - "power_connected":
+ -
+ The phone is now connected to external power.
+
+
+ - "power_disconnected":
+ -
+ This phone is no longer connected to external power.
+
+
+ - "battery_low":
+ -
+ The phone's battery level has dropped below 15%.
+
+
+ - "battery_okay":
+ -
+ The phone's battery level is now at least 20% (after dropping below 15%).
+
+
+
+
+
+
HTTP Response Format
diff --git a/test/index.html b/test/index.html
index 7f84e21..bd49b76 100755
--- a/test/index.html
+++ b/test/index.html
@@ -63,8 +63,7 @@ The following steps explain how to set up EnvayaSMS on an Android Virtual Device
Note: Android Market does not work in the emulator.
- Install EnvayaSMS
- Configure EnvayaSMS with the settings of your development server.
- Note: Do not enter localhost
as the Server URL (since this would refer to the AVD itself). Instead, use your computer's IP address on the local network, as shown by the ipconfig
- or ifconfig
utilities.
+ Note: Use 10.0.2.2
as the host in the Server URL. Do not enter localhost
, since this would refer to the AVD itself).
-
To simulate incoming SMS on the emulator: