Application Guide

Wifi AudioHttp API
7 / 26
}
int ascii2hex(char* ascii_in, char* hex_out, int ascii_len, int hex_len)
{
const char hex[16] = {'0', '1', '2', '3', '4', '5', '6', '7', '8','9', 'A', 'B', 'C', 'D', 'E', 'F'};
int i = 0;
int ret = 0;
memset(hex_out, 0, hex_len);
while( i < ascii_len )
{
int b= ascii_in[i] & 0x000000ff;
hex_out[i*2] = hex[b/16] ;
hex_out[i*2+1] = hex[b%16] ;
++i;
ret += 2;
}
return ret;
}
2. API list
2.1. Get device information
http:// 10.10.10.254/httpapi.asp?command=getStatusEx
result
{
"language": "en_us",
"ssid": "FA5100_a4dc",
"firmware": "WIFIAudio.multil_room.1.2.20140324 ",
"builddate": "release ",
"Release": "20140324 ",
"group": "",
"expired": "0",
"internet": "0",
"uuid": "de cf 1d 2e b1 60 e4 38 ",