Internet [Lua] (Conceptional, not complete)

leo3065 - Custom level - Mar 5, 2016 from Android
Play Edit 5 players liked this.

Simple Internet.
Operation:
Use left slider to select the device and click the button to connect.
After connected, set the left silder at 0 and use the right slider to send the data.
To disconnect, besure the left slider is over 0.5 and click the button.

Full documentation:
hardware definition:
device n: (1<=n<=N, N device in total)
freq 2n-1 for sending
freq 2n for recieving

protocol definition:
idle:
send: 0
starting a connection (when not connected):
send: A (>=1/N)
recieve: D (sender side)
A (reciever side)
A will be mutiplyed by N, rounded down and treated as device id
D<0.5: connced, =A/2
D=1: error, unable to connect
data stream:
D...
D = data/2 and will be restored on the other side
connection cancellation (when connected):
send: anything>0.5
recieve: 1
can be aquired on both sides of the connection

Coding on cellphone is somewhat inconvenient....

Downloads: 107 - Level ID: 21202