device-automation-bus/dab-specification-2.0

what is the expected response when device is not supported queried feature.

Closed this issue · 1 comments

Hi team,
what is the expected response, when the device is not supported queried feature.

eg :
when we query get " SystemSettingsGetConformance " . but my device is not supported pictureMode.
what is the expected response here.

currently dab looking for a type from below enum, and my device is supported none of them.

pub enum PictureMode {
    #[default]
    Standard,
    Dynamic,
    Movie,
    Sports,
    FilmMaker,
    Game,
    Auto,
}
interface GetCurrentSystemSettingsResponse extends DabResponse {
   language: rfc_5646_language_tag;
   outputResolution: OutputResolution;
   memc: boolean;
   cec: boolean;
   lowLatencyMode: boolean;
   matchContentFrameRate: MatchContentFrameRate;
   hdrOutputMode: HdrOutputMode;
   pictureMode: PictureMode;
   audioOutputMode: AudioOutputMode;
   audioOutputSource: AudioOutputSource;
   videoInputSource: VideoInputSource;
   audioVolume: int;
   mute: boolean;
   textToSpeech: boolean;
}

If the specific operation is not supported, as per the Common Response Payload section, you may return error code 501 with the reason Not implemented.