 const char* outTopic = "domogik/relayClient";
 const char* inTopic = "domogik/in/relay/#";
 const char* outRelayTopic = "domogik/in/relay/r";
+const char* outPinTopic = "domogik/relayArduinoPin";
 
 bool relayStates[] = {
   HIGH, HIGH, HIGH, HIGH, HIGH, HIGH, HIGH, HIGH, HIGH, HIGH, HIGH, HIGH, HIGH, HIGH, HIGH, HIGH, HIGH, HIGH, HIGH, HIGH, HIGH, HIGH, HIGH, HIGH, HIGH, HIGH, HIGH, HIGH, HIGH, HIGH, HIGH, HIGH

  22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53
};       // an array of pin numbers to which LEDs are attached
int pinCount = 32;

void setup_ethernet() {



  The current state is stored in EEPROM and restored on bootup

  Pins 2->7 are used as input (switch) detection. Their state are published on domogik/relayArduinoPin1

*/
#include <Ethernet.h>
#include <PubSubClient.h>
#include <EEPROM.h>
#include <Bounce2.h>

// Update these with values suitable for your network.
byte mac[]    = {  0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xEE };
