Function rusp::usp_generator::usp_msg
source · pub fn usp_msg(msg_id: String, body: Body<'_>) -> Msg<'_>
Expand description
Wraps the body of a USP Msg into a USP Msg with the specified message ID
§Arguments
msg_id
- The message ID to put into the USP Msgbody
- The message body USP Msg
§Example
use rusp::usp_generator::{usp_msg, usp_get_request};
let newmsg = usp_msg(
"fancymsgid".to_string(),
usp_get_request(&["Device.", "Device.DeviceInfo."], 0),
);