   Serial.println(myWiFiManager->getConfigPortalSSID());
   //entered config mode, make led toggle faster
   ticker.attach(0.2, tick);
-}
-
-void updateBlynk(int channel) {
-
-}
-
-void updateMQTT(int channel) {
-#ifdef INCLUDE_MQTT_SUPPORT
-  int state = 0;//relay.currentState(channel); //THIS WHOLE FUNCTION TO BE REPLACED WTH OBSERVER PATTERN
-  char topic[50];
-  sprintf(topic, "%s/channel-%d/status", settings.mqttTopic, channel);
-  String stateString = state == 0 ? "off" : "on";
-  if ( channel >= SONOFF_AVAILABLE_CHANNELS) {
-    stateString = "disabled";
-  }
-  mqttClient.publish(topic, stateString);
-#endif
-}
-
-//THE NEEDS IMPLEMENTING, MAYBE THROUGH OBSERVER OF RELAY
-void setState(int pstate, int channel) {
-// REPLACE WITH OBSERVER of appCore
-//eg appCore.addObserver( &mqttOutbound )
-// responsible for adapting the on off to agreed mqtt seruakusatuib
-  //MQTT
-//  int state = relay.currentState(channel);
-//  mqttOutbound->updateMQTT(channel,state);
-
-
 }
 
 

  if (MQTT_ENABLED) {
    mqttClient.set_server(settings.mqttHostname, atoi(settings.mqttPort));
  }
#endif

  //OTA
  ArduinoOTA.onStart([]() {


  WiFiManagerParameter custom_mqtt_topic("mqtt-topic", "Topic", settings.mqttTopic, 33);
  wifiManager.addParameter(&custom_mqtt_topic);

  //set config save notify callback
  wifiManager.setSaveConfigCallback(saveConfigCallback);
