... | @@ -16,51 +16,37 @@ Defines maximum length for a Readingname (MAXLEN\_RN) and for a Device name (MAX |
... | @@ -16,51 +16,37 @@ Defines maximum length for a Readingname (MAXLEN\_RN) and for a Device name (MAX |
|
This function checks if Readingname is a valid format which
|
|
This function checks if Readingname is a valid format which
|
|
means up to MAXLEN:RN and consisting of any UTF-8 character except
|
|
means up to MAXLEN:RN and consisting of any UTF-8 character except
|
|
|
|
|
|
> If the identifier starts with a dot ., it's considered to be an
|
|
- whitespace (\s)
|
|
> internal identifier and is treated differently in visualization,
|
|
|
|
> i.e. hidden. The leading . is not included in MAXLEN\_RN length
|
|
|
|
> considerations.
|
|
|
|
>
|
|
|
|
> For valid identifiers a true value is returned, false otherwise. This
|
|
|
|
> function can be used in if-constructs directly to test whether a
|
|
|
|
> Readingname is valid or not.
|
|
|
|
>
|
|
|
|
> **makeDeviceName** (positional)
|
|
|
|
>
|
|
|
|
> **makeReadingName** (positional)
|
|
|
|
>
|
|
|
|
> = makeReadingName();
|
|
|
|
> This function removes from given Readingname all invalid characters and replaces them with the underscore \_. Also, if the Readingname is longer than MAXLEN\_RN it is pruned to this maximum length. The return value is a Readingname that has only valid characters in it (see goodReadingName). If was already valid, equals .
|
|
|
|
>
|
|
|
|
> **ReadingsAge** (positional)
|
|
|
|
>
|
|
|
|
> **ReadingsNum** (positional)
|
|
|
|
>
|
|
|
|
> **ReadingsTimestamp** (positional)
|
|
|
|
>
|
|
|
|
> **ReadingsVal** (positional)
|
|
|
|
>
|
|
|
|
> **OldReadingsAge** (positional)
|
|
|
|
>
|
|
|
|
> **OldReadingsNum** (positional)
|
|
|
|
>
|
|
|
|
> **OldReadingsTimestamp** (positional)
|
|
|
|
>
|
|
|
|
> **OldReadingsVal** (positional)
|
|
|
|
|
|
|
|
# AUTHOR
|
|
If the identifier starts with a dot ., it's considered to be an
|
|
|
|
internal identifier and is treated differently in visualization,
|
|
|
|
i.e. hidden. The leading . is not included in MAXLEN\_RN length
|
|
|
|
considerations.
|
|
|
|
|
|
maintenance, refactoring:
|
|
For valid identifiers a true value is returned, false otherwise. This
|
|
RichardCZ @ forum.fhem.de
|
|
function can be used in if-constructs directly to test whether a
|
|
|
|
Readingname is valid or not.
|
|
|
|
|
|
# COPYRIGHT
|
|
- **makeDeviceName** (positional)
|
|
|
|
- **makeReadingName** (positional)
|
|
|
|
|
|
Copyright (c) 2020-present RichardCZ @ forum.fhem.de
|
|
= makeReadingName();
|
|
|
|
This function removes from given Readingname all invalid characters and replaces them with the underscore \_. Also, if the Readingname is longer than MAXLEN\_RN it is pruned to this maximum length. The return value is a Readingname that has only valid characters in it (see goodReadingName). If was already valid, equals .
|
|
|
|
|
|
# POD ERRORS
|
|
- **ReadingsAge** (positional)
|
|
|
|
- **ReadingsNum** (positional)
|
|
|
|
- **ReadingsTimestamp** (positional)
|
|
|
|
- **ReadingsVal** (positional)
|
|
|
|
- **OldReadingsAge** (positional)
|
|
|
|
- **OldReadingsNum** (positional)
|
|
|
|
- **OldReadingsTimestamp** (positional)
|
|
|
|
- **OldReadingsVal** (positional)
|
|
|
|
|
|
Hey! **The above document had some coding errors, which are explained below:**
|
|
# AUTHOR
|
|
|
|
|
|
- Around line 336:
|
|
maintenance, refactoring:
|
|
|
|
RichardCZ @ forum.fhem.de
|
|
|
|
|
|
|
|
# COPYRIGHT
|
|
|
|
|
|
|
|
Copyright (c) 2020-present RichardCZ @ forum.fhem.de |