Skip to content
GitLab
Explore
Sign in
This is an archived project. Repository and other project resources are read-only.
Changes
Page history
root updated page: API Test
authored
Apr 19, 2020
by
Admin
Show whitespace changes
Inline
Side-by-side
API-Test.md
View page @
64b32b8a
...
@@ -3,3 +3,36 @@
...
@@ -3,3 +3,36 @@
HomeBot main module with core functionality.
HomeBot main module with core functionality.
## Description
## Description
Defines maximum length for a Readingname (MAXLEN
\_
RN) and for a Device name (MAXLEN
\_
DN).
# Functions Reference
-
**goodDeviceName**
(positional)
-
**goodReadingName**
(positional)
This function checks if Readingname is a valid format which
means up to MAXLEN:RN and consisting of any UTF-8 character except
whitespace (\s)
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.
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)
# AUTHOR
maintenance, refactoring:
RichardCZ @ forum.fhem.de
# COPYRIGHT
Copyright (c) 2020-present RichardCZ @ forum.fhem.de
\ No newline at end of file