Skip to content

Instantly share code, notes, and snippets.

@mash
Last active August 29, 2015 14:06
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mash/c82e6f52d04f4b6630ff to your computer and use it in GitHub Desktop.
Save mash/c82e6f52d04f4b6630ff to your computer and use it in GitHub Desktop.
msc {
# entities
User, App, IRKit, Server;
# space
|||;
IRKit note Server [label = "Successfully connected"];
IRKit note IRKit [label = "Started listening on port 80"];
|||;
User -> App [label = "User opens Learn View"];
App => IRKit [label = "GET /irsignals (longpoll)"];
App note IRKit [label = "Retain connection"];
|||;
User -> IRKit [label = "Send IR signal"];
App << IRKit [label = "IR signal in HTTP Response"];
App -> IRKit [label = "GET /irsignals (longpoll)"];
IRKit note IRKit [label = "HTTP Request Timeout"];
App -> IRKit [label = "GET /irsignals (longpoll)"];
User -> App [label = "User dismisses Learn View"];
App note IRKit [label = "Disconnect"];
}
OUT = ir-state.png ir-learn.png ir-send.png packer.png wifi-morse-setup.png
all: $(OUT)
.SUFFIXES: .png .gv .msc
.gv.png:
dot -Tpng $< -o $@
.msc.png:
mscgen -T png -i $<
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment