• Extracts the nodeId from an AWS IoT shadow topic. Topic format: $aws/things/NODE_ID/shadow/name/SHADOW_NAME/...

    Parameters

    • topic: string

      The MQTT topic string

    Returns null | string

    The nodeId, or null if topic format is invalid