/baby

Primary LanguageJava

Baby

A simple Android-to-Android remote control app using Web Socket protocol.

CommandProtocol

A JSON object carrys a command body.

Example

{
	"type": <TYPE_OF_COMMAND>,
	"body": {
		<COMMAND_OBJECT>
	}
}
  • type: Determine body structure
  • body: JSON Object of a command. For list of commands see below.

Commands

MusicPlayer Command

  • Type: MusicPlayer
  • body
     {
     	"command": 1
     }
    • command: Control music player playback.
      • 1: Play
      • 2: Stop

Credits