codetheweb / tuyapi

🌧 An easy-to-use API for devices that use Tuya's cloud services. Documentation: https://codetheweb.github.io/tuyapi.
MIT License
2.07k stars 341 forks source link

Command18 after ping via Option #582

Closed markuslaube closed 2 years ago

markuslaube commented 2 years ago

This update allows using the variable (issueRefreshOnPing = true) to send command 18 after each ping and then to query the status using get. Since there are now some devices that do not send updates by themselves.

markuslaube commented 2 years ago

ihm not a developer I hope that's it this what's you mean ;)

Apollon77 commented 2 years ago

One dumb question ... DIO we need the Ping at all when we send a real message? ;-)

markuslaube commented 2 years ago

One dumb question ... DIO we need the Ping at all when we send a real message? ;-)

I have no idea :-O

Apollon77 commented 2 years ago

... just question because the "Ping" is mainly there to make xure the connection stays open when I remember correctly ... wehen we now send other data it should have the same purpose ... but ok we also do not need to experiment that out ... ;-)

markuslaube commented 2 years ago

Hello @codetheweb ,

please can you say if the change on [docs/index.html]this what's you mean with "Just need to add a note to the JSDoc too." or is this a misunderstanding from me?

Thanks, Markus

codetheweb commented 2 years ago

Released in v7.3.0.