• Preparing search index...
  • The search index is not available
@espressif/rainmaker-neo-base-sdk
  • @espressif/rainmaker-neo-base-sdk
  • services/NodeMQTTOrchestratorHelpers
  • cleanupSubscriptionIfIdle

Function cleanupSubscriptionIfIdle

  • cleanupSubscriptionIfIdle(
        subscription: ShadowSubscriptionState,
        transport: null | MQTTTransport,
    ): boolean

    Unsubscribes from shadow topic when no listeners remain. Cleans up subscription state to avoid orphaned MQTT subscriptions.

    Parameters

    • subscription: ShadowSubscriptionState

      The shadow subscription state

    • transport: null | MQTTTransport

      MQTT transport for unsubscribe

    Returns boolean

    true if unsubscribed, false otherwise

    • Defined in src/services/NodeMQTTOrchestratorHelpers.ts:63

Settings

Member Visibility
@espressif/rainmaker-neo-base-sdk
  • Loading...

Generated using TypeDoc