Developing lightweight computation at the DSG edge

chat.htm 850 Bytes
Newer Older
p4u's avatar
p4u committed
1
<%+header%>
2
<meta http-equiv="refresh" content="60" />
p4u's avatar
p4u committed
3
<h2><a id="content" name="content"><%:Chat%></a></h2>
4
5
<p>This is sms a chat where all bmx6 nodes can participate. The data is replayed using routing packets, so there is a limit of 2040 bytes. Use it only to send short messages.</p>
<p>Each participant can only send one sms at same time.</p>
p4u's avatar
p4u committed
6
<br />
7

p4u's avatar
p4u committed
8
9
10
11
<strong>Received SMS</strong>
<br />
<pre style="background-color:#dadbe6;">
<% for orig,sms in pairs(chat) do %>
12
         <u><%=orig%></u>:<%=sms%>
p4u's avatar
p4u committed
13
14
<% end %>
</pre>
15
16
17
18
19

<form action=".">
        <input type="submit" value="refresh" />
</form>

p4u's avatar
p4u committed
20
21
22
23
<br />

<form action="." method="post">
	<input type="text" name="toSend" />
24
	<input type="submit" value="send sms" />
p4u's avatar
p4u committed
25
26
27
28
29
30
31
32
33
34
35
</form>

<br />
<table>
	<tr>
	<td><strong>Your last sms: </strong></td>
	<td><pre><%=sent%></pre></td>
	</tr>
</table>
<%+footer%>