Azure / azure-iot-arduino

Azure IoT library for the Arduino
Other
168 stars 95 forks source link

Remove NTPClient used in SAMD examples #6

Closed sandeepmistry closed 8 years ago

obsoleted commented 8 years ago

I am still a bit torn on this. I understand wanting to make the samples/sketches as concise as possible. However, this type of functionality does seem out of scope for the the library itself. I wonder if there is another NTP library that exists (or maybe one can be made) that we could use in the samples that would limit the code there but just add another dependency.

While NTP and Wifi are requirements for using the library successfully it feels odd to move the configuration of them into the library. Should these libraries want to expose new initial configuration options then this library would also need to be updated instead of just benefiting from new functionality.

sandeepmistry commented 8 years ago

@obsoleted good points, I'll submit a patch to this repo to also support non-ESP8266 boards: https://github.com/FWeinb/NTPClient

Then we can use it in the examples like you suggested.

I'll rename this issue accordingly.

sandeepmistry commented 8 years ago

I've submitted the following PR to the NTPClient repo: https://github.com/FWeinb/NTPClient/pull/8

sandeepmistry commented 8 years ago

Closed via #16.