Bug in the example code shape_demo_mio_08?
Closed this issue · 1 comments
mango009 commented
Question regarding the example code shape_demo_mio_08/main.rs
Sorry for the confusion but why is the writer register for READABLE readiness in line 72?
let mut writer_opt = if is_publisher {
debug!("Publisher");
let publisher = domain_participant.create_publisher(&qos).unwrap();
let mut writer = publisher
.create_datawriter_cdr::<Shape>(&topic, None) // None = get qos policy from publisher
.unwrap();
poll
.registry()
.register(
writer.as_status_source(),
WRITER_STATUS_READY,
Interest::READABLE, // <-- should this be interest::WRITABLE instead?
)
.unwrap();
Some(writer)
} else {
None
};
mango009 commented
Looks like that is just for the readiness