locked
Raspberry IoT hub example code settup errors RRS feed

  • Question

  • Hi

    I was following next instructions:

    https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-raspberry-pi-kit-c-get-started

    (image link gives Debian based image, text says Jessie ?)

    Image is rasbian sretch with desktop release date 2018-11-13

    When runnings setting next error occures ?

    Any idea what I need to fix ?

    Br Kari

    ”json_parse_string”
    iothub_client_ll_uploadtoblob.c:(.text+0x3c0): määrittelemätön viite kohteeseen                                       ”json_value_get_object”
    iothub_client_ll_uploadtoblob.c:(.text+0x438): määrittelemätön viite kohteeseen                                       ”json_object_get_string”
    iothub_client_ll_uploadtoblob.c:(.text+0x4b0): määrittelemätön viite kohteeseen                                       ”json_object_get_string”
    iothub_client_ll_uploadtoblob.c:(.text+0x528): määrittelemätön viite kohteeseen                                       ”json_object_get_string”
    iothub_client_ll_uploadtoblob.c:(.text+0x5a0): määrittelemätön viite kohteeseen                                       ”json_object_get_string”
    iothub_client_ll_uploadtoblob.c:(.text+0x618): määrittelemätön viite kohteeseen                                       ”json_object_get_string”
    iothub_client_ll_uploadtoblob.c:(.text+0x804): määrittelemätön viite kohteeseen                                       ”json_value_free”
    collect2: error: ld returned 1 exit status
    CMakeFiles/app.dir/build.make:172: recipe for target 'app' failed
    make[2]: *** [app] Error 1
    CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/app.dir/all' failed
    make[1]: *** [CMakeFiles/app.dir/all] Error 2
    Makefile:83: recipe for target 'all' failed
    make: *** [all] Error 2

    Monday, December 31, 2018 9:54 AM

Answers

  • Hi Antonio

    Thanks

    I tried node.js example and that is now sending data to iot hub, in that example there is link to Jesse image.

    I'll check if that works also witc c++ example, propably yes. (in c++ example might be good to update right link)

    I'm now following next example.

    https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-live-data-visualization-in-web-apps

    Problem is that endpoint option is not available in my device, any idea how get available ?

    Br Kari

    • Marked as answer by Naakar Sunday, January 6, 2019 10:22 AM
    Tuesday, January 1, 2019 9:44 AM
  • Hi Naakar,

    That tutorial needs to be updated. You should use "Message routing" option in the left panel.

    Thanks!

    • Marked as answer by Naakar Sunday, January 6, 2019 10:22 AM
    Wednesday, January 2, 2019 10:41 AM
  • Hi Nakar

    Mentioned below Article will surely help you out with what you have been looking for 

    https://ncd.io/getting-started-with-microsoft-azure-and-wireless-temperature-humidity-sensor/

    hope this will clear your query.

    • Marked as answer by Naakar Sunday, January 6, 2019 10:21 AM
    Wednesday, January 2, 2019 12:53 PM
  • Hi Antonio

    If I try add event hub end point I'll get next error ??

    There are no Azure Event Hub resources in subscription 'Free Trial'

    How I should add end point ?

    Br Kari

    • Marked as answer by Naakar Sunday, January 6, 2019 10:21 AM
    Saturday, January 5, 2019 7:51 AM
  • Hi Antonio

    I deleted all resouces, and then created new IoT hub, but now its stucks to next notification ??

    IoT Hub knhub2 may not function properly because it is not in an ACTIVE state.

    Is there somewhere examples that are up to date, to get data from raspberry to web UI ?

    Br Kari

    • Marked as answer by Naakar Sunday, January 6, 2019 10:21 AM
    Saturday, January 5, 2019 8:52 AM
  • Hi Debro83

    Thanks I got that example working.

    Br Kari

    • Marked as answer by Naakar Sunday, January 6, 2019 10:21 AM
    Sunday, January 6, 2019 10:21 AM

All replies

  • Hi Naakar,

    Can you use Jessie instead? Here is the place to download Raspbian Jessie: http://downloads.raspberrypi.org/raspbian/images/raspbian-2017-07-05/ 

    Thanks!

    Monday, December 31, 2018 11:55 AM
  • Hi Antonio

    Thanks

    I tried node.js example and that is now sending data to iot hub, in that example there is link to Jesse image.

    I'll check if that works also witc c++ example, propably yes. (in c++ example might be good to update right link)

    I'm now following next example.

    https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-live-data-visualization-in-web-apps

    Problem is that endpoint option is not available in my device, any idea how get available ?

    Br Kari

    • Marked as answer by Naakar Sunday, January 6, 2019 10:22 AM
    Tuesday, January 1, 2019 9:44 AM
  • Hi Naakar,

    That tutorial needs to be updated. You should use "Message routing" option in the left panel.

    Thanks!

    • Marked as answer by Naakar Sunday, January 6, 2019 10:22 AM
    Wednesday, January 2, 2019 10:41 AM
  • Hi Nakar

    Mentioned below Article will surely help you out with what you have been looking for 

    https://ncd.io/getting-started-with-microsoft-azure-and-wireless-temperature-humidity-sensor/

    hope this will clear your query.

    • Marked as answer by Naakar Sunday, January 6, 2019 10:21 AM
    Wednesday, January 2, 2019 12:53 PM
  • Hi Antonio

    If I try add event hub end point I'll get next error ??

    There are no Azure Event Hub resources in subscription 'Free Trial'

    How I should add end point ?

    Br Kari

    • Marked as answer by Naakar Sunday, January 6, 2019 10:21 AM
    Saturday, January 5, 2019 7:51 AM
  • Hi Antonio

    I deleted all resouces, and then created new IoT hub, but now its stucks to next notification ??

    IoT Hub knhub2 may not function properly because it is not in an ACTIVE state.

    Is there somewhere examples that are up to date, to get data from raspberry to web UI ?

    Br Kari

    • Marked as answer by Naakar Sunday, January 6, 2019 10:21 AM
    Saturday, January 5, 2019 8:52 AM
  • Hi

    node.js example is now working thanks for Debro82, after deletting everything and starting from beging I got data from raspberry to Power BI.

    Now back to original problem raspberry c example.

    Raspberry image is now 2017-07-05 Rasbian-jessie, Rasberry is Pi 3 model B

    Following again next example:

    https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-raspberry-pi-kit-c-get-started

    E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

    > I run sudo apt-get update, and then

    > sudo apt-get install git-core    seems to be OK

    I got error that cmake is missing

    ./setup.sh: line 85: cmake: command not found

    > cmake then installed

    then running again

    sudo chmod u+x setup.sh

    sudo ./setup.sh

    Gives next error ( seems to be some missing file or directory)

    What to try next ?

    Br Kari

    Sunday, January 6, 2019 10:19 AM
  • Hi Debro83

    Thanks I got that example working.

    Br Kari

    • Marked as answer by Naakar Sunday, January 6, 2019 10:21 AM
    Sunday, January 6, 2019 10:21 AM
  • Hi

    C example is still problem, see above question?

    Br Kari

    Tuesday, January 8, 2019 12:24 PM