[−][src]Function rusp::usp_generator::usp_set_request
pub fn usp_set_request<'a>(
allow_partial: bool,
args: &[(&'a str, &[(&'a str, &'a str, bool)])]
) -> Body<'a>
Generates a body of a USP Msg with a USP Set request
Arguments
allow_partial
- A boolean indicating whether partial execution of the Set command is permittedargs
- An array of tuples consisting of an object path and a arrow of tuples consisting of parametername, value and required flag to put into the Set request
Example
use rusp::usp_generator::usp_set_request; let req = usp_set_request(true, &[("Device.DeviceInfo.", &[("ProvisioningCode", "configured", true)])]);