Azure/azure-sdk-for-c

Azure Central: TELEMETRY_FREQUENCY_IN_SECONDS not working

ghostidentity opened this issue · 3 comments

Hello guys,

Im not sure if this is expected behavior but I specified 1 hour interval to send telemetry data to iot central, as I dont want to incur more cost to use the service while im testing the behavior.

On the screenshot below, I specified the interval to be 3600 (1 hour) but on the console log output, its publishing telemetry every 10 seconds.

Maybe the max frequency is 10 seconds interval ? If not, its a bug.

image

On IoT Central Device Page, I confirm that it received telemetry value every 10 seconds.
image

Hi @ghostidentity, thank you for bringing this to our attention. It looks like there is a missing call to azure_pnp_set_telemetry_frequency in the main .ino file.

For the ESP32 IoT Central sample which you are running, you can add the following in the setup function after azure_pnp_init():
azure_pnp_set_telemetry_frequency(TELEMETRY_FREQUENCY_IN_SECONDS);. That should change the frequency at which telemetry is sent, let me know if this is not the case.

Hello @ghostidentity, thanks again for reporting this issue. I pushed out a fix and will close the issue!