added setPwmCfg via json api + test