From b75a5e70f2b9f132ff0af9f9a882d6b2cf7c4fd1 Mon Sep 17 00:00:00 2001 From: SAM Element <47309504+samelement@users.noreply.github.com> Date: Fri, 21 Jun 2019 09:24:07 +0700 Subject: [PATCH] Add files via upload --- .../WirelessDoorBell_Toyosaki.ino | 38 +++++++++---------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/examples/WirelessDoorBell_Toyosaki/WirelessDoorBell_Toyosaki.ino b/examples/WirelessDoorBell_Toyosaki/WirelessDoorBell_Toyosaki.ino index f2f7699..8a7d2af 100644 --- a/examples/WirelessDoorBell_Toyosaki/WirelessDoorBell_Toyosaki.ino +++ b/examples/WirelessDoorBell_Toyosaki/WirelessDoorBell_Toyosaki.ino @@ -119,27 +119,27 @@ void initPublish() { if (client.connected()) { - client.publish(MQTT::Publish(obj.constructTopic("$state"), "init").set_retain().set_qos(1)); - client.publish(MQTT::Publish(obj.constructTopic("$sammy"), "1.0.0").set_retain().set_qos(1)); - client.publish(MQTT::Publish(obj.constructTopic("$name"), "Wireless Bell").set_retain().set_qos(1)); - client.publish(MQTT::Publish(obj.constructTopic("$model"), "SAM-WDB01").set_retain().set_qos(1)); - client.publish(MQTT::Publish(obj.constructTopic("$mac"), WiFi.macAddress()).set_retain().set_qos(1)); - client.publish(MQTT::Publish(obj.constructTopic("$localip"), WiFi.localIP().toString()).set_retain().set_qos(1)); - client.publish(MQTT::Publish(obj.constructTopic("$fw/name"), "WDB01").set_retain().set_qos(1)); - client.publish(MQTT::Publish(obj.constructTopic("$fw/version"), "1.00").set_retain().set_qos(1)); - client.publish(MQTT::Publish(obj.constructTopic("$reset"), "true").set_retain().set_qos(1)); - client.publish(MQTT::Publish(obj.constructTopic("$restart"), "true").set_retain().set_qos(1)); - client.publish(MQTT::Publish(obj.constructTopic("$nodes"), "bell").set_retain().set_qos(1)); + client.publish(MQTT::Publish(obj.constructTopic("$state"), "init").set_retain(false).set_qos(1)); + client.publish(MQTT::Publish(obj.constructTopic("$sammy"), "1.0.0").set_retain(false).set_qos(1)); + client.publish(MQTT::Publish(obj.constructTopic("$name"), "Wireless Bell").set_retain(false).set_qos(1)); + client.publish(MQTT::Publish(obj.constructTopic("$model"), "SAM-WDB01").set_retain(false).set_qos(1)); + client.publish(MQTT::Publish(obj.constructTopic("$mac"), WiFi.macAddress()).set_retain(false).set_qos(1)); + client.publish(MQTT::Publish(obj.constructTopic("$localip"), WiFi.localIP().toString()).set_retain(false).set_qos(1)); + client.publish(MQTT::Publish(obj.constructTopic("$fw/name"), "WDB01").set_retain(false).set_qos(1)); + client.publish(MQTT::Publish(obj.constructTopic("$fw/version"), "1.00").set_retain(false).set_qos(1)); + client.publish(MQTT::Publish(obj.constructTopic("$reset"), "true").set_retain(false).set_qos(1)); + client.publish(MQTT::Publish(obj.constructTopic("$restart"), "true").set_retain(false).set_qos(1)); + client.publish(MQTT::Publish(obj.constructTopic("$nodes"), "bell").set_retain(false).set_qos(1)); //define node "bell" - client.publish(MQTT::Publish(obj.constructTopic("bell/$name"), "Bell").set_retain().set_qos(1)); - client.publish(MQTT::Publish(obj.constructTopic("bell/$type"), "Bell-01").set_retain().set_qos(1)); - client.publish(MQTT::Publish(obj.constructTopic("bell/$properties"), "button").set_retain().set_qos(1)); - - client.publish(MQTT::Publish(obj.constructTopic("bell/button/$name"), "Bell Button").set_retain().set_qos(1)); - client.publish(MQTT::Publish(obj.constructTopic("bell/button/$settable"), "true").set_retain().set_qos(1)); - client.publish(MQTT::Publish(obj.constructTopic("bell/button/$retained"), "false").set_retain().set_qos(1)); - client.publish(MQTT::Publish(obj.constructTopic("bell/button/$datatype"), "boolean").set_retain().set_qos(1)); + client.publish(MQTT::Publish(obj.constructTopic("bell/$name"), "Bell").set_retain(false).set_qos(1)); + client.publish(MQTT::Publish(obj.constructTopic("bell/$type"), "Bell-01").set_retain(false).set_qos(1)); + client.publish(MQTT::Publish(obj.constructTopic("bell/$properties"), "button").set_retain(false).set_qos(1)); + + client.publish(MQTT::Publish(obj.constructTopic("bell/button/$name"), "Bell Button").set_retain(false).set_qos(1)); + client.publish(MQTT::Publish(obj.constructTopic("bell/button/$settable"), "true").set_retain(false).set_qos(1)); + client.publish(MQTT::Publish(obj.constructTopic("bell/button/$retained"), "false").set_retain(false).set_qos(1)); + client.publish(MQTT::Publish(obj.constructTopic("bell/button/$datatype"), "boolean").set_retain(false).set_qos(1)); } }