Skip to content

Commit

Permalink
Fix missing dynamic ifdef in example
Browse files Browse the repository at this point in the history
  • Loading branch information
MathewHDYT committed Nov 15, 2024
1 parent 4c417df commit 2ca0e1b
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,11 @@ void loop() {

Telemetry* begin = attributes;
Telemetry* end = attributes + ATTRIBUTES_SIZE;
#if THINGSBOARD_ENABLE_DYNAMIC
tb.sendAttributes(begin, end);
#else
tb.sendAttributes<ATTRIBUTES_SIZE>(begin, end);
#endif // THINGSBOARD_ENABLE_DYNAMIC

#if !USING_HTTPS
tb.loop();
Expand Down

0 comments on commit 2ca0e1b

Please sign in to comment.