Skip to content

Internal API Peripheral

Jannes P edited this page Jun 18, 2018 · 6 revisions

Request

get_pairing_code

ask the server for a pairing code, it will be valid for one hour

{
    context: "server",
    message_type: "request", 		
    message_code: "get_pairing_code",
    data: null				//not used
}

response data:

{
    code: string		//a code to pair with a new computer, needs to be shown to the user
}
Clone this wiki locally