CloCkWeRX / node-samsung-airconditioner

MIT License
33 stars 27 forks source link

fixes: #5

Open luca-saggese opened 8 years ago

luca-saggese commented 8 years ago

using new node-ssdp added missing function SSDP.prototype.getSSDPHeader remove not working function get_temperature (use get_status instead)

enhancements: added required certificate (needed after samsung silent’s update)

mribbons commented 6 years ago

HI @luca-saggese, How did you find ac14k_m.pfx?

Is this required to authenticate the client, or to resolve ssl issues when talking to the device?

I noticed that the SSL implementation used by the device is now considered insecure, but I have got it working by overriding the default cyphers (I'm using python, didn't have much luck on that front with nodejs).

For python we need the .crt and .key in order to provide the client certificate. I am having trouble getting a token, so I'm wondering if it's because I'm not using these.

mribbons commented 6 years ago

OK, I finally got it to work under node, the certificate doesn't help for my device

node --tls-cipher-list="ECDHE-RSA-AES128-GCM-SHA256:RC4" run.js
mribbons commented 6 years ago

OK I managed to get a token.

After requesting the token via network, hold down the AP button for 5 seconds.

This works for the MIM-H02 wifi module.