Skip to content

Commit

Permalink
release TCP API
Browse files Browse the repository at this point in the history
  • Loading branch information
Frank Zhang committed Dec 25, 2023
1 parent a68d7a2 commit 0f5ac0b
Show file tree
Hide file tree
Showing 5 changed files with 670 additions and 103 deletions.
28 changes: 28 additions & 0 deletions source/includes/http/_cmd_device_passthrough.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
## Passthrough Command

It is used to forward message from HTTP to MCU, to make it possible to send direct command to the board directly. And the sub commands are same with the commands sending over TCP or UART.

> Request format:
```html
GET /httpapi.asp?command=passthrough:<data>
```

### Parameter Description

`data` is descripted by following

Data | Description
---|---
`RAKOIT:THI:<N>`| set TREBLE tone, `<N>` range from 0~200, the real dB value is (N-100)/10.
`RAKOIT:TMI:<N>`| set MID tone, `<N>` range from 0~200, the real dB value is (N-100)/10.
`RAKOIT:TLO:<N>`| set BASS tone, `<N>` range from 0~200, the real dB value is (N-100)/10.
`RAKOIT:VBS:<N>`| set Virtual Bass enable, `<N>` range 0~1,
`RAKOIT:EQS:<S>`| set different EQ, `<S>` could be FLAT ...
`RAKOIT:MXV:<N>`| set max volume, `<N>` range 30~100
`RAKOIT:BAL:<N>`| set balance, `<N>` range 0~200, the real value of balance is N-100
`RAKOIT:VOF:<N>`| set fixed volume, `<N>` range 0~1
`RAKOIT:LED:<N>`| set LED enable, `<N>` range 0~1
`RAKOIT:BEP:<N>`| set Beep sound enable, `<N>` range 0~1
`RAKOIT:AOM:<M>`| set Audio output mode, `<M>` could be Stereo, Mono Left, Mono Right, Mono Mixed

Loading

0 comments on commit 0f5ac0b

Please sign in to comment.