 
   Serial.print("Connected, IP address: ");
   Serial.println(WiFi.localIP());
-
-  pinMode(RX, OUTPUT);
-  digitalWrite(RX, LOW);
 };
 
 void reconnect() {

char* configTopic;

WiFiClient wifiClient;
MQTTClient client(512); //(wifiClient);

//The clientId generation was taken from https://github.com/marvinroger/homie-esp8266
void clientIdSetup() {


#define MAX_HANDLERS 8
#define CONFIG_TOPIC_PREFIX "config/"

