Add dispatch_state_subtopic example

This commit is contained in:
fvanroie 2021-07-12 15:33:17 +02:00
parent db57b0512a
commit c36f3fe712

View File

@ -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)