lua-mosquitto icon indicating copy to clipboard operation
lua-mosquitto copied to clipboard

add support for mqtt v5

Open niecore opened this issue 3 years ago • 4 comments

Fixes #26

I decided to to create separate functions for all v5 functionality because of the following reason:

  • This lib is a wrapper for libmosquitto and they did the same way
  • Some functions have additional functionality besides the props like reason codes or bind addresses

While this PR is open I will check further how testing could be improved and see if the documentation needs additional updates.

niecore avatar Jan 25 '22 17:01 niecore

It looks like you've got v5 support in the general functions, and also _v5 suffixed functions? Does that really make it easier to use? In general this looks ok though, I've not tried any of it out though.

karlp avatar Jan 31 '22 10:01 karlp

It looks like you've got v5 support in the general functions, and also _v5 suffixed functions? Does that really make it easier to use? In general this looks ok though, I've not tried any of it out though.

Yes you are right, I wanted to share some code but since this already lead to confusions, I changed the functionality now, so that the old functions are not touched.

niecore avatar Feb 04 '22 10:02 niecore

It looks like you've got v5 support in the general functions, and also _v5 suffixed functions? Does that really make it easier to use? In general this looks ok though, I've not tried any of it out though.

Yes you are right, I wanted to share some code but since this already lead to confusions, I changed the functionality now, so that the old functions are not touched.

Oh, I'm not against the combined :) I actually suggested it in my issue discussing how this should be done, it just seemed to be not what you had said you had done :)

karlp avatar Feb 04 '22 11:02 karlp

Hello @karlp , I am wondering If I could provide you anything more in order to help you with the review and merge.

niecore avatar Mar 04 '22 10:03 niecore