Skip to content
This repository was archived by the owner on Jul 22, 2022. It is now read-only.

Update AzureIoT Library with support for more boards #1

Merged
merged 19 commits into from
Apr 5, 2016

Conversation

stefangordon
Copy link
Contributor

Significant changes to support Adafruit Feather M0 Wifi and all ESP8266 boards. MKR1000 support will be verified as it is released.

This has the latest Azure SDK bits and a modified sync script. We are evaluating publishing SDK updates to this repo as part of our core SDK repo publishing process soon.

I'm a Microsoft engineer working with the Azure IoT Hub team to build out this library to support as many devices as possible. We are continuing to build out documentation and test on additional boards, but this has been tested on available SAMD and ESP8266 boards. I am happy to be collaborator on the core repository here and own testing and maintenance if appropriate as we have resources allocated to continue to improve this library.

This requires Arduino IDE 1.6.8.

Thanks!

@@ -1,14 +1,75 @@
# AzureIoT - Azure IoT library for Arduino
# AzureIoT - Azure IoT Hub library for Arduino

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you think the library should be renamed to "AzureIoTHub" as well?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We've agreed to rename this repo to AzureIoTHub.

@sandeepmistry
Copy link
Contributor

@stefangordon @obsoleted great work on adding new board support!

I'm done with my comments for now, overall summary:

  • It would be great to reduce duplicate files for easier maintenance (HTTPSClient, NTPClient, the example sketches).
  • If possible, make SDK changes upstream, for things like `iot_logging.h``, in case that file is updated upstream and needs to be synced.

@stefangordon
Copy link
Contributor Author

Thanks Sandeep! We'll incorporate most of these changes in the next day or so. The logging issue is challenging due to some unique issues with ESP8266, but we are working through getting it resolved through a redesign of logging in the SDK. I'll also file issues for work items and improvements we are still tracking.

obsoleted and others added 7 commits March 11, 2016 10:50
 - Avoid code duplciation by combining the arch specific httpsclient
 implementations and using #ifdef-ing for unique bits (as they are only
         in includes and class definition now
 - Similarly for samd use a common NTPClient header for both adafruit
 and arduino boards
Updates based on feedback
Move NTP stuff to sketch for SAMD and other fixes
Temporary sync solution until vnext is implemented.
@stefangordon
Copy link
Contributor Author

Alright I think we are in decent shape here now. There will be continuous work/improvements over the next few weeks but this is stable enough to unblock people.

We have tested on ESP8266 boards (Huzzah and Sparkfun Thing) as well as Adafruit Feather M0 (SAMD). We were not able to do MKR1000 or Zero yet.

obsoleted and others added 2 commits March 17, 2016 22:35
- Remove dead code
- Update Readme for removed sample
- Use consistent logging statements in esp sample
- update pgmspace helper to ignore for samd building (only build for
        esp)
@obsoleted
Copy link
Contributor

Thanks for the comments so far @sandeepmistry. I believe we have addressed them in the new commits. Do you have any other issues or concerns with accepting this?

4. Update IoT Hub Connection string in simplesample_http.c

## MKR1000 or Zero + Wifi101
1. Open the AzureIoTHub SAMD sample from the Arduino IDE File->Examples menu.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: the library is still name AzureIoT, however if you think AzureIoTHub is a better name we can rename the repo and library.properties.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That is a good idea. Library.properties has been updated, updating the repo name also seems reasonable.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool, I'll do so after this is merged. We'll have to do some clean up to remove older releases with the old name.

@sandeepmistry
Copy link
Contributor

@obsoleted I've added a few more review comments, but overall new changes look good.

@obsoleted
Copy link
Contributor

@sandeepmistry Thanks for the comments. I've made some replies. And added the commit saving.

Again, we do hope to make continuous improvements to the library. Part of that will be getting this out there to start getting feedback on it.

DavidBradburyAttunix and others added 2 commits March 30, 2016 14:35
ESP8266 (Huzzah and Thing Dev) and SAMD (Feather M0) remote monitorin…
#elif defined(ARDUINO_SAMD_ZERO) || defined(ARDUINO_SAMD_MKR1000)
WiFiUDP _udp;
#endif

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see _udp used in this function, can we remove this?

sandeepmistry added a commit to sandeepmistry/AzureIoT that referenced this pull request Apr 5, 2016
Update AzureIoT Library with support for more boards
@sandeepmistry sandeepmistry merged commit e0136d6 into Azure:master Apr 5, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants