correct version and OMG name assignment

This commit is contained in:
1technophile committed 2017-12-02 11:36:44 +01:00
1 parent d603cf1634
commit 9e7d92075a
2 files changed
+3 -2

No files matched your search

+1 -1
View File
@@ -93,7 +93,7 @@ boolean reconnect() {
// Once connected, publish an announcement... // Once connected, publish an announcement...
client.publish(will_Topic,Gateway_AnnouncementMsg,will_Retain); client.publish(will_Topic,Gateway_AnnouncementMsg,will_Retain);
// publish version // publish version
client.publish(version_Topic,VERSION,will_Retain); client.publish(version_Topic,OMG_VERSION,will_Retain);
//Subscribing to topic //Subscribing to topic
if (client.subscribe(subjectMQTTtoX)) { if (client.subscribe(subjectMQTTtoX)) {
#ifdef ZgatewayRF #ifdef ZgatewayRF
+2 -1
View File
@@ -29,13 +29,14 @@
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
/*-------------------VERSION----------------------*/ /*-------------------VERSION----------------------*/
#define VERSION "0.5" #define OMG_VERSION "0.5"
/*-------------DEFINE YOUR NETWORK PARAMETERS BELOW----------------*/ /*-------------DEFINE YOUR NETWORK PARAMETERS BELOW----------------*/
//MQTT Parameters definition //MQTT Parameters definition
#define mqtt_server "192.168.1.17" #define mqtt_server "192.168.1.17"
//#define mqtt_user "your_username" // not compulsory only if your broker needs authentication //#define mqtt_user "your_username" // not compulsory only if your broker needs authentication
#define mqtt_password "your_password" // not compulsory only if your broker needs authentication #define mqtt_password "your_password" // not compulsory only if your broker needs authentication
#define mqtt_port 1883 #define mqtt_port 1883
#define Gateway_Name "OpenMQTTGateway"
#define version_Topic "home/" Gateway_Name "/version" #define version_Topic "home/" Gateway_Name "/version"
#define will_Topic "home/" Gateway_Name "/LWT" #define will_Topic "home/" Gateway_Name "/LWT"
#define will_QoS 0 #define will_QoS 0