[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [paho-dev] Lua client: Changing connect method
|
Hi Ian,
I'll change this comment later.
I do not see any programmatic constraint about this in the project as I
am writing.
Once you merge this in Gerrit, we'll be available from LuaRocks.
Kevin
On 06/10/2014 23:08, Ian Craggs wrote:
All sounds good to me (not knowing much about Lua).
Oh - the client identifier no longer has the 23 character limit in MQTT
3.1.1.
Ian
On 10/06/2014 04:53 PM, Kevin KIN-FOO wrote:
Hi,
I think we should change connect method to stick better whith MQTT 3.1
[1].
As I am writing this method method looks like:
function MQTT.client:connect( --
Public API
identifier, -- string: MQTT client identifier (maximum 23
characters)
will_topic, -- string: Last will and testament topic
will_qos, -- byte: Last will and testament Quality Of Service
will_retain, -- byte: Last will and testament retention status
will_message) -- string: Last will and testament message
I think it should follow specs and include authentication parameters.
Result is:
function MQTT.client:connect( --
Public API
identifier, -- string: MQTT client identifier (maximum 23
characters)
will_topic, -- string: Last will and testament topic
will_message, -- string: Last will and testament message
user_name, -- string: User who is connecting
password, -- string: Password corresponding to the user who
is connecting
will_qos, -- byte: Last will and testament Quality Of Service
will_retain) -- byte: Last will and testament retention status
Even better allowing to provide parameter within a table.
It avoid passing silly "nil" while connecting.
So users could type:
client:connect({
identifier = id,
will_topic = will,
will_retain = 'So long',
})
Looking forward for comments.
Kevin
[1]
http://public.dhe.ibm.com/software/dw/webservices/ws-mqtt/mqtt-v3r1.html#connect
_______________________________________________
paho-dev mailing list
paho-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or
unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/paho-dev