pub fn usp_get_request<S: AsRef<str>>(params: &[S], max_depth: u32) -> Body<'_>
Expand description

Generates a body of a USP Msg with a USP Get request

§Arguments

  • params - An array of parameter/object names to put into the Get request
  • max_depth - Used to limit the maximum tree depth of the results in the corresponding Get Response. A zero value represents no limit.

§Example

use rusp::usp_generator::usp_get_request;
let req = usp_get_request(&["Device.", "Device.DeviceInfo."], 0);