hihi, use the new qos and retain fields
This commit is contained in:
@@ -77,7 +77,7 @@ pub mod mqtt_client {
|
||||
Err(e) => println!("ERROR: publisher: failed to receve an message ({})", e),
|
||||
Ok(msg) => {
|
||||
println!("INFO : publisher: topic={}; payload={}", msg.topic, msg.payload);
|
||||
match client.publish(msg.topic, QoS::AtMostOnce, false, msg.payload) {
|
||||
match client.publish(msg.topic, msg.qos, msg.retain, msg.payload) {
|
||||
Err(_n) => println!("ERROR: publisher: failed to publish"),
|
||||
Ok(_n) => {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user