OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

mqtt message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: [OASIS Issue Tracker] (MQTT-596) CONNECT keep alive max is 18h 12m and 15s!


    [ https://issues.oasis-open.org/browse/MQTT-596?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=82423#comment-82423 ] 

Davide Lenzarini commented on MQTT-596:
---------------------------------------

Hi Simon,

The scenario that I have in mind is the following:
 * A device sends CONNECT with very long Session Expiry Interval, REGISTER a topic name 1, SUBSCRIBE to a topic2 and finally send DISCONNECT with very long Session Expiry Interval
 * Every 24 hours the device sends a PUBLISH-1 on the registered topic alias, so the Gateway moves it from ASLEEP to ACTIVE state and sends it the PUBLISH messages queued on topic2. Finally the Gateway moves it back from ACTIVE to ASLEEP by sending a PINGRESP

If the keepalive is set toÂ18hr 12m and 15s, I suppose that the GW after 18hr 12m and 15s will move the device from ASLEEP to LOST, removing its topic mappings and its subscription.

Do I miss something?

Thanks

Davide

> CONNECT keep alive max is 18h 12m and 15s!
> ------------------------------------------
>
>                 Key: MQTT-596
>                 URL: https://issues.oasis-open.org/browse/MQTT-596
>             Project: OASIS Message Queuing Telemetry Transport (MQTT) TC
>          Issue Type: Improvement
>          Components: MQTT-SN
>            Reporter: Davide Lenzarini
>            Priority: Major
>
> Having a keep alive max of only 18h 12m and 15s can be a real limit for constrained IoT device that for instance needs to send a single message per day. A possible solution is to create a new CONNECT flags byte (anyway required to support security). So the current flag on bit 7 instead of reserved should be:
>  * 0=no additional flags
>  * 1= another byte of flags with the following structure
>  ** Reserved (7)
>  ** Reserved (6)
>  ** Reserved (5)
>  ** Reserved (4)
>  ** Reserved (3)
>  ** Reserved (2)
>  ** Reserved (1)
>  ** KeepAliveUOM
>  *** 0 = seconds
>  *** 1 = minutes



--
This message was sent by Atlassian Jira
(v8.3.3#803004)


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]