arduino-esp32
arduino-esp32 copied to clipboard
WiFi Provisioning esp_prov.py usage
Related area
Usage of ESP-IDF tools
Hardware specification
ESP32
Is your feature request related to a problem?
I'm facing an issue using esp_prov tools that's in esp-idf.
The tool requires the IDF_PATH to be set as environment variable. Also it expects a specific folder hierarchy that's similar to ESP-IDF framework.
Describe the solution you'd like
As I imagine, the solution would be to bring up the tool to the current project after tweaking its parameters.
Describe alternatives you've considered
No response
Additional context
Here's an output of the command:
PS C:\Users\USER\Documents\PlatformIO\Projects\ESP32 Test\ESP Provisioning> ls
Directory: C:\Users\USER\Documents\PlatformIO\Projects\ESP32 Test\ESP Provisioning
Mode LastWriteTime Length Name
d----- 9/8/2022 2:17 PM proto
d----- 9/8/2022 2:17 PM prov
d----- 9/8/2022 11:14 AM security
d----- 9/8/2022 11:14 AM transport
d----- 9/8/2022 2:17 PM utils
-a---- 9/8/2022 11:14 AM 20176 esp_prov.py
-a---- 9/8/2022 11:14 AM 6124 README.md
-a---- 9/8/2022 11:14 AM 178 __init__.py
PS C:\Users\USER\Documents\PlatformIO\Projects\ESP32 Test\ESP Provisioning> python esp_prov.py
Traceback (most recent call last):
File "C:\Users\USER\Documents\PlatformIO\Projects\ESP32 Test\ESP Provisioning\esp_prov.py", line 17,
in <module>
import prov
File "C:\Users\USER\Documents\PlatformIO\Projects\ESP32 Test\ESP Provisioning\prov\__init__.py", line 6, in <module>
from .wifi_prov import * # noqa F403
File "C:\Users\USER\Documents\PlatformIO\Projects\ESP32 Test\ESP Provisioning\prov\wifi_prov.py", line 7, in <module>
import proto
File "C:\Users\USER\Documents\PlatformIO\Projects\ESP32 Test\ESP Provisioning\proto\__init__.py", line 24, in <module>
idf_path = os.environ['IDF_PATH']
File "C:\Users\USER\AppData\Local\Programs\Python\Python39\lib\os.py", line 679, in __getitem__
raise KeyError(key) from None
KeyError: 'IDF_PATH'
I have checked existing list of Feature requests and the Contribution Guide
- [X] I confirm I have checked existing list of Feature requests and Contribution Guide.
@HamzaHajeir I am facing the same error. is there any workaround?
Hi Akash, unfortunately I've gone with this path, I was trying to figure out available WiFi provisioning methods backthen.
On Fri, Feb 16, 2024, 10:35 Akash Chaudhary @.***> wrote:
@HamzaHajeir https://github.com/HamzaHajeir I am facing the same error. is there any workaround?
— Reply to this email directly, view it on GitHub https://github.com/espressif/arduino-esp32/issues/7108#issuecomment-1947888459, or unsubscribe https://github.com/notifications/unsubscribe-auth/AH3O7J37AKU3UYMPA2OS7ZLYT4D23AVCNFSM56ESP4S2U5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCOJUG44DQOBUGU4Q . You are receiving this because you were mentioned.Message ID: @.***>