From d2d1b79c4d192ee94e191b37fdcd0ac9f47e92d7 Mon Sep 17 00:00:00 2001 From: HomeSpan Date: Sat, 27 Apr 2024 10:44:30 -0500 Subject: [PATCH] Update TLV8.md --- docs/TLV8.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/TLV8.md b/docs/TLV8.md index d02a1d2..b085178 100644 --- a/docs/TLV8.md +++ b/docs/TLV8.md @@ -284,7 +284,7 @@ These are analagous to the `getVal()`, `getNewVal()` and `setVal()` methods used Note that using the above methods *do not* require you to create a separate byte-array that splits records into chunks of 255 bytes, nor does it require you to encode or decode anything into base-64. Rather, you directly read and write to and from the Characteristic into a TLV8 object.[^getString] -For a detailed example of how TLV8 Characteristics are used in practice, see [Tutorial Example 22-TL8_Characteristics](../examples/22-TL8_Characteristics) demonstrating how the **DisplayOrder** TLV8 Charactersitic can be used to set the order in which Input Sources for a TV Service are displayed in the Home App. +For a detailed example of how TLV8 Characteristics are used in practice, see [Tutorial Example 22-TL8_Characteristics](../examples/22-TLV8_Characteristics) demonstrating how the **DisplayOrder** TLV8 Charactersitic can be used to set the order in which Input Sources for a TV Service are displayed in the Home App. [^getString]:Since TLV8 Characteristics are stored as base-64 encoded strings, you can always use `getString()` to read the base-64 text, or `getData()` to decode the string into the full byte-array that represents the entire TLV8 object, if you desire. Also, if you really don't want to use HomeSpan's TLV8 library to produce TLV8 objects, but instead prefer to use your own methods to create a TLV8-compliant byte-array, you can do so and then use `setData()` to save the byte-array you produced to the TLV8 Characteristic, which will perform the base-64 encoding for you. Or, if you want to additionally perform your own base-64 encoding (why?), you can do so and then simply use `setString()` to save the resulting encoded text to the TLV8 Characteristic.