ESP8266 blynk acces point

hi

So recently i found that in examples for Blynk when I go to: More-> DirectConnect, there is example called “ESP8266_AccessPoint” which is kinda weird because I tought that blynk has to have internet connection on phone to send data through server, although I want to create an blynk controlled servo motor which i can access through ESP via WiFi connection. So i uploaded it and the Acces Point is up and I can connect, but here comes the actual problem, when I am connected to this WiFi through phone I cant send any data to blynk servers which leaves me with uselles WiFi station.
Any ideas maybe how to switch blynk app to offline mode or maybe I misunderstood this example?

Kindly waiting for feedback :slight_smile:

I am using iOs and ESP8266-01

(Posted it in issues and errors because i think that this example is the problem)

Code:


#define BLYNK_USE_DIRECT_CONNECT

#include <ESP8266WiFi.h>
#include <ESP8266WebServer.h>
#include <BlynkSimpleStream.h>

// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "yOlUZgiNWIGJUI1AadTqMdRQ7CWtT1F_";

// This device Access Point credentials.
// Set password to "" to create open network.
const char* ssid = "RTD_0.1";
const char* pass = "maciej333";

WiFiServer wifiServer(80);
WiFiClient wifiClient;

// This function tries to reconnect to WiFi network
void connectWiFi() {
  Serial.print("Configuring access point...");

  if (pass && strlen(pass)) {
    WiFi.softAP((char*)ssid, (char*)pass);
  } else {
    WiFi.softAP((char*)ssid);
  }

  wifiServer.stop();

  wifiServer.begin();

  Serial.print("Server started: ");
  Serial.println(WiFi.softAPIP());
}


BLYNK_WRITE(V1)
{
  int j1_x = param[0].asInt();
  int j1_y = param[1].asInt();
  Serial.println(j1_x);
}

BLYNK_WRITE(V0) 
{
  int j2_x = param[0].asInt();
  int j2_y = param[1].asInt();
  Serial.println(j2_x);
}


void setup() {
  Serial.begin(9600);

  connectWiFi();
}

void loop() {
  // If thereis some client
  wifiClient = wifiServer.available();
  if (wifiClient)
  {
    Serial.println("client available");
    Blynk.begin(wifiClient, auth);
    while (wifiClient.connected())
    {
      Blynk.run();
    }
  }
}