Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[sparkplug-wg] 回复: NDEATH usage for a none-persistent connected device
  • From: wang ge <wangge1989@xxxxxxxxxxx>
  • Date: Mon, 1 Jul 2024 09:09:07 +0000
  • Accept-language: zh-CN, en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=oymqVPFIZDT0LUn4er1PjajkxGBJdLByZPBx0fmpRLA=; b=jwij4ipJVzIWnISVi9QFebexiIdjMTOhYzrgkXbb/iodakc+dTQNMjM0/fkNO9C1OPPREjEXCbSm9VbnMuyao1zALxw1fF1GjB0QgtTs7f+Xx8Fz55fEqZxeKQpRjknopLBHHpIp5VhRLFNj3WdjDePYOZFjnKp3mg3j/lJ/wpQkmuNQYDCV7lC6S2q16VkfWtobtMHJqa19hqTa1xMirUXicjZCDTeSoMTFoejaw3WRpys12MA0fL4Wny0vKTKcsezMTrYlT37M5oaa0RLRUFWX43ikeGphXDgN+adDv+q1MHftbyZ0l02nHIcmzcVulmtISxXRM0mSd/TrHOKY7Q==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Tg+boWEUhwO8nEa4zWQk8p5X+OGTYHZFa1mzefbaivtZOeXpclosA7uyPTFDDaITvLSeo60AoSOMjPQEP5oslMB+y2L7jW04XcK5fkV37aCZk7Mo0N77XkjrkoS0Gf7dIxs9A1e2y/U1q1uosUdHIXMZPTNFClTdQY1sWia9Lj0k2QwVG/5V7+lDd5gu6pasGUsoGvG34cAAIKDK715ejStOfasHc+64zWNx21hmGYSE6QXTxIbqOcOkWC3gWeaD0DQ+aLxSQK1RnSRMuNEKmezKo0cq90Fp0hqrk7CykIcyPA4bC84SUDmMeHGanctgNRXN0PIAK8flgx85RTJz7A==
  • Delivered-to: sparkplug-wg@xxxxxxxxxxx
  • List-archive: <https://www.eclipse.org/mailman/private/sparkplug-wg/>
  • List-help: <mailto:sparkplug-wg-request@eclipse.org?subject=help>
  • List-subscribe: <https://www.eclipse.org/mailman/listinfo/sparkplug-wg>, <mailto:sparkplug-wg-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://www.eclipse.org/mailman/options/sparkplug-wg>, <mailto:sparkplug-wg-request@eclipse.org?subject=unsubscribe>
  • Msip_labels:
  • Thread-index: AQHayE+RcVsQUVzHR0q9V1Xhp40gELHbmEUAgAYDwtg=
  • Thread-topic: [sparkplug-wg] NDEATH usage for a none-persistent connected device

Hello Bryce,

Thanks for your reply, regarding this NDEATH topic, I have one more question:
according to <Part 2.5 Persistent vs Non-Persistent Connections for Edge Nodes of SPB 3.0.0 spec>, it mentioned:
"But in some use cases, such as sending GPS coordinates for asset tracking or other IOT applications
with periodic data from sensors, MQTT enabled devices do not need to remain connected to the MQTT
infrastructure. In these use cases, all the Device needs to do is to issue an MQTT DISCONNECT control
packet prior to going offline to leave the MQTT infrastructure “gracefully”."

Seems for a Non-Persistent connected Node, NDEATH message is not sent before the node disconnect from the MQTT network.
Since both options come from the spec., I am not quite sure which approach we should follow.

Thanks again for your kindly reply!

Best Regards,
Jimmy-Ge.Wang

发件人: sparkplug-wg <sparkplug-wg-bounces@xxxxxxxxxxx> 代表 Bryce Nakatani via sparkplug-wg <sparkplug-wg@xxxxxxxxxxx>
发送时间: 2024年6月27日 21:18
收件人: The Sparkplug Working group <sparkplug-wg@xxxxxxxxxxx>
抄送: Bryce Nakatani <bnakatani@xxxxxxxxxx>
主题: Re: [sparkplug-wg] NDEATH usage for a none-persistent connected device
 
Reception of a node death (NDEATH) notifies the Sparkplug hosts to terminate the state of the edge node.

The NDEATH publication is required when your application has control of disconnecting the MQTT connection. This would apply in your case where your application no longer needs to maintain the connection to the broker.

In the case of an abrupt or an unexpected connection loss, the MQTT client can't publish anything to the broker. This is where the last will and testament NDEATH deposited in the MQTT Connect is published by the MQTT broker on behalf of the failed Edge Node's MQTT connection.


On Wed, Jun 26, 2024 at 10:20 PM wang ge via sparkplug-wg <sparkplug-wg@xxxxxxxxxxx> wrote:
Hi team,

I also have another question may need your help to clarify.
Per SparkPlug spec, the Edge Node need to register a NDEATH message as MQTT last will, when the device disconnected unintentionally,
the broker will send out the NDEATH message registered.

We had also looked into the spec, it also mentioned that the Edge Node need to send out a NDEATH message initiatively when trying to disconnect from the SparkPlug system.

So our question is, as an none-persistent connected device, should we send the NDEATH message or not to comply with the spec?
Thanks so much for your kindly help!

Best Regards,
Jimmy
_______________________________________________
sparkplug-wg mailing list
sparkplug-wg@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sparkplug-wg

Back to the top