From 46a6fa51faa7958fdc72225db90bb5e986e42d7c Mon Sep 17 00:00:00 2001 From: fauresystems <34378695+fauresystems@users.noreply.github.com> Date: Wed, 4 Mar 2020 08:47:34 +0100 Subject: [PATCH] Update examples Change props configuration --- .../BlinkOnBridgeProps/BlinkOnBridgeProps.ino | 14 +++++++------- .../BlinkOnBridgePubSub/BlinkOnBridgePubSub.ino | 14 +++++++------- .../BlinkOnEthernetProps.ino | 16 ++++++++-------- examples/BlinkOnWifiProps/BlinkOnWifiProps.ino | 16 ++++++++-------- 4 files changed, 30 insertions(+), 30 deletions(-) diff --git a/examples/BlinkOnBridgeProps/BlinkOnBridgeProps.ino b/examples/BlinkOnBridgeProps/BlinkOnBridgeProps.ino index 54261d9..78e0be1 100644 --- a/examples/BlinkOnBridgeProps/BlinkOnBridgeProps.ino +++ b/examples/BlinkOnBridgeProps/BlinkOnBridgeProps.ino @@ -14,14 +14,14 @@ #include #include "ArduinoProps.h" -// If you're running our Escape Room control software (Room 2.0) you have to respect -// prpos inbox/outbox syntax Room/[escape room name]/Props/[propsname]/inbox|outbox -// https://live-escape.net/go/room +// If you're running xcape.io Room software you have to respect props inbox/outbox +// topicw syntax: Room/[escape room name]/Props/[propsname]/inbox|outbox +// https://xcape.io/go/room -BridgeProps props(u8"Arduino Contrôleur", // as MQTT client id, should be unique per client for given broker - u8"Room/Demoniak/Props/Arduino Contrôleur/inbox", - u8"Room/Demoniak/Props/Arduino Contrôleur/outbox", - "192.168.1.42", // your MQTT server IP address +BridgeProps props(u8"Arduino Blink", // as MQTT client id, should be unique per client for given broker + u8"Room/My room/Props/Arduino Blink/inbox", + u8"Room/My room/Props/Arduino Blink/outbox", + "192.168.1.53", // your MQTT server IP address 1883); // your MQTT server port; PropsDataLogical clignoter(u8"clignote", u8"oui", u8"non", true); diff --git a/examples/BlinkOnBridgePubSub/BlinkOnBridgePubSub.ino b/examples/BlinkOnBridgePubSub/BlinkOnBridgePubSub.ino index 71d6c63..781d781 100644 --- a/examples/BlinkOnBridgePubSub/BlinkOnBridgePubSub.ino +++ b/examples/BlinkOnBridgePubSub/BlinkOnBridgePubSub.ino @@ -10,14 +10,14 @@ #include #include -#define BROKER "192.168.1.42" // your MQTT server IP address -#define PROPS_NAME u8"Arduino Contrôleur" // as MQTT client id, should be unique per client for given broker +// If you're running xcape.io Room software you have to respect props inbox/outbox +// topicw syntax: Room/[escape room name]/Props/[propsname]/inbox|outbox +// https://xcape.io/go/room -// If you're running our Escape Room control software (Room 2.0) you have to respect -// props inbox/outbox syntax Room/[escape room name]/Props/[propsname]/inbox|outbox -// https://live-escape.net/go/room -#define PROPS_INBOX u8"Room/Demoniak/Props/Arduino Contrôleur/inbox" -#define PROPS_OUTBOX u8"Room/Demoniak/Props/Arduino Contrôleur/outbox" +#define BROKER "192.168.1.53" // your MQTT server IP address +#define PROPS_NAME u8"Arduino Blink" // as MQTT client id, should be unique per client for given broker +#define PROPS_INBOX u8"Room/My room/Props/Arduino Blink/inbox" +#define PROPS_OUTBOX u8"Room/My room/Props/Arduino Blink/outbox" // Yun can store broker IP address in Linino file systems, and updatred with ssh command #define YUN_BROKER_FILE "/root/broker" diff --git a/examples/BlinkOnEthernetProps/BlinkOnEthernetProps.ino b/examples/BlinkOnEthernetProps/BlinkOnEthernetProps.ino index 36f1e60..a9bc859 100644 --- a/examples/BlinkOnEthernetProps/BlinkOnEthernetProps.ino +++ b/examples/BlinkOnEthernetProps/BlinkOnEthernetProps.ino @@ -22,15 +22,15 @@ String ip = ""; //<<< ENTER YOUR IP ADDRESS HERE ("" for DHCP) #undef LED_BUILTIN #define LED_BUILTIN 8 -// If you're running our Escape Room control software (Room 2.0) you have to respect -// prpos inbox/outbox syntax Room/[escape room name]/Props/[propsname]/inbox|outbox -// https://live-escape.net/go/room +// If you're running xcape.io Room software you have to respect props inbox/outbox +// topicw syntax: Room/[escape room name]/Props/[propsname]/inbox|outbox +// https://xcape.io/go/room -EthernetProps props(u8"Arduino Contrôleur", // as MQTT client id, should be unique per client for given broker - u8"Room/Demoniak/Props/Arduino Contrôleur/inbox", - u8"Room/Demoniak/Props/Arduino Contrôleur/outbox", - "192.168.1.42", // your MQTT server IP address - 1883); // your MQTT server port; +EthernetProps props(u8"Arduino Blink", // as MQTT client id, should be unique per client for given broker + u8"Room/My room/Props/Arduino Blink/inbox", + u8"Room/My room/Props/Arduino Blink/outbox", + "192.168.1.53", // your MQTT server IP address + 1883); // your MQTT server port; PropsDataLogical clignoter(u8"clignote", u8"oui", u8"non", true); PropsDataLogical led(u8"led"); diff --git a/examples/BlinkOnWifiProps/BlinkOnWifiProps.ino b/examples/BlinkOnWifiProps/BlinkOnWifiProps.ino index c02f4f0..39e4052 100644 --- a/examples/BlinkOnWifiProps/BlinkOnWifiProps.ino +++ b/examples/BlinkOnWifiProps/BlinkOnWifiProps.ino @@ -21,15 +21,15 @@ const char *passphrase = ""; #undef LED_BUILTIN #define LED_BUILTIN 8 -// If you're running our Escape Room control software (Room 2.0) you have to respect -// prpos inbox/outbox syntax Room/[escape room name]/Props/[propsname]/inbox|outbox -// https://live-escape.net/go/room +// If you're running xcape.io Room software you have to respect props inbox/outbox +// topicw syntax: Room/[escape room name]/Props/[propsname]/inbox|outbox +// https://xcape.io/go/room -WifiProps props(u8"Arduino Contrôleur", // as MQTT client id, should be unique per client for given broker - u8"Room/Demoniak/Props/Arduino Contrôleur/inbox", - u8"Room/Demoniak/Props/Arduino Contrôleur/outbox", - "192.168.1.42", // your MQTT server IP address - 1883); // your MQTT server port; +WifiProps props(u8"Arduino Blink", // as MQTT client id, should be unique per client for given broker + u8"Room/My room/Props/Arduino Blink/inbox", + u8"Room/My room/Props/Arduino Blink/outbox", + "192.168.1.53", // your MQTT server IP address + 1883); // your MQTT server port; PropsDataLogical clignoter(u8"clignote", u8"oui", u8"non", true); PropsDataLogical led(u8"led");