From c36f3fe712e76d8c8499b581afcc705b2a9f2bbe Mon Sep 17 00:00:00 2001 From: fvanroie <15969459+fvanroie@users.noreply.github.com> Date: Mon, 12 Jul 2021 15:33:17 +0200 Subject: [PATCH] Add dispatch_state_subtopic example --- src/custom/my_custom_template.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/custom/my_custom_template.cpp b/src/custom/my_custom_template.cpp index e623057f..fdb5b38b 100644 --- a/src/custom/my_custom_template.cpp +++ b/src/custom/my_custom_template.cpp @@ -26,6 +26,7 @@ void custom_every_second() void custom_every_5seconds() { Log.verbose(TAG_CUSTOM, "5 seconds have passsed..."); + dispatch_state_subtopic("my_sensor","{\"test\":123}"); } bool custom_pin_in_use(uint pin)