Skip to content

ESP32: make the worker URL a build option instead of a source edit - #61

Merged
i12bp8 merged 2 commits into
i12bp8:mainfrom
Hoggormino:esp-worker-url
Sep 17, 2026
Merged

i12bp8 merged 2 commits into
i12bp8:mainfrom
Hoggormino:esp-worker-url

Conversation

@Hoggormino

Copy link
Copy Markdown
Contributor

Summary

cloud_client.h hard-coded the worker URL, and wrangler.toml told users to point the firmware at their own deployment through a "WiFi Setup -> Server URL" field that has never existed. cloud_client_set_url() is present but has no callers, and the UART protocol has no frame for it, so self-hosting cloud-plugins/ meant editing a header.

This adds CONFIG_TT_CLOUD_URL (Kconfig.projbuild, menu "TagTinker"), defaulting to the URL used today, and takes TT_CLOUD_DEFAULT_URL from it. Setting it in sdkconfig.defaults or through idf.py menuconfig is now enough. A rebuild and reflash are still required, and no hidden run-time configuration channel is added.

Also corrected in wrangler.toml and the README WiFi Plugins bullet.

Based on #59, which corrects the same wrangler.toml comment. Merge that one first.

Verification

Built with ESP-IDF v5.2.8, target esp32s2, from a clean sdkconfig each time:

  • Default build: the only https:// string in the binary is the current worker URL, and sdkconfig shows CONFIG_TT_CLOUD_URL="https://tagtinker.jhackerr.workers.dev".
  • With CONFIG_TT_CLOUD_URL="https://my-own-worker.example.workers.dev" added to sdkconfig.defaults: that is the only https:// string in the binary.

Not yet flashed to hardware.

🤖 Generated with Claude Code

Hoggormino and others added 2 commits September 16, 2026 17:10
- README: the IR engine allocates heap for payloads, so drop
  "zero-allocation"; the drop folder takes the 1-bit and two-plane BMPs
  the image preparer exports, not any BMP, and type 1626 targets cap
  files at 24 KB; NFC scan only fills the barcode when the tag's NFC
  data decodes; there is no test-pattern feature; the FAQ now says this
  app needs a Flipper even though the protocol does not.
- CONTRIBUTING: the Android companion app was removed in d608afb.
- wrangler.toml pointed users at a "WiFi Setup -> Server URL" field that
  never existed. Say how the URL is actually set today.
- cloud_client.h described a runtime override through
  cloud_client_set_url(), which nothing calls.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
cloud_client.h hard-coded the worker URL, and wrangler.toml pointed users
at a "WiFi Setup -> Server URL" field that has never existed, so anyone
self-hosting cloud-plugins/ had to edit a header. cloud_client_set_url()
exists but has no callers, and the UART protocol has no frame for it.

Add CONFIG_TT_CLOUD_URL (Kconfig.projbuild, menu "TagTinker") defaulting
to the current URL, and take TT_CLOUD_DEFAULT_URL from it. Setting it in
sdkconfig.defaults or through menuconfig is now enough; rebuild and
reflash still apply, and there is no hidden run-time channel.

Also says so in wrangler.toml and the README WiFi Plugins bullet.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants