Octoober / tuya-bulb-control

API wrapper for you smart bulbs developed by Tuya 💡
MIT License
31 stars 3 forks source link

update the sign header to include the stringToSign #4

Closed orpos closed 4 months ago

orpos commented 4 months ago

adds the stringToSign param in the sign header, it may fix #3 and in my testings it worked. the stringToSign consists of

HTTPMethod + "\n" +
Content-SHA256 + "\n" +
Optional_Signature_key + "\n" +
URL