aboutsummaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorJakob Odersky <jodersky@gmail.com>2015-05-24 14:02:26 +0200
committerJakob Odersky <jodersky@gmail.com>2015-05-24 15:58:17 +0200
commit981af73daeeebc52952af8e3ab02ba5864d85cf4 (patch)
tree452a24f078e0d45e1cd98e6c40699c31131406d7 /Documentation
parent5cc9c4d4377cd0225675d5996c5df5ddc993ab68 (diff)
downloadakka-serial-981af73daeeebc52952af8e3ab02ba5864d85cf4.tar.gz
akka-serial-981af73daeeebc52952af8e3ab02ba5864d85cf4.tar.bz2
akka-serial-981af73daeeebc52952af8e3ab02ba5864d85cf4.zip
update documentation
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/README.md7
-rw-r--r--Documentation/basics.md6
2 files changed, 11 insertions, 2 deletions
diff --git a/Documentation/README.md b/Documentation/README.md
new file mode 100644
index 0000000..e7c1d0b
--- /dev/null
+++ b/Documentation/README.md
@@ -0,0 +1,7 @@
+# Contents
+
+1. [Basics - initial concepts and communication protocol](basics.md) (Read this if you are new to flow)
+
+2. [Watching for new ports](watching.md)
+
+3. [Building from source](building.md)
diff --git a/Documentation/basics.md b/Documentation/basics.md
index 1982f66..f18b62a 100644
--- a/Documentation/basics.md
+++ b/Documentation/basics.md
@@ -26,8 +26,10 @@ val settings = SerialSettings(
IO(Serial) ! Serial.Open(port, settings)
def receive = {
- case CommandFailed(cmd: Open, reason: AccessDeniedException) => println("you're not allowed to open that port!")
- case CommandFailed(cmd: Open, reason) => println("could not open port for some other reason: " + reason.getMessage)
+ case CommandFailed(cmd: Open, reason: AccessDeniedException) =>
+ println("you're not allowed to open that port!")
+ case CommandFailed(cmd: Open, reason) =>
+ println("could not open port for some other reason: " + reason.getMessage)
case Opened(settings) => {
val operator = sender
//do stuff with the operator, e.g. context become opened(op)