Skip to main content

build_subscribe_request

Function build_subscribe_request 

Source
pub fn build_subscribe_request(req: &SubscribeRequest) -> Vec<u8> 
Expand description

Build a SubscribeRequestMessage for the given subscription parameters.

Encodes to the wire format that byte-matches matter.js TlvSubscribeRequest.encode(...) for the same input (verified by tests/im_byte_parity.rs).

The path array reuses the same AttributePathIB list encoding as crate::read::build_read_request_paths: each path is an anonymous list with context tags 2/3/4 for endpoint/cluster/attribute; None components are omitted (wildcard).