Search found 46 matches

by mzincali
Mon Dec 04, 2023 6:44 pm
Forum: General Discussion
Topic: Is it possible to use esptool to write a private key onto my device?
Replies: 0
Views: 2856

Is it possible to use esptool to write a private key onto my device?

I am making the move to use mTLS. One of the challenges is putting a key into the secure area of the ESP32. Can esptool do that or is there some other mechanism for doing so?
by mzincali
Mon Oct 30, 2023 8:41 am
Forum: General Discussion
Topic: Updating more than just the firmware file with OTA
Replies: 1
Views: 897

Updating more than just the firmware file with OTA

Hi. I am using HttpsOTA which is a very simple way to do an OTA update. I am wondering if it is possible to update more than just he firmware, and which framework is best to use for doing so. I am specifically interested in updating all these files: firmware.bin partitions.bin and maybe even: boot_a...
by mzincali
Mon Oct 30, 2023 8:29 am
Forum: General Discussion
Topic: NVS erased after OTA
Replies: 4
Views: 2075

Re: NVS erased after OTA

Is it possible that the size of your firmware changed, and it is overwriting your old NVS?
by mzincali
Fri Sep 15, 2023 10:02 am
Forum: General Discussion
Topic: Use esp tool to pass a value to firmware?
Replies: 2
Views: 2237

Re: Use esp tool to pass a value to firmware?

Thank you. I will look into #1. Would I be able to write to the same namespaces and use the same keys when I write with esptool or do I have to map things based on offsets or ?

As for #2, I have never been able to get my custom ESP32 to read the serial port, since I don't have an onboard FTDI?
by mzincali
Wed Sep 13, 2023 7:46 pm
Forum: General Discussion
Topic: Use esp tool to pass a value to firmware?
Replies: 2
Views: 2237

Use esp tool to pass a value to firmware?

Is there a way to inject data for the firmware's use with esp tool? Two scenarios: 1. uploading the firmware, and at the same time I want to upload some data that the firmware can use on next reboot 2. firmware is already running, and I want to use esptool to inject some data for the firmware to use...
by mzincali
Sun Jul 09, 2023 9:20 am
Forum: General Discussion
Topic: Store and read static pages in flash
Replies: 9
Views: 13959

Re: Store and read static pages in flash

Sorry to reopen an old thread. I have an HTML block that is about 7,000bytes. I have it declared as a `const char[]` in my response function to can HTTP GET. When I start to add more functionality to this block (in the form of more JS or more HTML, i get a stack overflow. If I move the html block in...
by mzincali
Thu May 18, 2023 9:51 pm
Forum: General Discussion
Topic: Mixing WiFi.begin() and esp_wifi_scan_start - help needed
Replies: 5
Views: 1895

Re: Mixing WiFi.begin() and esp_wifi_scan_start - help needed

Is there a WiFi.stop()? -- I don't seem to see it.
by mzincali
Thu May 18, 2023 8:33 pm
Forum: General Discussion
Topic: Mixing WiFi.begin() and esp_wifi_scan_start - help needed
Replies: 5
Views: 1895

Re: Mixing WiFi.begin() and esp_wifi_scan_start - help needed

Is it worth migrating the WiFi connection handling out of Arduino too? That is what I am thinking. Just wanted to make sure I'm not missing anything obvious. It looks like the Arduino WiFi event handlers are still registered in the latter case, so the scan results are fetched (and cleared) in the S...
by mzincali
Thu May 18, 2023 7:20 pm
Forum: General Discussion
Topic: Mixing WiFi.begin() and esp_wifi_scan_start - help needed
Replies: 5
Views: 1895

Mixing WiFi.begin() and esp_wifi_scan_start - help needed

Hi. I am trying to add more robustness in my WiFi connection code. I wanted to try WiFi.begin(), to see if the previously used SSID would connect. When that fails, I want to scan the network for SSIDs, then look to see which of those I have in a table of credentials, and then try to connect with WiF...
by mzincali
Fri May 05, 2023 11:04 am
Forum: General Discussion
Topic: Switching from SSL/TLS to mTLS
Replies: 4
Views: 2444

Re: Switching from SSL/TLS to mTLS

I can build the certificate into the devices with the risk that an attacker with a device can extract the private key. Given the low value of the exploit, I doubt anyone will really waste time trying to take over some sensor devices. On the other end I have a server that accepts input from the devic...