I had an issue getting the library to work with a new dimmer switch. The only difference I could see in the returned setup.xml was that the new device used a new firmware (WEMO_WW_2.00.20110904.PVT-RTOS-DimmerV2), and also had the tag 1. The failure behavior was getting an ECONNRESET whenever interacting with the device. The only necessary change turned out to be adding the content length header, as I have done in the proposed change.
I had an issue getting the library to work with a new dimmer switch. The only difference I could see in the returned setup.xml was that the new device used a new firmware (WEMO_WW_2.00.20110904.PVT-RTOS-DimmerV2), and also had the tag1 . The failure behavior was getting an ECONNRESET whenever interacting with the device. The only necessary change turned out to be adding the content length header, as I have done in the proposed change.