From 6f488628befa700acee9d6328316bcf630e578ab Mon Sep 17 00:00:00 2001 From: HomeSpan Date: Sun, 22 Nov 2020 22:25:03 -0600 Subject: [PATCH] Update Tutorials.md --- docs/Tutorials.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/Tutorials.md b/docs/Tutorials.md index a0e2b78..5a4ae39 100644 --- a/docs/Tutorials.md +++ b/docs/Tutorials.md @@ -45,6 +45,14 @@ Example 7 uses the encapsulation techniques illustrated in Examples 5 and 6 to d ### [Example 8 - Bridges](../examples/08-Bridges/08-Bridges.ino) Example 8 is functionally identical to Example 7, except that instead of defining two Accessories (one for the on/off LED and one for the dimmable LED), we define three Accessories, where the first acts as a HomeKit Bridge. +### [Example 9 - MessageLogging](../examples/09-MessageLogging/09-MessageLogging.ino) +Example 9 illustrates how to add log messages to your HomeSpan sketch. The code is identical to Example 8 except for the inclusion of new log messages. New HomeSpan API topics covered in this example include: + +* using the `LOG1()` and `LOG2()` macros to create log messages for different log levels +* setting the initial log level for a sketch with the `homeSpan.setLogLevel()` method + + + --- [↩️](README.md) Back to the Welcome page