void RemoteAnalogWrite()
{
// If desired, use more server.print() to send http header instead of just sending the analog value.
int pwmPin = param1[0] - '0'; // Param1 should be one digit analog port
int pwmState = param2[0] - '0'; // Param2 should be between 0 and 255
analogWrite(pwmPin, pwmState);
}
This looks like an excellent place to put some debug prints to tell you what the values of pwmPin and pwmState.