Azure-Samples / ESP-Samples

Samples for ESP boards using Azure IoT
MIT License
47 stars 23 forks source link

Can the setup be done thru PowerShell? #3

Closed Ayanmullick closed 4 years ago

Ayanmullick commented 4 years ago

@ericmitt, @drajput, @tawalke, thanks for the demo video. I wanted to know if this setup could be achieved with the respective PowerShell modules for Azure and IoT.

tawalke commented 4 years ago

Hi @Ayanmullick, the setup for Azure can be done via Powershell, but the ESP-IDF v.3.0 framework from Espressif based upon the documentation can be installed on Windows via MinGW or CMD using their scripts. However, if you want to use the latest version of the ESP-IDF v4.x (lates), they do have a Powershell script for installation: https://docs.espressif.com/projects/esp-idf/en/latest/get-started/windows-setup-update.html

I should note the components we have provided here have been tested using the stable (v3.0 production) but should work with v4.x as well.

Ayanmullick commented 4 years ago

Thanks @tawalke, for pointing out the export.ps1 script. Is there an Azure Sample that documents the PowerShell steps to setup the Azure telemetry?

I wish the sensor interaction was also thru the PowerShell-IoT module; like illustrated in the video below.

IMAGE ALT TEXT HERE
tawalke commented 4 years ago

Oh sorry @Ayanmullick thanks for the clarification. No sorry there is not a Azure Sample for Espressif devices using Powershell-IoT module. That module only supports Raspberry Pi.

Note: ESP is an uC/SoC running an RTOS and not an MPU wLinux (based) OS.

ericmitt commented 4 years ago

@Ayanmullick do you need more on this issue, or can we close it ?

Ayanmullick commented 4 years ago

@ericmitt , In December's Community Call the PowerShell team had discussed about a stripped down version of PowerShell that could potentially run on microcontrollers. The PowerShell team is probably busy with the version 7 release. But I would be interested to confirm if it's possible to have a pure-PowerShell Azure Sample to connect IoT [ESP] to Azure

tawalke commented 4 years ago

Hi @Ayanmullick Currently there is not a version of Powershell that can run on a microcontroller or FreeRTOS (which ESP32/8266 runs). //cc @ericmitt

Ayanmullick commented 4 years ago

@tawalke @ericmitt , Could the issue be reopened once the PowerShell micro-controller version is available? We can close this temporarily.

ericmitt commented 4 years ago

@Ayanmullick make sense, closing for now.