Embed esptool in Python app

innomkr
Posts: 7
Joined: Wed Sep 22, 2021 4:29 am

Embed esptool in Python app

Postby innomkr » Wed Nov 16, 2022 7:42 pm

Hello,

I am working on a mass production tool for flashing firmware and certificates on esp32 based devices. I am finding it a bit difficult to integrate esptool in my Python app and I am looking for suggestions...

Currently I am invoking esptool.py as a subprocess but I think there might be a better way. I also saw in esptool's docs that its suggested to import esptool and call it like esptool.main(command) but this way I am unable to read the stdout of the esptool to get the result of the result of the command.

Can please somebody with experience in embedding esptool in a Python app share his approach?

Who is online

Users browsing this forum: No registered users and 187 guests