Skip to content

Latest commit

 

History

History
34 lines (23 loc) · 472 Bytes

README.md

File metadata and controls

34 lines (23 loc) · 472 Bytes

Punch Me Android Client

It uses android linear acceleration to determine which direction is the phone being swing.

Socket is used to connect to the server. It will send a text to the server to indicate a punch.

##Message format

###Send a punch to server

PUNCH [DIRECTION] [FORCE]
DIRECTION
LEFT
RIGHT
UP
DOWN
FORCE
0-10

###Upload an image to server

IMAGE
[data]
data
blob of image(binary)