From e0855e9b52be533dbade66cbe30d6a4a4374086c Mon Sep 17 00:00:00 2001 From: HomeSpan Date: Fri, 11 Feb 2022 09:05:01 -0600 Subject: [PATCH] Update Reference.md --- docs/Reference.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/docs/Reference.md b/docs/Reference.md index 75c95ea..cfa25ca 100644 --- a/docs/Reference.md +++ b/docs/Reference.md @@ -368,16 +368,17 @@ Note that Custom Characteristics must be created prior to calling `homeSpan.begi #### Deprecated functions (available for backwards compatibility with older sketches): -*SpanRange(int min, int max, int step)* +* `SpanRange(int min, int max, int step)` - * this legacy function is limited to integer-based parameters and has been re-coded to simply call the more generic `setRange(min, max, step)` method + * this legacy class was limited to integer-based parameters and has been re-coded to simply call the more generic `setRange(min, max, step)` method * last supported version: [v1.2.0](https://github.com/HomeSpan/HomeSpan/blob/release-1.2.0/docs/Reference.md#spanrangeint-min-int-max-int-step) * **please use** `setRange(min, max, step)` **for all new sketches** -`void homeSpan.setMaxConnections(uint8_t nCon)` - * this legacy function was used to reduce the total number of HAP Controller Connections HomeSpan implements upon start-up to ensure there are still free sockets available for user-defined code requiring separate network resources +* `void homeSpan.setMaxConnections(uint8_t nCon)` + * this legacy method was used to set the total number of HAP Controller Connections HomeSpan implements upon start-up to ensure there are still free sockets available for user-defined code requiring separate network resources + * this has been replaces by the more flexible method, `reserveSocketConnections(uint8_t nSockets)`, that allows you to simply reserve network sockets for other functions as needed - HomeSpan will then automarically determine how many sockts are left that it can use for HAP Controller Connections * last supported version: [v1.4.2](https://github.com/HomeSpan/HomeSpan/blob/release-1.2.0/docs/Reference.md) - * **please use** `homeSpan.reserveSocketsConnections(uint8_t nSockets)` **for all new sketches** + * **please use** `homeSpan.reserveSocketConnections(uint8_t nSockets)` **for all new sketches** ---