aws / aws-iot-device-sdk-embedded-C

SDK for connecting to AWS IoT from a device using embedded C.
MIT License
974 stars 622 forks source link

Please share a basic simple MQTT publish code #1864

Closed georgethomas08 closed 1 year ago

georgethomas08 commented 1 year ago

As per the instruction I have set the demo_config.h with all mentioned parameters and ran cmake ..

these are the few error which i got

please share a simple program using sdk to publish the payload to the IoT core things


CMake Error at demos/pkcs11/pkcs11_demo_management_and_rng/CMakeLists.txt:8 (include): include could not find requested file:

/home/ng/Downloads/aws-iot-device-sdk-embedded-C-main/libraries/standard/corePKCS11/pkcsFilePaths.cmake

CMake Error at demos/pkcs11/pkcs11_demo_mechanisms_and_digests/CMakeLists.txt:8 (include): include could not find requested file:

/home/ng/Downloads/aws-iot-device-sdk-embedded-C-main/libraries/standard/corePKCS11/pkcsFilePaths.cmake

CMake Error at demos/pkcs11/pkcs11_demo_objects/CMakeLists.txt:8 (include): include could not find requested file:

/home/ng/Downloads/aws-iot-device-sdk-embedded-C-main/libraries/standard/corePKCS11/pkcsFilePaths.cmake

CMake Error at demos/pkcs11/pkcs11_demo_sign_and_verify/CMakeLists.txt:8 (include): include could not find requested file:

/home/ng/Downloads/aws-iot-device-sdk-embedded-C-main/libraries/standard/corePKCS11/pkcsFilePaths.cmake

CMake Error at demos/shadow/shadow_demo_main/CMakeLists.txt:4 (include): include could not find requested file:

/home/ng/Downloads/aws-iot-device-sdk-embedded-C-main/libraries/standard/coreMQTT/mqttFilePaths.cmake

CMake Error at demos/shadow/shadow_demo_main/CMakeLists.txt:7 (include): include could not find requested file:

/home/ng/Downloads/aws-iot-device-sdk-embedded-C-main/libraries/standard/backoffAlgorithm/backoffAlgorithmFilePaths.cmake

CMake Error at demos/shadow/shadow_demo_main/CMakeLists.txt:10 (include): include could not find requested file:

/home/ng/Downloads/aws-iot-device-sdk-embedded-C-main/libraries/aws/device-shadow-for-aws-iot-embedded-sdk/shadowFilePaths.cmake

CMake Error at demos/shadow/shadow_demo_main/CMakeLists.txt:13 (include): include could not find requested file:

/home/ng/Downloads/aws-iot-device-sdk-embedded-C-main/libraries/standard/coreJSON/jsonFilePaths.cmake
archigup commented 1 year ago

Are you using a git clone? Did you pull submodules? If not, you can run git submodule update --init --recursive in the repo root.

kar-rahul-aws commented 1 year ago

Hi georgethomas08 , Does the issue still persist after pulling in submodules using git clone?

georgethomas08 commented 1 year ago

Hi georgethomas08 , Does the issue still persist after pulling in submodules using git clone?

Hi @kar-rahul-aws ,

I dropped official SDK, I used mosquitto MQTT client, C code. Its quiet difficult to follow the documentation or README to use offcial SDK, it may be useful for pro C developers not for people who are looking for a quick prototyping

aggarg commented 1 year ago

Hi @georgethomas08,

Thank you for the feedback about our documentation. I am sharing it with the team.

I am closing this issue. Let us know if you need any other help from us.

Thanks.