Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting named shadow doesn't work #5388

Open
duyenlv opened this issue Jun 21, 2024 · 5 comments
Open

Getting named shadow doesn't work #5388

duyenlv opened this issue Jun 21, 2024 · 5 comments
Labels
feature-request Request a new feature iot Issues related to the IoT SDK open-for-contribution Good for contributors

Comments

@duyenlv
Copy link

duyenlv commented Jun 21, 2024

Describe the bug

  • I created a thing with classic shadow and named shadow (Limits)
  • I use AWSIoTDataManager to get both shadows.
    • App gets the classic shadow successful.
    • Failure to get "Limits" shadow with error: {"code":404,"message":"No shadow exists with name: 'Limits'","clientToken":"8F67BE93-86DC-4258-96D4-299D93B8A880-ios-1"}

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):

  • SDK Version: 2.36.3
  • Dependency Manager: Cocoapods
  • Swift Version : 5
  • Xcode Version: 15.4

Device Information (please complete the following information):

  • Device: iPhones, Simulators
  • iOS Version: iOS
  • Specific to simulators:

Additional context

Relevant Console Output

Logs

@harsh62 harsh62 added question General question iot Issues related to the IoT SDK bug Something isn't working and removed question General question labels Jun 21, 2024
@harsh62
Copy link
Member

harsh62 commented Jun 21, 2024

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

@ruisebas ruisebas added feature-request Request a new feature and removed bug Something isn't working labels Jun 21, 2024
@ruisebas
Copy link
Member

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
Copy link
Author

duyenlv commented Jun 24, 2024

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

@lyp
Copy link

lyp commented Jun 25, 2024

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

@harsh62 harsh62 added the open-for-contribution Good for contributors label Jun 25, 2024
@harsh62
Copy link
Member

harsh62 commented Jun 25, 2024

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request Request a new feature iot Issues related to the IoT SDK open-for-contribution Good for contributors
Projects
None yet
Development

No branches or pull requests

4 participants