Access dynamic THINGER_OTA_VERSION at runtime

Hello, we are using thinger-io/thinger.io@2.31.0 in an Arduino framework project on an ESP32-s3-devkit-c1

Following the documentation, we define the THINGER_OTA_VERSION variable dynamically in platform.ini build flag, as noted in docs as the recommended approach: https://docs.thinger.io/ota#dynamic-build-flag

A few questions:

  1. How can we access this value in our application code? THINGER_OTA_VERSION is undefined and using it will cause compilation to fail.
  2. Is this value represented any where on the Thinger dashboard? I cannot find it, but it would really be useful to see at a glance which OTA Version is running on any given Device.
  3. The reason we want to use this value in application code is to pass this value in pson to a bucket so that we can correlate logs/events with a specific firmware version. If there was a different mechanism to know which device a bucket write came from, and thus its firmware version, we wouldn’t need to use it in application code.

Very excited about the updates to the library and we are using OTA extensively right now and have just upgraded to a private cloud, please keep up the good work. These features would really make it excellent and help us enormously with harvesting diagnostic information from units in the field.

1 Like

Hi,
About point 2, I defined it as a property under the product:
2024-09-10_07h34_07