Azure-Samples / iot-hub-c-raspberrypi-client-app

Application collects weather data from a BME280 sensor and sends it to IoT hub, also take actions according to cloud-to-device message, device management.
https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-raspberry-pi-kit-c-get-started
MIT License
36 stars 34 forks source link

LogError and LogInfo in main.c #17

Closed MaHaXWS closed 6 years ago

MaHaXWS commented 6 years ago

Hi For some reason I can not run the app. The errors are: undefined reference to LogError' and undefined reference toLogInfo'. Where do I find these functions. Or Is there the posibility to replace them with printf.

I tried everything with Raspberry 2B und jessy

Best MaHa

jchidley commented 6 years ago

I have exactly the same problem - running on a Pi3 with latest upgrade to raspbian. I have been able to run this using the Python version (but not the node.js one, for different reasons).

mkeyanmech commented 6 years ago

I have same issue as well, any updates will help

SLdragon commented 6 years ago

@MaHaXWS @jchidley @mkeyanmech Thanks for reporting this issue, this issue is because the latest iot SDK remove the LogError function. You can comment this function in the code to fix this issue.

SLdragon commented 6 years ago

fixed