Servo on BlynkEdgent not working

servo not working on blynk edgent but when comment on BlynkEdgent.run() it work

void loop()
{
  BlynkEdgent.run();

    for(int posDegrees = 0; posDegrees <= 180; posDegrees++) {
        servo_test.write(posDegrees);
        Serial.println(posDegrees);
        delay(20);
    }

    for(int posDegrees = 180; posDegrees >= 0; posDegrees--) {
        servo_test.write(posDegrees);
        Serial.println(posDegrees);
        delay(20);
    }
}

Are you sure it isn’t your bad coding practice that is causing the issues?

Running those for() loops in the void loop() shuts down edgent and everything else you might have running for 7+ seconds each loop cycle

BLYNK_WRITE(V6) //servo
{
  int pinValue = param.asInt();
  if (pinValue == 1) {    // if Button sends 1
    servo_test.write(0);
  }
  else {
    servo_test.write(90);
  }
  Blynk.syncVirtual(V6);
}
void loop()
{
  BlynkEdgent.run();
}

even when we uploaded the code like this, the servo still does not run.

Servo.h (assuming you use that, as you haven’t given full details) is known to have conflicts with other timer based libraries like SoftwareSerial.h

Try supplying all the details about your code

[Unformatted code removed by moderator]

yes. I use servo.h these are the libraries I use for my project.

If you are not going to supply all the needed details, full code and so on, then not much more I can suggest except for you to Google for other servo library issues & options and try their solutions

https://www.google.com/search?q=Servo.h+conflicts