This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
en:iot:examples:button [2021/03/05 00:58] – heiko.pikner | en:iot:examples:button [Unknown date] (current) – external edit (Unknown date) 127.0.0.1 | ||
---|---|---|---|
Line 29: | Line 29: | ||
Switch button = Switch(buttonPin); | Switch button = Switch(buttonPin); | ||
+ | |||
+ | void iot_received(String topic, String msg) {} | ||
// Function started after the connection to the server is established. | // Function started after the connection to the server is established. | ||
Line 79: | Line 81: | ||
iot.log(" | iot.log(" | ||
} | } | ||
+ | | ||
+ | delay(3); | ||
} | } | ||
</ | </ |