QuantAsylum / QA40x

Releases (no source) for the QA402 and QA403 Audio Analyzer.
https://quantasylum.com/products/qa402-audio-analyzer
13 stars 1 forks source link

OutputSource Off is unrecognized parameter #11

Closed blurpy closed 2 years ago

blurpy commented 2 years ago

The documentation of the OutputSource API specifies some arguments:

PUT /Settings/OutputSource/{Source}

Arguments:
Sine Enables the sine generators. Note that each generator has its own enable controlled via Settings/SineGen.
Multitone 'Multitone' enables the multitone generator.
WhiteNoise 'WhiteNoise' enables the white noise generator.
ExpoChirp 'ExpoChirp' enables the exponential chirp generator.
Off 'Off' turns off all generators and send a stream of 0's to the DAC.

Sending "Sine" returns 200 OK, while "Off" fails:

$ curl -d "" -X PUT http://localhost:9402/Settings/OutputSource/Off -v
* Connected to localhost (::1) port 9402 (#0)
> PUT /Settings/OutputSource/Off HTTP/1.1
> Host: localhost:9402
> User-Agent: curl/7.77.0
> Accept: */*
> Content-Length: 0
> Content-Type: application/x-www-form-urlencoded
> 
* Mark bundle as not supporting multiuse
< HTTP/1.1 400 Unknown source name in /Settings/OutputSource
< Access-Control-Allow-Origin: *
< Content-Type: application/json
< Server: Mono-HTTPAPI/1.0
< Date: Thu, 30 Sep 2021 18:42:31 GMT
< Content-Length: 27
< Connection: close
< 
* Closing connection 0
{ "SessionId":"115373786" }

Perhaps it's not implemented, like Multitone? Multitone returns HTTP/1.1 400 Not yet implemented.

QuantAsylum commented 2 years ago

Noted, and thanks very much for reporting!

QuantAsylum commented 2 years ago

Fixed in 1.110