jimmywarting / wemo-client

JavaScript client library for controlling and subscribing to Wemo Devices
MIT License
132 stars 40 forks source link

added patch for new switches using rtos #73

Open xyven1 opened 2 years ago

xyven1 commented 2 years ago

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.

xyven1 commented 2 years ago

See also #63, #71