From 88b0c764cf0d4cc9353f5f69b86147f1de1db758 Mon Sep 17 00:00:00 2001 From: fvanroie <15969459+fvanroie@users.noreply.github.com> Date: Fri, 8 Oct 2021 19:51:46 +0200 Subject: [PATCH] Add missing custom_topic_payload --- src/custom/my_custom_template.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/custom/my_custom_template.h b/src/custom/my_custom_template.h index 3538c4ad..9666cef6 100644 --- a/src/custom/my_custom_template.h +++ b/src/custom/my_custom_template.h @@ -20,11 +20,14 @@ void custom_every_second(); void custom_every_5seconds(); /* return true if the pin used by the custom code */ -bool custom_pin_in_use(uint pin); +bool custom_pin_in_use(uint8_t pin); -/* Add a key which defines a JsonObject to add to the sensor JSON document */ +/* Add a key which defines a JsonObject to add to the sensor JSON output */ void custom_get_sensors(JsonDocument& doc); +/* Receive custom topic & payload messages */ +void custom_topic_payload(const char* topic, const char* payload, uint8_t source); + #endif // HASP_USE_CUSTOM #endif // HASP_CUSTOM_H \ No newline at end of file