Azure / azure-iot-arduino

Azure IoT library for the Arduino
Other
167 stars 96 forks source link

Option to automate ESP8266/ESP32 board setup #118

Closed codycodes closed 4 years ago

codycodes commented 4 years ago

My friend @cheejen93 and I wrote an automation script to help make the process of setting up ESP8266 / ESP32 on Azure IoT Hub easier.

Personally it was not the easiest thing for me to setup this azure-iot-arduino lib manually, as it requires editing a platform.txt and possibly the Arduino.h files several directories deep for each applicable board. It’s useful for me to write a script with my friend to automate this process, since we have about forty or so others in our cohort who we’re hoping will connect their Arduinos to our IoT network on Azure. This script can also be run when board libraries get updated, as I know I was scratching my head as to why code wouldn't upload after updating the Arduino board libraries for ESP8266 or ESP32.

Please feel free to let me know what your thoughts are on this script! We tried to make it as simple and easy to use as possible. It features the following:

Testing this is easy. You can go to Arduino, update to a different version or reinstall the ESP8266 / ESP32 board from the Boards Manager and then run the script to ensure that appropriate changes are made.

I've updated the README for this script appropriately and hope it can be of use to some. Please let me know what improvements can be made and I will be happy to maintain this script as possible.

ghost commented 4 years ago

CLA assistant check
All CLA requirements met.

jbobotek commented 4 years ago

Just fyi, PRs should be submitted to the pal repo, as this is the parent repo from which this client repo is built.

codycodes commented 4 years ago

Thanks for letting me know, @jbobotek! I have created a corresponding PR in the pal repo and will close this PR.