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

Added additional input parameter pThingName to aws_iot_shadow_registe… #6

Closed
wants to merge 1 commit into from
Closed

Conversation

nikitanerkar
Copy link

…r_delta api.

With this implentation, flexibility is given to the application developer to
accept thingname from the user during initial setup and then configure it by
passing it to the shadow subscribe API.

Problem: Thingname used in shadow subscribe API is hardcoded compile time using
macro AWS_IOT_MY_THING_NAME which reduces flexibilty.
Also all other shadow APIs have thingname as the input parameter and can be
configured compile time.

Signed-off-by: Nikita Nerkar [email protected]

…r_delta api.

With this implentation, flexibility is given to the application developer to
accept thingname from the user during initial setup and then configure it by
passing it to the shadow subscribe API.

Problem: Thingname used in shadow subscribe API is hardcoded compile time using
macro AWS_IOT_MY_THING_NAME which reduces flexibilty.
Also all other shadow APIs have thingname as the input parameter and can be
configured compile time.

Signed-off-by: Nikita Nerkar <[email protected]>
@bhadrip
Copy link
Contributor

bhadrip commented Nov 18, 2015

Hi @nikitanerkar ,

Thanks for submitting the change.

There are two things,

  1. Thing Name needs to configurable at boot - up
  2. Ability to listen on (register for ) delta topic for multiple thing names

We consciously decided, not to support the second option to keep the size of the SDK small. Most common use case for a device is to listen to its own delta topic. But there are applications(Mobile or Web ) that might have to listen to the delta topic of other Things. The other actions like Update, Get can be done for any thing name. It would be great to learn more about your use case.

I agree that first point needs to be addressed, we will add the feature of configuring the thing name of delta topic at boot-up in the next release.

Thanks
Bhadri

@gthole
Copy link

gthole commented Dec 18, 2015

I would prefer to see the aws_iot_shadow_register_delta respect the pMyThingName supplied on the connection ShadowParameters. That attribute currently seems to be ignored (rendering it a NOP), which is quite confusing. Is this the plan for the next release?

Without that change (currently aws_iot_shadow_register_delta listens to the topic as set by a compiler definition), I'd have to manually compile the binaries for each device individually, rather than compiling and distributing a single binary.

Thanks!

@chaurah
Copy link
Contributor

chaurah commented Jun 13, 2016

Hi @gthole,
As of v2.0.0 of the SDK, the pMyThingName supplied with the Shadow Parameters is used internally to register deltas. Please accept my apologies for the delay in updating here. Could you check if the issue you were having is resolved?

Rahul

@chaurah chaurah closed this Jun 13, 2016
@J-Millett J-Millett mentioned this pull request Jul 30, 2019
aggarw13 added a commit that referenced this pull request Nov 9, 2019
* Hygiene change to remove `AwsIotStatus_t` type from user-facing callback parameters as the type is internal
* Update the system test file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants