gobot icon indicating copy to clipboard operation
gobot copied to clipboard

support setting extended client options

Open hotraygroup opened this issue 2 years ago • 4 comments

support setting extended client options via callback

hotraygroup avatar Nov 28 '22 11:11 hotraygroup

Hi @hotraygroup thanks for adjustments. Some comments:

  • please add a small unit test for the new functionality, at least for "Connect()"
  • is there the possibility to show the usage of the new functionality in an example?

For the example: There are 3 at the moment. Either you can add to one of them or write a new one.

gen2thomas avatar Nov 29 '22 16:11 gen2thomas

accidentally closed - now reopen

gen2thomas avatar May 23 '23 16:05 gen2thomas

Hi @hotraygroup , I'm going to set this PR back to draft since there is no progress yet. Feel free to fix the remarks and set it back to active.

gen2thomas avatar Oct 10 '23 17:10 gen2thomas

usage: mqttAdaptor := mqtt.NewAdaptorWithAuth(...) mqttAdaptor.SetOptionsFn(func(opts *paho.ClientOptions) {opts.WillPayload = []byte("goodbye")})

hotraygroup avatar Mar 27 '24 12:03 hotraygroup