   Serial.println(")");
 
   if(status==VALID) {
-    String topic = rfTopic + String("/recv/") + protocol;
+    String topic = globalTopic + String("/recv/") + protocol;
     if (deviceID != NULL) {
       topic += String('/') + deviceID;
     }

SHAauth otaAuth(myOTA_PASSWD);

const String mainTopic = String("rfESP_")+String(ESP.getChipId(), HEX);;
const String rfTopic = "rf434";
boolean logMode = false;
boolean rawMode = false;
String otaURL = "";

      mqtt.subscribe((mainTopic + "/set/+").c_str());
      mqtt.subscribe((mainTopic + "/ota/+").c_str());
      mqtt.subscribe((mainTopic + "/send/+").c_str());
      mqtt.subscribe((globalTopic + "/send/+").c_str());
    } else {
      Serial.print("failed, rc=");
      Serial.print(mqtt.state());
