raavi17:
Yes indeed. Well from what I know the ESP8266 PWM works just fine, I used it just this morning From the official GitHub repository:
analogWrite(pin, value) enables software PWM on the given pin. PWM may be used on pins 0 to 15. Call analogWrite(pin, 0) to disable PWM on the pin. value may be in range from 0 to PWMRANGE, which is currently equal to 1023.
And of course it's supported by a REST.
This rambling mess of words has NOTHING to do with OPs problem.