kylergib / WaveLinkPluginTouchPortal

GNU General Public License v3.0
4 stars 1 forks source link

Moved connectToWaveLink() to onSettings and onInfo callbacks #6

Closed kylergib closed 1 year ago

kylergib commented 1 year ago

As suggested https://github.com/kylergib/WaveLinkPluginTouchPortal/issues/1

I moved the connectToWaveLink() to onSettings and onInfo callbacks

When onSettings changes for the plugin it now closes the current connection and attempts to connect at new IP address.

Plugin will wait to connect to Touch Portal to attempt to connect to Wave Link

As suggested in https://github.com/kylergib/WaveLinkPluginTouchPortal/issues/3

I created a callback to tell the plugin when all configs have been received.

As suggested in https://github.com/kylergib/WaveLinkPluginTouchPortal/issues/4

I created constants for the switch state strings