aws / aws-greengrass-core-sdk-c

SDK to use with functions running on Greengrass Core using C
https://aws.github.io/aws-greengrass-core-sdk-c/
Apache License 2.0
27 stars 13 forks source link

need help in running the hello world #6

Closed lakshmisivareddy closed 4 years ago

lakshmisivareddy commented 4 years ago

Hi i am able to compile the sdk and generate the example binary's

when i run the hello world program i am getting below error ERROR: Loaded stub instead of implementation library!

how can i run the binary's and check the connectivity with the aws cloud ?

sjlevin commented 4 years ago

The binary only runs properly on Greengrass. You need to upload it as an executible lambda and run it on a Greengrass device. https://docs.aws.amazon.com/greengrass/latest/developerguide/lambda-functions.html#lambda-executables

ShirleyZheng92 commented 4 years ago

If you try to run the compiled binary it will return this error, since you are compiling against just the sdk interface (not implementation) . You need to upload the binary as lambda & deploy to a Greengrass group

fengwang666 commented 4 years ago

Close the issue.