 void loop()
 {
     client.loop();
-}+}

void setup()
{  
    Ethernet.begin(mac, ip);
    if (client.connect("MQTTRF", "home/controller/MQTTRF", 0, 1, STR_OFF)) {
        //Publish controller abilities and conencted hardware
        client.publish("home/controller/MQTTRF", (uint8_t *)"on", 2, 1);
        client.publish("home/controller/MQTTRF/light/1", (uint8_t *)"1", 1, 1);
        
        //Subscriptions
        client.subscribe("home/light/1/#");

// MQTTRF Arduino web gateway to RF433 transmitter controller
// Copyright (c) 2014, Guilherme Ramos <longinus@gmail.com>
// https://github.com/guibom/WebMQonttrol
// Released under the MIT license. See LICENSE file for details.
