aws-amplify / aws-sdk-ios

AWS SDK for iOS. For more information, see our web site:
https://aws-amplify.github.io/docs
Other
1.67k stars 877 forks source link

Getting named shadow doesn't work #5388

Open duyenlv opened 1 week ago

duyenlv commented 1 week ago

Describe the bug

I find out the topic string you are using in SDK is incorrect. See screenshots

To Reproduce

Observed Behavior

Expected Behavior

Stack Trace

Code Snippet

theAWSIoTDataManager.register(withShadow: "Limits", options: options) { [weak self] (name, operationType, status, clientToken, payload) in
            ...
}

DispatchQueue.main.asyncAfter(deadline: .now() + gettingShadowDelay) { [weak self] in
            theAWSIoTDataManager.getShadow("Limits");
}

Unique Configuration

Areas of the SDK you are using (AWSMobileClient, Cognito, Pinpoint, IoT, etc)? IoT

Screenshots

Screenshot 2024-06-21 at 17 18 43

Screenshot 2024-06-21 at 17 19 29

Environment(please complete the following information):

Device Information (please complete the following information):

Additional context

Relevant Console Output

Logs

harsh62 commented 1 week ago

Thanks for raising the issue. Our team will look into the issue and provide an update.

ruisebas commented 1 week ago

Hi @duyenlv! When the IoT SDK was implemented, only "classic" shadows existed, so named shadows are currently not supported.

We will mark this as a feature request and post further updates here.

duyenlv commented 1 week ago

@ruisebas Thank you, Looking forward these updates to be release soon

lyp commented 5 days ago

@ruisebas do you have an ETA on when this update will be available?

harsh62 commented 5 days ago

@lyp We currently don't have an ETA for it and the feature request has not been prioritized. But the team welcomes contributions towards its products, if this interests you, feel free to contribute and open a PR. The team would be happy to look at it.