Coder Social home page Coder Social logo

Comments (10)

stefangordon avatar stefangordon commented on July 20, 2024

Hey Richard, are you using the m0 sample (this repo) with the Huzzah, or the Huzzah sample/instructions?
https://github.com/Azure-Samples/iot-hub-c-huzzah-getstartedkit

from iot-hub-c-m0wifi-getstartedkit.

richardcornell avatar richardcornell commented on July 20, 2024

I'm using the https://github.com/Azure-Samples/iot-hub-c-huzzah-getstartedkit sample and instructions.

from iot-hub-c-m0wifi-getstartedkit.

stefangordon avatar stefangordon commented on July 20, 2024

Great. Also verify you have the Huzzah selected from the board selection UI in your Arduino IDE - that is the most likely reason it would try to use the incorrect headers as they are selected in httpsclient.h based on the type of board you are compiling for.

from iot-hub-c-m0wifi-getstartedkit.

stefangordon avatar stefangordon commented on July 20, 2024

Oh - Sorry Richard, I suspect these instructions were incorrect and led you to install the Azure IoT Library from the Arduino UI - this version looks to be not refreshed with the latest for the Huzzah yet. You should remove the existing AzureIoT library with the library manager, and download the library from https://github.com/stefangordon/AzureIoT by cloning the repo, or just downloading it as zip from https://github.com/stefangordon/AzureIoT/archive/master.zip and placing the AzureIot folder in C:\Program Files (x86)\Arduino\libraries and restarting the IDE.

I have just updated the readme at https://github.com/stefangordon/AzureIoT.

ETA for the library to be available from the Arduino UI is end of day Monday.

from iot-hub-c-m0wifi-getstartedkit.

richardcornell avatar richardcornell commented on July 20, 2024

The library manager doesn't appear to allow the uninstall of the AzureIoT library that's already there so I have copied the new AzureIoT folder into Program Files (x86)\Arduino\libraries and there are a load of compile errors starting with;
C:\Program Files (x86)\Arduino\libraries\AzureIoT\src\esp8266\libc_esp.c: In function 'fprintf':
C:\Program Files (x86)\Arduino\libraries\AzureIoT\src\esp8266\libc_esp.c:19:5: error: incompatible type for argument 2 of 'ets_vprintf'
ret = ets_vprintf(format, arglist);

It ends by saying;
Multiple libraries were found for "AzureIoT.h"
Used: C:\Program Files (x86)\Arduino\libraries\AzureIoT
Not used: C:\Users\Documents\Arduino\libraries\AzureIoT

Unless you have any other suggestions I'll remove Arduino IDE and start again when I have time.

from iot-hub-c-m0wifi-getstartedkit.

stefangordon avatar stefangordon commented on July 20, 2024

Ack - I've gotten to the bottom of it now. You caught us between versions trying to catch up with some breaking changes in the ESP8266 board libraries. I apologize for all the trouble - I have reproduced the error you got and confirmed the fix.

If you'll switch over to the official library now it is compatible with the ESP8266 2.2.0 board you have installed.

This means downloading from the official rather than my fork
https://github.com/arduino-libraries/AzureIoT/archive/master.zip

and replacing the bits you put in your Arduino\libraries with it.

We'll have all this straightened out within a day or so - thanks for raising the issue so we can get it cleaned up.

from iot-hub-c-m0wifi-getstartedkit.

stefangordon avatar stefangordon commented on July 20, 2024

Next issue you might run into is the DHT22 remote monitoring sample in those instructions being outdated - I'm verifying that now.

from iot-hub-c-m0wifi-getstartedkit.

stefangordon avatar stefangordon commented on July 20, 2024

Instructions and remote monitoring sample are updated in the quick start at https://github.com/Azure-Samples/iot-hub-c-huzzah-getstartedkit to reflect using the latest library and some tweaks to the .ino to be compatible.

from iot-hub-c-m0wifi-getstartedkit.

richardcornell avatar richardcornell commented on July 20, 2024

I've updated the files and its all working fine now and I can see data from the sensors being displayed in the Azure IoT Suite dashboard! Huzzah! Thank you Stefan.

from iot-hub-c-m0wifi-getstartedkit.

stefangordon avatar stefangordon commented on July 20, 2024

Perfect, thanks Richard.

from iot-hub-c-m0wifi-getstartedkit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.