Shell - RED Brick
Dies ist die Beschreibung der Shell API Bindings für den RED Brick. Allgemeine Informationen über
die Funktionen und technischen Spezifikationen des RED Brick sind in dessen
Hardware Beschreibung zusammengefasst.
Eine Installationanleitung für die Shell API
Bindings ist Teil deren allgemeine Beschreibung.
API
Mögliche Exit Codes für alle tinkerforge
Befehle sind:
- 1: Unterbrochen (Ctrl+C)
- 2: Syntaxfehler
- 21: Python 2.5 oder neuer wird benötigt
- 22: Python
argparse
Modul fehlt
- 23: Socket-Fehler
- 24: Andere Exception
- 25: Ungültiger Platzhalter in Format-String
- 26: Authentifizierungsfehler
- 201: Timeout ist aufgetreten
- 209: Ungültiger Argumentwert
- 210: Funktion wird nicht unterstützt
- 211: Unbekannter Fehler
Bemerkung
Die API Dokumentation für den RED Brick ist noch nicht vollständig.
Befehlsstruktur
Allgemeine Optionen des call
und des dispatch
Befehls sind
hier zu finden. Im Folgenden wird die spezifische
Befehlsstruktur dargestellt.
-
tinkerforge
call
red-brick
[<option>..] <uid> <function> [<argument>..]
Parameter: | - <uid> – Typ: String
- <function> – Typ: String
|
Der call
Befehl wird verwendet um eine Funktion des RED Brick aufzurufen. Der
Befehl kennt mehrere Optionen:
--help
zeigt Hilfe für den spezifischen call
Befehl an und endet dann
--list-functions
zeigt eine Liste der bekannten Funktionen des RED Brick an
und endet dann
-
tinkerforge
dispatch
red-brick
[<option>..] <uid> <callback>
Parameter: | - <uid> – Typ: String
- <callback> – Typ: String
|
Der dispatch
Befehl wird verwendet um eingehende Callbacks des RED Brick
abzufertigen. Der Befehl kennt mehrere Optionen:
--help
zeigt Hilfe für den spezifischen dispatch
Befehl an und endet
dann
--list-callbacks
zeigt eine Liste der bekannten Callbacks des RED Brick an
und endet dann
-
tinkerforge call
red-brick
<uid> <function>
[<option>..] [<argument>..]
Parameter: | - <uid> – Typ: String
- <function> – Typ: String
|
Abhängig von der Art der aufzurufenden <function>
kennt diese verschiedene
Optionen. Alle Funktionen kennen die folgenden Optionen:
--help
zeigt Hilfe für die spezifische <function>
an und endet dann
Getter-Funktionen kennen zusätzlich die folgenden Optionen:
--execute <command>
Shell-Befehl der für jede eingehende Antwort
ausgeführt wird (siehe den Abschnitt über Ausgabeformatierung für Details)
Setter-Funktionen kennen zusätzlich die folgenden Optionen:
--expect-response
fragt Antwort an und wartet auf diese
Mit der --expect-response
Option für Setter-Funktionen können Timeouts und
andere Fehlerfälle auch für Aufrufe von Setter-Funktionen detektiert werden.
Das Gerät sendet dann eine Antwort extra für diesen Zweck. Wenn diese Option
für eine Setter-Funktion nicht angegeben ist, dann wird keine Antwort vom
Gerät gesendet und Fehler werden stillschweigend ignoriert, da sie nicht
detektiert werden können.
-
tinkerforge dispatch
red-brick
<uid> <callback>
[<option>..]
Parameter: | - <uid> – Typ: String
- <callback> – Typ: String
|
Der abzufertigende <callback>
kennt mehrere Optionen:
--help
zeigt Hilfe für den spezifische <callback>
an und endet dann
--execute <command>
Shell-Befehlszeile der für jede eingehende Antwort
ausgeführt wird (siehe den Abschnitt über Ausgabeformatierung für Details)
Fortgeschrittene Funktionen
-
tinkerforge call
red-brick
<uid> create-session
<lifetime>
Parameter: | - <lifetime> – Typ: Int, Wertebereich: [0 bis 232 - 1]
|
Ausgabe: | - error-code – Typ: Int, Wertebereich: Siehe Symbole
- session-id – Typ: Int, Wertebereich: [0 bis 216 - 1]
|
Die folgenden Symbole sind für diese Funktion verfügbar:
Für error-code:
- error-code-success = 0
- error-code-unknown-error = 1
- error-code-invalid-operation = 2
- error-code-operation-aborted = 3
- error-code-internal-error = 4
- error-code-unknown-session-id = 5
- error-code-no-free-session-id = 6
- error-code-unknown-object-id = 7
- error-code-no-free-object-id = 8
- error-code-object-is-locked = 9
- error-code-no-more-data = 10
- error-code-wrong-list-item-type = 11
- error-code-program-is-purged = 12
- error-code-invalid-parameter = 128
- error-code-no-free-memory = 129
- error-code-no-free-space = 130
- error-code-access-denied = 121
- error-code-already-exists = 132
- error-code-does-not-exist = 133
- error-code-interrupted = 134
- error-code-is-directory = 135
- error-code-not-a-directory = 136
- error-code-would-block = 137
- error-code-overflow = 138
- error-code-bad-file-descriptor = 139
- error-code-out-of-range = 140
- error-code-name-too-long = 141
- error-code-invalid-seek = 142
- error-code-not-supported = 143
- error-code-too-many-open-files = 144
-
tinkerforge call
red-brick
<uid> expire-session
<session-id>
Parameter: | - <session-id> – Typ: Int, Wertebereich: [0 bis 216 - 1]
|
Ausgabe: | - error-code – Typ: Int, Wertebereich: Siehe Symbole
|
Die folgenden Symbole sind für diese Funktion verfügbar:
Für error-code:
- error-code-success = 0
- error-code-unknown-error = 1
- error-code-invalid-operation = 2
- error-code-operation-aborted = 3
- error-code-internal-error = 4
- error-code-unknown-session-id = 5
- error-code-no-free-session-id = 6
- error-code-unknown-object-id = 7
- error-code-no-free-object-id = 8
- error-code-object-is-locked = 9
- error-code-no-more-data = 10
- error-code-wrong-list-item-type = 11
- error-code-program-is-purged = 12
- error-code-invalid-parameter = 128
- error-code-no-free-memory = 129
- error-code-no-free-space = 130
- error-code-access-denied = 121
- error-code-already-exists = 132
- error-code-does-not-exist = 133
- error-code-interrupted = 134
- error-code-is-directory = 135
- error-code-not-a-directory = 136
- error-code-would-block = 137
- error-code-overflow = 138
- error-code-bad-file-descriptor = 139
- error-code-out-of-range = 140
- error-code-name-too-long = 141
- error-code-invalid-seek = 142
- error-code-not-supported = 143
- error-code-too-many-open-files = 144
-
tinkerforge call
red-brick
<uid> expire-session-unchecked
<session-id>
Parameter: | - <session-id> – Typ: Int, Wertebereich: [0 bis 216 - 1]
|
Ausgabe: | |
-
tinkerforge call
red-brick
<uid> keep-session-alive
<session-id> <lifetime>
Parameter: | - <session-id> – Typ: Int, Wertebereich: [0 bis 216 - 1]
- <lifetime> – Typ: Int, Wertebereich: [0 bis 232 - 1]
|
Ausgabe: | - error-code – Typ: Int, Wertebereich: Siehe Symbole
|
Die folgenden Symbole sind für diese Funktion verfügbar:
Für error-code:
- error-code-success = 0
- error-code-unknown-error = 1
- error-code-invalid-operation = 2
- error-code-operation-aborted = 3
- error-code-internal-error = 4
- error-code-unknown-session-id = 5
- error-code-no-free-session-id = 6
- error-code-unknown-object-id = 7
- error-code-no-free-object-id = 8
- error-code-object-is-locked = 9
- error-code-no-more-data = 10
- error-code-wrong-list-item-type = 11
- error-code-program-is-purged = 12
- error-code-invalid-parameter = 128
- error-code-no-free-memory = 129
- error-code-no-free-space = 130
- error-code-access-denied = 121
- error-code-already-exists = 132
- error-code-does-not-exist = 133
- error-code-interrupted = 134
- error-code-is-directory = 135
- error-code-not-a-directory = 136
- error-code-would-block = 137
- error-code-overflow = 138
- error-code-bad-file-descriptor = 139
- error-code-out-of-range = 140
- error-code-name-too-long = 141
- error-code-invalid-seek = 142
- error-code-not-supported = 143
- error-code-too-many-open-files = 144
-
tinkerforge call
red-brick
<uid> release-object
<object-id> <session-id>
Parameter: | - <object-id> – Typ: Int, Wertebereich: [0 bis 216 - 1]
- <session-id> – Typ: Int, Wertebereich: [0 bis 216 - 1]
|
Ausgabe: | - error-code – Typ: Int, Wertebereich: Siehe Symbole
|
Die folgenden Symbole sind für diese Funktion verfügbar:
Für error-code:
- error-code-success = 0
- error-code-unknown-error = 1
- error-code-invalid-operation = 2
- error-code-operation-aborted = 3
- error-code-internal-error = 4
- error-code-unknown-session-id = 5
- error-code-no-free-session-id = 6
- error-code-unknown-object-id = 7
- error-code-no-free-object-id = 8
- error-code-object-is-locked = 9
- error-code-no-more-data = 10
- error-code-wrong-list-item-type = 11
- error-code-program-is-purged = 12
- error-code-invalid-parameter = 128
- error-code-no-free-memory = 129
- error-code-no-free-space = 130
- error-code-access-denied = 121
- error-code-already-exists = 132
- error-code-does-not-exist = 133
- error-code-interrupted = 134
- error-code-is-directory = 135
- error-code-not-a-directory = 136
- error-code-would-block = 137
- error-code-overflow = 138
- error-code-bad-file-descriptor = 139
- error-code-out-of-range = 140
- error-code-name-too-long = 141
- error-code-invalid-seek = 142
- error-code-not-supported = 143
- error-code-too-many-open-files = 144
-
tinkerforge call
red-brick
<uid> release-object-unchecked
<object-id> <session-id>
Parameter: | - <object-id> – Typ: Int, Wertebereich: [0 bis 216 - 1]
- <session-id> – Typ: Int, Wertebereich: [0 bis 216 - 1]
|
Ausgabe: | |
-
tinkerforge call
red-brick
<uid> allocate-string
<length-to-reserve> <buffer> <session-id>
Parameter: | - <length-to-reserve> – Typ: Int, Einheit: 1 B, Wertebereich: [0 bis 232 - 1]
- <buffer> – Typ: String, Länge: bis zu 58
- <session-id> – Typ: Int, Wertebereich: [0 bis 216 - 1]
|
Ausgabe: | - error-code – Typ: Int, Wertebereich: Siehe Symbole
- string-id – Typ: Int, Wertebereich: [0 bis 216 - 1]
|
Die folgenden Symbole sind für diese Funktion verfügbar:
Für error-code:
- error-code-success = 0
- error-code-unknown-error = 1
- error-code-invalid-operation = 2
- error-code-operation-aborted = 3
- error-code-internal-error = 4
- error-code-unknown-session-id = 5
- error-code-no-free-session-id = 6
- error-code-unknown-object-id = 7
- error-code-no-free-object-id = 8
- error-code-object-is-locked = 9
- error-code-no-more-data = 10
- error-code-wrong-list-item-type = 11
- error-code-program-is-purged = 12
- error-code-invalid-parameter = 128
- error-code-no-free-memory = 129
- error-code-no-free-space = 130
- error-code-access-denied = 121
- error-code-already-exists = 132
- error-code-does-not-exist = 133
- error-code-interrupted = 134
- error-code-is-directory = 135
- error-code-not-a-directory = 136
- error-code-would-block = 137
- error-code-overflow = 138
- error-code-bad-file-descriptor = 139
- error-code-out-of-range = 140
- error-code-name-too-long = 141
- error-code-invalid-seek = 142
- error-code-not-supported = 143
- error-code-too-many-open-files = 144
-
tinkerforge call
red-brick
<uid> truncate-string
<string-id> <length>
Parameter: | - <string-id> – Typ: Int, Wertebereich: [0 bis 216 - 1]
- <length> – Typ: Int, Einheit: 1 B, Wertebereich: [0 bis 232 - 1]
|
Ausgabe: | - error-code – Typ: Int, Wertebereich: Siehe Symbole
|
Die folgenden Symbole sind für diese Funktion verfügbar:
Für error-code:
- error-code-success = 0
- error-code-unknown-error = 1
- error-code-invalid-operation = 2
- error-code-operation-aborted = 3
- error-code-internal-error = 4
- error-code-unknown-session-id = 5
- error-code-no-free-session-id = 6
- error-code-unknown-object-id = 7
- error-code-no-free-object-id = 8
- error-code-object-is-locked = 9
- error-code-no-more-data = 10
- error-code-wrong-list-item-type = 11
- error-code-program-is-purged = 12
- error-code-invalid-parameter = 128
- error-code-no-free-memory = 129
- error-code-no-free-space = 130
- error-code-access-denied = 121
- error-code-already-exists = 132
- error-code-does-not-exist = 133
- error-code-interrupted = 134
- error-code-is-directory = 135
- error-code-not-a-directory = 136
- error-code-would-block = 137
- error-code-overflow = 138
- error-code-bad-file-descriptor = 139
- error-code-out-of-range = 140
- error-code-name-too-long = 141
- error-code-invalid-seek = 142
- error-code-not-supported = 143
- error-code-too-many-open-files = 144
-
tinkerforge call
red-brick
<uid> get-string-length
<string-id>
Parameter: | - <string-id> – Typ: Int, Wertebereich: [0 bis 216 - 1]
|
Ausgabe: | - error-code – Typ: Int, Wertebereich: Siehe Symbole
- length – Typ: Int, Einheit: 1 B, Wertebereich: [0 bis 232 - 1]
|
Die folgenden Symbole sind für diese Funktion verfügbar:
Für error-code:
- error-code-success = 0
- error-code-unknown-error = 1
- error-code-invalid-operation = 2
- error-code-operation-aborted = 3
- error-code-internal-error = 4
- error-code-unknown-session-id = 5
- error-code-no-free-session-id = 6
- error-code-unknown-object-id = 7
- error-code-no-free-object-id = 8
- error-code-object-is-locked = 9
- error-code-no-more-data = 10
- error-code-wrong-list-item-type = 11
- error-code-program-is-purged = 12
- error-code-invalid-parameter = 128
- error-code-no-free-memory = 129
- error-code-no-free-space = 130
- error-code-access-denied = 121
- error-code-already-exists = 132
- error-code-does-not-exist = 133
- error-code-interrupted = 134
- error-code-is-directory = 135
- error-code-not-a-directory = 136
- error-code-would-block = 137
- error-code-overflow = 138
- error-code-bad-file-descriptor = 139
- error-code-out-of-range = 140
- error-code-name-too-long = 141
- error-code-invalid-seek = 142
- error-code-not-supported = 143
- error-code-too-many-open-files = 144
-
tinkerforge call
red-brick
<uid> set-string-chunk
<string-id> <offset> <buffer>
Parameter: | - <string-id> – Typ: Int, Wertebereich: [0 bis 216 - 1]
- <offset> – Typ: Int, Einheit: 1 B, Wertebereich: [0 bis 232 - 1]
- <buffer> – Typ: String, Länge: bis zu 58
|
Ausgabe: | - error-code – Typ: Int, Wertebereich: Siehe Symbole
|
Die folgenden Symbole sind für diese Funktion verfügbar:
Für error-code:
- error-code-success = 0
- error-code-unknown-error = 1
- error-code-invalid-operation = 2
- error-code-operation-aborted = 3
- error-code-internal-error = 4
- error-code-unknown-session-id = 5
- error-code-no-free-session-id = 6
- error-code-unknown-object-id = 7
- error-code-no-free-object-id = 8
- error-code-object-is-locked = 9
- error-code-no-more-data = 10
- error-code-wrong-list-item-type = 11
- error-code-program-is-purged = 12
- error-code-invalid-parameter = 128
- error-code-no-free-memory = 129
- error-code-no-free-space = 130
- error-code-access-denied = 121
- error-code-already-exists = 132
- error-code-does-not-exist = 133
- error-code-interrupted = 134
- error-code-is-directory = 135
- error-code-not-a-directory = 136
- error-code-would-block = 137
- error-code-overflow = 138
- error-code-bad-file-descriptor = 139
- error-code-out-of-range = 140
- error-code-name-too-long = 141
- error-code-invalid-seek = 142
- error-code-not-supported = 143
- error-code-too-many-open-files = 144
-
tinkerforge call
red-brick
<uid> get-string-chunk
<string-id> <offset>
Parameter: | - <string-id> – Typ: Int, Wertebereich: [0 bis 216 - 1]
- <offset> – Typ: Int, Einheit: 1 B, Wertebereich: [0 bis 232 - 1]
|
Ausgabe: | - error-code – Typ: Int, Wertebereich: Siehe Symbole
- buffer – Typ: String, Länge: bis zu 63
|
Die folgenden Symbole sind für diese Funktion verfügbar:
Für error-code:
- error-code-success = 0
- error-code-unknown-error = 1
- error-code-invalid-operation = 2
- error-code-operation-aborted = 3
- error-code-internal-error = 4
- error-code-unknown-session-id = 5
- error-code-no-free-session-id = 6
- error-code-unknown-object-id = 7
- error-code-no-free-object-id = 8
- error-code-object-is-locked = 9
- error-code-no-more-data = 10
- error-code-wrong-list-item-type = 11
- error-code-program-is-purged = 12
- error-code-invalid-parameter = 128
- error-code-no-free-memory = 129
- error-code-no-free-space = 130
- error-code-access-denied = 121
- error-code-already-exists = 132
- error-code-does-not-exist = 133
- error-code-interrupted = 134
- error-code-is-directory = 135
- error-code-not-a-directory = 136
- error-code-would-block = 137
- error-code-overflow = 138
- error-code-bad-file-descriptor = 139
- error-code-out-of-range = 140
- error-code-name-too-long = 141
- error-code-invalid-seek = 142
- error-code-not-supported = 143
- error-code-too-many-open-files = 144
-
tinkerforge call
red-brick
<uid> allocate-list
<length-to-reserve> <session-id>
Parameter: | - <length-to-reserve> – Typ: Int, Wertebereich: [0 bis 216 - 1]
- <session-id> – Typ: Int, Wertebereich: [0 bis 216 - 1]
|
Ausgabe: | - error-code – Typ: Int, Wertebereich: Siehe Symbole
- list-id – Typ: Int, Wertebereich: [0 bis 216 - 1]
|
Die folgenden Symbole sind für diese Funktion verfügbar:
Für error-code:
- error-code-success = 0
- error-code-unknown-error = 1
- error-code-invalid-operation = 2
- error-code-operation-aborted = 3
- error-code-internal-error = 4
- error-code-unknown-session-id = 5
- error-code-no-free-session-id = 6
- error-code-unknown-object-id = 7
- error-code-no-free-object-id = 8
- error-code-object-is-locked = 9
- error-code-no-more-data = 10
- error-code-wrong-list-item-type = 11
- error-code-program-is-purged = 12
- error-code-invalid-parameter = 128
- error-code-no-free-memory = 129
- error-code-no-free-space = 130
- error-code-access-denied = 121
- error-code-already-exists = 132
- error-code-does-not-exist = 133
- error-code-interrupted = 134
- error-code-is-directory = 135
- error-code-not-a-directory = 136
- error-code-would-block = 137
- error-code-overflow = 138
- error-code-bad-file-descriptor = 139
- error-code-out-of-range = 140
- error-code-name-too-long = 141
- error-code-invalid-seek = 142
- error-code-not-supported = 143
- error-code-too-many-open-files = 144
-
tinkerforge call
red-brick
<uid> get-list-length
<list-id>
Parameter: | - <list-id> – Typ: Int, Wertebereich: [0 bis 216 - 1]
|
Ausgabe: | - error-code – Typ: Int, Wertebereich: Siehe Symbole
- length – Typ: Int, Wertebereich: [0 bis 216 - 1]
|
Die folgenden Symbole sind für diese Funktion verfügbar:
Für error-code:
- error-code-success = 0
- error-code-unknown-error = 1
- error-code-invalid-operation = 2
- error-code-operation-aborted = 3
- error-code-internal-error = 4
- error-code-unknown-session-id = 5
- error-code-no-free-session-id = 6
- error-code-unknown-object-id = 7
- error-code-no-free-object-id = 8
- error-code-object-is-locked = 9
- error-code-no-more-data = 10
- error-code-wrong-list-item-type = 11
- error-code-program-is-purged = 12
- error-code-invalid-parameter = 128
- error-code-no-free-memory = 129
- error-code-no-free-space = 130
- error-code-access-denied = 121
- error-code-already-exists = 132
- error-code-does-not-exist = 133
- error-code-interrupted = 134
- error-code-is-directory = 135
- error-code-not-a-directory = 136
- error-code-would-block = 137
- error-code-overflow = 138
- error-code-bad-file-descriptor = 139
- error-code-out-of-range = 140
- error-code-name-too-long = 141
- error-code-invalid-seek = 142
- error-code-not-supported = 143
- error-code-too-many-open-files = 144
-
tinkerforge call
red-brick
<uid> get-list-item
<list-id> <index> <session-id>
Parameter: | - <list-id> – Typ: Int, Wertebereich: [0 bis 216 - 1]
- <index> – Typ: Int, Wertebereich: [0 bis 216 - 1]
- <session-id> – Typ: Int, Wertebereich: [0 bis 216 - 1]
|
Ausgabe: | - error-code – Typ: Int, Wertebereich: Siehe Symbole
- item-object-id – Typ: Int, Wertebereich: [0 bis 216 - 1]
- type – Typ: Int, Wertebereich: Siehe Symbole
|
Die folgenden Symbole sind für diese Funktion verfügbar:
Für error-code:
- error-code-success = 0
- error-code-unknown-error = 1
- error-code-invalid-operation = 2
- error-code-operation-aborted = 3
- error-code-internal-error = 4
- error-code-unknown-session-id = 5
- error-code-no-free-session-id = 6
- error-code-unknown-object-id = 7
- error-code-no-free-object-id = 8
- error-code-object-is-locked = 9
- error-code-no-more-data = 10
- error-code-wrong-list-item-type = 11
- error-code-program-is-purged = 12
- error-code-invalid-parameter = 128
- error-code-no-free-memory = 129
- error-code-no-free-space = 130
- error-code-access-denied = 121
- error-code-already-exists = 132
- error-code-does-not-exist = 133
- error-code-interrupted = 134
- error-code-is-directory = 135
- error-code-not-a-directory = 136
- error-code-would-block = 137
- error-code-overflow = 138
- error-code-bad-file-descriptor = 139
- error-code-out-of-range = 140
- error-code-name-too-long = 141
- error-code-invalid-seek = 142
- error-code-not-supported = 143
- error-code-too-many-open-files = 144
Für type:
- object-type-string = 0
- object-type-list = 1
- object-type-file = 2
- object-type-directory = 3
- object-type-process = 4
- object-type-program = 5
-
tinkerforge call
red-brick
<uid> append-to-list
<list-id> <item-object-id>
Parameter: | - <list-id> – Typ: Int, Wertebereich: [0 bis 216 - 1]
- <item-object-id> – Typ: Int, Wertebereich: [0 bis 216 - 1]
|
Ausgabe: | - error-code – Typ: Int, Wertebereich: Siehe Symbole
|
Die folgenden Symbole sind für diese Funktion verfügbar:
Für error-code:
- error-code-success = 0
- error-code-unknown-error = 1
- error-code-invalid-operation = 2
- error-code-operation-aborted = 3
- error-code-internal-error = 4
- error-code-unknown-session-id = 5
- error-code-no-free-session-id = 6
- error-code-unknown-object-id = 7
- error-code-no-free-object-id = 8
- error-code-object-is-locked = 9
- error-code-no-more-data = 10
- error-code-wrong-list-item-type = 11
- error-code-program-is-purged = 12
- error-code-invalid-parameter = 128
- error-code-no-free-memory = 129
- error-code-no-free-space = 130
- error-code-access-denied = 121
- error-code-already-exists = 132
- error-code-does-not-exist = 133
- error-code-interrupted = 134
- error-code-is-directory = 135
- error-code-not-a-directory = 136
- error-code-would-block = 137
- error-code-overflow = 138
- error-code-bad-file-descriptor = 139
- error-code-out-of-range = 140
- error-code-name-too-long = 141
- error-code-invalid-seek = 142
- error-code-not-supported = 143
- error-code-too-many-open-files = 144
-
tinkerforge call
red-brick
<uid> remove-from-list
<list-id> <index>
Parameter: | - <list-id> – Typ: Int, Wertebereich: [0 bis 216 - 1]
- <index> – Typ: Int, Wertebereich: [0 bis 216 - 1]
|
Ausgabe: | - error-code – Typ: Int, Wertebereich: Siehe Symbole
|
Die folgenden Symbole sind für diese Funktion verfügbar:
Für error-code:
- error-code-success = 0
- error-code-unknown-error = 1
- error-code-invalid-operation = 2
- error-code-operation-aborted = 3
- error-code-internal-error = 4
- error-code-unknown-session-id = 5
- error-code-no-free-session-id = 6
- error-code-unknown-object-id = 7
- error-code-no-free-object-id = 8
- error-code-object-is-locked = 9
- error-code-no-more-data = 10
- error-code-wrong-list-item-type = 11
- error-code-program-is-purged = 12
- error-code-invalid-parameter = 128
- error-code-no-free-memory = 129
- error-code-no-free-space = 130
- error-code-access-denied = 121
- error-code-already-exists = 132
- error-code-does-not-exist = 133
- error-code-interrupted = 134
- error-code-is-directory = 135
- error-code-not-a-directory = 136
- error-code-would-block = 137
- error-code-overflow = 138
- error-code-bad-file-descriptor = 139
- error-code-out-of-range = 140
- error-code-name-too-long = 141
- error-code-invalid-seek = 142
- error-code-not-supported = 143
- error-code-too-many-open-files = 144
-
tinkerforge call
red-brick
<uid> open-file
<name-string-id> <flags> <permissions> <uid> <gid> <session-id>
Parameter: | - <name-string-id> – Typ: Int, Wertebereich: [0 bis 216 - 1]
- <flags> – Typ: Int, Wertebereich: Siehe Symbole
- <permissions> – Typ: Int, Wertebereich: Siehe Symbole
- <uid> – Typ: Int, Wertebereich: [0 bis 232 - 1]
- <gid> – Typ: Int, Wertebereich: [0 bis 232 - 1]
- <session-id> – Typ: Int, Wertebereich: [0 bis 216 - 1]
|
Ausgabe: | - error-code – Typ: Int, Wertebereich: Siehe Symbole
- file-id – Typ: Int, Wertebereich: [0 bis 216 - 1]
|
Die folgenden Symbole sind für diese Funktion verfügbar:
Für <flags>:
- file-flag-read-only = 1
- file-flag-write-only = 2
- file-flag-read-write = 4
- file-flag-append = 8
- file-flag-create = 16
- file-flag-exclusive = 32
- file-flag-non-blocking = 64
- file-flag-truncate = 128
- file-flag-temporary = 256
- file-flag-replace = 512
Für <permissions>:
- file-permission-user-all = 448
- file-permission-user-read = 256
- file-permission-user-write = 128
- file-permission-user-execute = 64
- file-permission-group-all = 56
- file-permission-group-read = 32
- file-permission-group-write = 16
- file-permission-group-execute = 8
- file-permission-others-all = 7
- file-permission-others-read = 4
- file-permission-others-write = 2
- file-permission-others-execute = 1
Für error-code:
- error-code-success = 0
- error-code-unknown-error = 1
- error-code-invalid-operation = 2
- error-code-operation-aborted = 3
- error-code-internal-error = 4
- error-code-unknown-session-id = 5
- error-code-no-free-session-id = 6
- error-code-unknown-object-id = 7
- error-code-no-free-object-id = 8
- error-code-object-is-locked = 9
- error-code-no-more-data = 10
- error-code-wrong-list-item-type = 11
- error-code-program-is-purged = 12
- error-code-invalid-parameter = 128
- error-code-no-free-memory = 129
- error-code-no-free-space = 130
- error-code-access-denied = 121
- error-code-already-exists = 132
- error-code-does-not-exist = 133
- error-code-interrupted = 134
- error-code-is-directory = 135
- error-code-not-a-directory = 136
- error-code-would-block = 137
- error-code-overflow = 138
- error-code-bad-file-descriptor = 139
- error-code-out-of-range = 140
- error-code-name-too-long = 141
- error-code-invalid-seek = 142
- error-code-not-supported = 143
- error-code-too-many-open-files = 144
-
tinkerforge call
red-brick
<uid> create-pipe
<flags> <length> <session-id>
Parameter: | - <flags> – Typ: Int, Wertebereich: Siehe Symbole
- <length> – Typ: Int, Einheit: 1 B, Wertebereich: [0 bis 264 - 1]
- <session-id> – Typ: Int, Wertebereich: [0 bis 216 - 1]
|
Ausgabe: | - error-code – Typ: Int, Wertebereich: Siehe Symbole
- file-id – Typ: Int, Wertebereich: [0 bis 216 - 1]
|
Die folgenden Symbole sind für diese Funktion verfügbar:
Für <flags>:
- pipe-flag-non-blocking-read = 1
- pipe-flag-non-blocking-write = 2
Für error-code:
- error-code-success = 0
- error-code-unknown-error = 1
- error-code-invalid-operation = 2
- error-code-operation-aborted = 3
- error-code-internal-error = 4
- error-code-unknown-session-id = 5
- error-code-no-free-session-id = 6
- error-code-unknown-object-id = 7
- error-code-no-free-object-id = 8
- error-code-object-is-locked = 9
- error-code-no-more-data = 10
- error-code-wrong-list-item-type = 11
- error-code-program-is-purged = 12
- error-code-invalid-parameter = 128
- error-code-no-free-memory = 129
- error-code-no-free-space = 130
- error-code-access-denied = 121
- error-code-already-exists = 132
- error-code-does-not-exist = 133
- error-code-interrupted = 134
- error-code-is-directory = 135
- error-code-not-a-directory = 136
- error-code-would-block = 137
- error-code-overflow = 138
- error-code-bad-file-descriptor = 139
- error-code-out-of-range = 140
- error-code-name-too-long = 141
- error-code-invalid-seek = 142
- error-code-not-supported = 143
- error-code-too-many-open-files = 144
-
tinkerforge call
red-brick
<uid> get-file-info
<file-id> <session-id>
Parameter: | - <file-id> – Typ: Int, Wertebereich: [0 bis 216 - 1]
- <session-id> – Typ: Int, Wertebereich: [0 bis 216 - 1]
|
Ausgabe: | - error-code – Typ: Int, Wertebereich: Siehe Symbole
- type – Typ: Int, Wertebereich: Siehe Symbole
- name-string-id – Typ: Int, Wertebereich: [0 bis 216 - 1]
- flags – Typ: Int, Wertebereich: Siehe Symbole
- permissions – Typ: Int, Wertebereich: Siehe Symbole
- uid – Typ: Int, Wertebereich: [0 bis 232 - 1]
- gid – Typ: Int, Wertebereich: [0 bis 232 - 1]
- length – Typ: Int, Einheit: 1 B, Wertebereich: [0 bis 264 - 1]
- access-timestamp – Typ: Int, Wertebereich: [0 bis 264 - 1]
- modification-timestamp – Typ: Int, Wertebereich: [0 bis 264 - 1]
- status-change-timestamp – Typ: Int, Wertebereich: [0 bis 264 - 1]
|
Die folgenden Symbole sind für diese Funktion verfügbar:
Für error-code:
- error-code-success = 0
- error-code-unknown-error = 1
- error-code-invalid-operation = 2
- error-code-operation-aborted = 3
- error-code-internal-error = 4
- error-code-unknown-session-id = 5
- error-code-no-free-session-id = 6
- error-code-unknown-object-id = 7
- error-code-no-free-object-id = 8
- error-code-object-is-locked = 9
- error-code-no-more-data = 10
- error-code-wrong-list-item-type = 11
- error-code-program-is-purged = 12
- error-code-invalid-parameter = 128
- error-code-no-free-memory = 129
- error-code-no-free-space = 130
- error-code-access-denied = 121
- error-code-already-exists = 132
- error-code-does-not-exist = 133
- error-code-interrupted = 134
- error-code-is-directory = 135
- error-code-not-a-directory = 136
- error-code-would-block = 137
- error-code-overflow = 138
- error-code-bad-file-descriptor = 139
- error-code-out-of-range = 140
- error-code-name-too-long = 141
- error-code-invalid-seek = 142
- error-code-not-supported = 143
- error-code-too-many-open-files = 144
Für type:
- file-type-unknown = 0
- file-type-regular = 1
- file-type-directory = 2
- file-type-character = 3
- file-type-block = 4
- file-type-fifo = 5
- file-type-symlink = 6
- file-type-socket = 7
- file-type-pipe = 8
Für flags:
- file-flag-read-only = 1
- file-flag-write-only = 2
- file-flag-read-write = 4
- file-flag-append = 8
- file-flag-create = 16
- file-flag-exclusive = 32
- file-flag-non-blocking = 64
- file-flag-truncate = 128
- file-flag-temporary = 256
- file-flag-replace = 512
Für permissions:
- file-permission-user-all = 448
- file-permission-user-read = 256
- file-permission-user-write = 128
- file-permission-user-execute = 64
- file-permission-group-all = 56
- file-permission-group-read = 32
- file-permission-group-write = 16
- file-permission-group-execute = 8
- file-permission-others-all = 7
- file-permission-others-read = 4
- file-permission-others-write = 2
- file-permission-others-execute = 1
-
tinkerforge call
red-brick
<uid> read-file
<file-id> <length-to-read>
Parameter: | - <file-id> – Typ: Int, Wertebereich: [0 bis 216 - 1]
- <length-to-read> – Typ: Int, Einheit: 1 B, Wertebereich: [0 bis 255]
|
Ausgabe: | - error-code – Typ: Int, Wertebereich: Siehe Symbole
- buffer – Typ: Int Array, Länge: 62, Wertebereich: [0 bis 255]
- length-read – Typ: Int, Einheit: 1 B, Wertebereich: [0 bis 255]
|
Die folgenden Symbole sind für diese Funktion verfügbar:
Für error-code:
- error-code-success = 0
- error-code-unknown-error = 1
- error-code-invalid-operation = 2
- error-code-operation-aborted = 3
- error-code-internal-error = 4
- error-code-unknown-session-id = 5
- error-code-no-free-session-id = 6
- error-code-unknown-object-id = 7
- error-code-no-free-object-id = 8
- error-code-object-is-locked = 9
- error-code-no-more-data = 10
- error-code-wrong-list-item-type = 11
- error-code-program-is-purged = 12
- error-code-invalid-parameter = 128
- error-code-no-free-memory = 129
- error-code-no-free-space = 130
- error-code-access-denied = 121
- error-code-already-exists = 132
- error-code-does-not-exist = 133
- error-code-interrupted = 134
- error-code-is-directory = 135
- error-code-not-a-directory = 136
- error-code-would-block = 137
- error-code-overflow = 138
- error-code-bad-file-descriptor = 139
- error-code-out-of-range = 140
- error-code-name-too-long = 141
- error-code-invalid-seek = 142
- error-code-not-supported = 143
- error-code-too-many-open-files = 144
-
tinkerforge call
red-brick
<uid> read-file-async
<file-id> <length-to-read>
Parameter: | - <file-id> – Typ: Int, Wertebereich: [0 bis 216 - 1]
- <length-to-read> – Typ: Int, Einheit: 1 B, Wertebereich: [0 bis 264 - 1]
|
Ausgabe: | |
-
tinkerforge call
red-brick
<uid> abort-async-file-read
<file-id>
Parameter: | - <file-id> – Typ: Int, Wertebereich: [0 bis 216 - 1]
|
Ausgabe: | - error-code – Typ: Int, Wertebereich: Siehe Symbole
|
Die folgenden Symbole sind für diese Funktion verfügbar:
Für error-code:
- error-code-success = 0
- error-code-unknown-error = 1
- error-code-invalid-operation = 2
- error-code-operation-aborted = 3
- error-code-internal-error = 4
- error-code-unknown-session-id = 5
- error-code-no-free-session-id = 6
- error-code-unknown-object-id = 7
- error-code-no-free-object-id = 8
- error-code-object-is-locked = 9
- error-code-no-more-data = 10
- error-code-wrong-list-item-type = 11
- error-code-program-is-purged = 12
- error-code-invalid-parameter = 128
- error-code-no-free-memory = 129
- error-code-no-free-space = 130
- error-code-access-denied = 121
- error-code-already-exists = 132
- error-code-does-not-exist = 133
- error-code-interrupted = 134
- error-code-is-directory = 135
- error-code-not-a-directory = 136
- error-code-would-block = 137
- error-code-overflow = 138
- error-code-bad-file-descriptor = 139
- error-code-out-of-range = 140
- error-code-name-too-long = 141
- error-code-invalid-seek = 142
- error-code-not-supported = 143
- error-code-too-many-open-files = 144
-
tinkerforge call
red-brick
<uid> write-file
<file-id> <buffer> <length-to-write>
Parameter: | - <file-id> – Typ: Int, Wertebereich: [0 bis 216 - 1]
- <buffer> – Typ: Int Array, Länge: 61, Wertebereich: [0 bis 255]
- <length-to-write> – Typ: Int, Einheit: 1 B, Wertebereich: [0 bis 255]
|
Ausgabe: | - error-code – Typ: Int, Wertebereich: Siehe Symbole
- length-written – Typ: Int, Einheit: 1 B, Wertebereich: [0 bis 255]
|
Die folgenden Symbole sind für diese Funktion verfügbar:
Für error-code:
- error-code-success = 0
- error-code-unknown-error = 1
- error-code-invalid-operation = 2
- error-code-operation-aborted = 3
- error-code-internal-error = 4
- error-code-unknown-session-id = 5
- error-code-no-free-session-id = 6
- error-code-unknown-object-id = 7
- error-code-no-free-object-id = 8
- error-code-object-is-locked = 9
- error-code-no-more-data = 10
- error-code-wrong-list-item-type = 11
- error-code-program-is-purged = 12
- error-code-invalid-parameter = 128
- error-code-no-free-memory = 129
- error-code-no-free-space = 130
- error-code-access-denied = 121
- error-code-already-exists = 132
- error-code-does-not-exist = 133
- error-code-interrupted = 134
- error-code-is-directory = 135
- error-code-not-a-directory = 136
- error-code-would-block = 137
- error-code-overflow = 138
- error-code-bad-file-descriptor = 139
- error-code-out-of-range = 140
- error-code-name-too-long = 141
- error-code-invalid-seek = 142
- error-code-not-supported = 143
- error-code-too-many-open-files = 144
-
tinkerforge call
red-brick
<uid> write-file-unchecked
<file-id> <buffer> <length-to-write>
Parameter: | - <file-id> – Typ: Int, Wertebereich: [0 bis 216 - 1]
- <buffer> – Typ: Int Array, Länge: 61, Wertebereich: [0 bis 255]
- <length-to-write> – Typ: Int, Einheit: 1 B, Wertebereich: [0 bis 255]
|
Ausgabe: | |
-
tinkerforge call
red-brick
<uid> write-file-async
<file-id> <buffer> <length-to-write>
Parameter: | - <file-id> – Typ: Int, Wertebereich: [0 bis 216 - 1]
- <buffer> – Typ: Int Array, Länge: 61, Wertebereich: [0 bis 255]
- <length-to-write> – Typ: Int, Einheit: 1 B, Wertebereich: [0 bis 255]
|
Ausgabe: | |
-
tinkerforge call
red-brick
<uid> set-file-position
<file-id> <offset> <origin>
Parameter: | - <file-id> – Typ: Int, Wertebereich: [0 bis 216 - 1]
- <offset> – Typ: Int, Einheit: 1 B, Wertebereich: [-263 bis 263 - 1]
- <origin> – Typ: Int, Wertebereich: Siehe Symbole
|
Ausgabe: | - error-code – Typ: Int, Wertebereich: Siehe Symbole
- position – Typ: Int, Einheit: 1 B, Wertebereich: [0 bis 264 - 1]
|
Die folgenden Symbole sind für diese Funktion verfügbar:
Für <origin>:
- file-origin-beginning = 0
- file-origin-current = 1
- file-origin-end = 2
Für error-code:
- error-code-success = 0
- error-code-unknown-error = 1
- error-code-invalid-operation = 2
- error-code-operation-aborted = 3
- error-code-internal-error = 4
- error-code-unknown-session-id = 5
- error-code-no-free-session-id = 6
- error-code-unknown-object-id = 7
- error-code-no-free-object-id = 8
- error-code-object-is-locked = 9
- error-code-no-more-data = 10
- error-code-wrong-list-item-type = 11
- error-code-program-is-purged = 12
- error-code-invalid-parameter = 128
- error-code-no-free-memory = 129
- error-code-no-free-space = 130
- error-code-access-denied = 121
- error-code-already-exists = 132
- error-code-does-not-exist = 133
- error-code-interrupted = 134
- error-code-is-directory = 135
- error-code-not-a-directory = 136
- error-code-would-block = 137
- error-code-overflow = 138
- error-code-bad-file-descriptor = 139
- error-code-out-of-range = 140
- error-code-name-too-long = 141
- error-code-invalid-seek = 142
- error-code-not-supported = 143
- error-code-too-many-open-files = 144
-
tinkerforge call
red-brick
<uid> get-file-position
<file-id>
Parameter: | - <file-id> – Typ: Int, Wertebereich: [0 bis 216 - 1]
|
Ausgabe: | - error-code – Typ: Int, Wertebereich: Siehe Symbole
- position – Typ: Int, Einheit: 1 B, Wertebereich: [0 bis 264 - 1]
|
Die folgenden Symbole sind für diese Funktion verfügbar:
Für error-code:
- error-code-success = 0
- error-code-unknown-error = 1
- error-code-invalid-operation = 2
- error-code-operation-aborted = 3
- error-code-internal-error = 4
- error-code-unknown-session-id = 5
- error-code-no-free-session-id = 6
- error-code-unknown-object-id = 7
- error-code-no-free-object-id = 8
- error-code-object-is-locked = 9
- error-code-no-more-data = 10
- error-code-wrong-list-item-type = 11
- error-code-program-is-purged = 12
- error-code-invalid-parameter = 128
- error-code-no-free-memory = 129
- error-code-no-free-space = 130
- error-code-access-denied = 121
- error-code-already-exists = 132
- error-code-does-not-exist = 133
- error-code-interrupted = 134
- error-code-is-directory = 135
- error-code-not-a-directory = 136
- error-code-would-block = 137
- error-code-overflow = 138
- error-code-bad-file-descriptor = 139
- error-code-out-of-range = 140
- error-code-name-too-long = 141
- error-code-invalid-seek = 142
- error-code-not-supported = 143
- error-code-too-many-open-files = 144
-
tinkerforge call
red-brick
<uid> set-file-events
<file-id> <events>
Parameter: | - <file-id> – Typ: Int, Wertebereich: [0 bis 216 - 1]
- <events> – Typ: Int, Wertebereich: Siehe Symbole
|
Ausgabe: | - error-code – Typ: Int, Wertebereich: Siehe Symbole
|
Die folgenden Symbole sind für diese Funktion verfügbar:
Für <events>:
- file-event-readable = 1
- file-event-writable = 2
Für error-code:
- error-code-success = 0
- error-code-unknown-error = 1
- error-code-invalid-operation = 2
- error-code-operation-aborted = 3
- error-code-internal-error = 4
- error-code-unknown-session-id = 5
- error-code-no-free-session-id = 6
- error-code-unknown-object-id = 7
- error-code-no-free-object-id = 8
- error-code-object-is-locked = 9
- error-code-no-more-data = 10
- error-code-wrong-list-item-type = 11
- error-code-program-is-purged = 12
- error-code-invalid-parameter = 128
- error-code-no-free-memory = 129
- error-code-no-free-space = 130
- error-code-access-denied = 121
- error-code-already-exists = 132
- error-code-does-not-exist = 133
- error-code-interrupted = 134
- error-code-is-directory = 135
- error-code-not-a-directory = 136
- error-code-would-block = 137
- error-code-overflow = 138
- error-code-bad-file-descriptor = 139
- error-code-out-of-range = 140
- error-code-name-too-long = 141
- error-code-invalid-seek = 142
- error-code-not-supported = 143
- error-code-too-many-open-files = 144
-
tinkerforge call
red-brick
<uid> get-file-events
<file-id>
Parameter: | - <file-id> – Typ: Int, Wertebereich: [0 bis 216 - 1]
|
Ausgabe: | - error-code – Typ: Int, Wertebereich: Siehe Symbole
- events – Typ: Int, Wertebereich: Siehe Symbole
|
Die folgenden Symbole sind für diese Funktion verfügbar:
Für error-code:
- error-code-success = 0
- error-code-unknown-error = 1
- error-code-invalid-operation = 2
- error-code-operation-aborted = 3
- error-code-internal-error = 4
- error-code-unknown-session-id = 5
- error-code-no-free-session-id = 6
- error-code-unknown-object-id = 7
- error-code-no-free-object-id = 8
- error-code-object-is-locked = 9
- error-code-no-more-data = 10
- error-code-wrong-list-item-type = 11
- error-code-program-is-purged = 12
- error-code-invalid-parameter = 128
- error-code-no-free-memory = 129
- error-code-no-free-space = 130
- error-code-access-denied = 121
- error-code-already-exists = 132
- error-code-does-not-exist = 133
- error-code-interrupted = 134
- error-code-is-directory = 135
- error-code-not-a-directory = 136
- error-code-would-block = 137
- error-code-overflow = 138
- error-code-bad-file-descriptor = 139
- error-code-out-of-range = 140
- error-code-name-too-long = 141
- error-code-invalid-seek = 142
- error-code-not-supported = 143
- error-code-too-many-open-files = 144
Für events:
- file-event-readable = 1
- file-event-writable = 2
-
tinkerforge call
red-brick
<uid> open-directory
<name-string-id> <session-id>
Parameter: | - <name-string-id> – Typ: Int, Wertebereich: [0 bis 216 - 1]
- <session-id> – Typ: Int, Wertebereich: [0 bis 216 - 1]
|
Ausgabe: | - error-code – Typ: Int, Wertebereich: Siehe Symbole
- directory-id – Typ: Int, Wertebereich: [0 bis 216 - 1]
|
Die folgenden Symbole sind für diese Funktion verfügbar:
Für error-code:
- error-code-success = 0
- error-code-unknown-error = 1
- error-code-invalid-operation = 2
- error-code-operation-aborted = 3
- error-code-internal-error = 4
- error-code-unknown-session-id = 5
- error-code-no-free-session-id = 6
- error-code-unknown-object-id = 7
- error-code-no-free-object-id = 8
- error-code-object-is-locked = 9
- error-code-no-more-data = 10
- error-code-wrong-list-item-type = 11
- error-code-program-is-purged = 12
- error-code-invalid-parameter = 128
- error-code-no-free-memory = 129
- error-code-no-free-space = 130
- error-code-access-denied = 121
- error-code-already-exists = 132
- error-code-does-not-exist = 133
- error-code-interrupted = 134
- error-code-is-directory = 135
- error-code-not-a-directory = 136
- error-code-would-block = 137
- error-code-overflow = 138
- error-code-bad-file-descriptor = 139
- error-code-out-of-range = 140
- error-code-name-too-long = 141
- error-code-invalid-seek = 142
- error-code-not-supported = 143
- error-code-too-many-open-files = 144
-
tinkerforge call
red-brick
<uid> get-directory-name
<directory-id> <session-id>
Parameter: | - <directory-id> – Typ: Int, Wertebereich: [0 bis 216 - 1]
- <session-id> – Typ: Int, Wertebereich: [0 bis 216 - 1]
|
Ausgabe: | - error-code – Typ: Int, Wertebereich: Siehe Symbole
- name-string-id – Typ: Int, Wertebereich: [0 bis 216 - 1]
|
Die folgenden Symbole sind für diese Funktion verfügbar:
Für error-code:
- error-code-success = 0
- error-code-unknown-error = 1
- error-code-invalid-operation = 2
- error-code-operation-aborted = 3
- error-code-internal-error = 4
- error-code-unknown-session-id = 5
- error-code-no-free-session-id = 6
- error-code-unknown-object-id = 7
- error-code-no-free-object-id = 8
- error-code-object-is-locked = 9
- error-code-no-more-data = 10
- error-code-wrong-list-item-type = 11
- error-code-program-is-purged = 12
- error-code-invalid-parameter = 128
- error-code-no-free-memory = 129
- error-code-no-free-space = 130
- error-code-access-denied = 121
- error-code-already-exists = 132
- error-code-does-not-exist = 133
- error-code-interrupted = 134
- error-code-is-directory = 135
- error-code-not-a-directory = 136
- error-code-would-block = 137
- error-code-overflow = 138
- error-code-bad-file-descriptor = 139
- error-code-out-of-range = 140
- error-code-name-too-long = 141
- error-code-invalid-seek = 142
- error-code-not-supported = 143
- error-code-too-many-open-files = 144
-
tinkerforge call
red-brick
<uid> get-next-directory-entry
<directory-id> <session-id>
Parameter: | - <directory-id> – Typ: Int, Wertebereich: [0 bis 216 - 1]
- <session-id> – Typ: Int, Wertebereich: [0 bis 216 - 1]
|
Ausgabe: | - error-code – Typ: Int, Wertebereich: Siehe Symbole
- name-string-id – Typ: Int, Wertebereich: [0 bis 216 - 1]
- type – Typ: Int, Wertebereich: Siehe Symbole
|
Die folgenden Symbole sind für diese Funktion verfügbar:
Für error-code:
- error-code-success = 0
- error-code-unknown-error = 1
- error-code-invalid-operation = 2
- error-code-operation-aborted = 3
- error-code-internal-error = 4
- error-code-unknown-session-id = 5
- error-code-no-free-session-id = 6
- error-code-unknown-object-id = 7
- error-code-no-free-object-id = 8
- error-code-object-is-locked = 9
- error-code-no-more-data = 10
- error-code-wrong-list-item-type = 11
- error-code-program-is-purged = 12
- error-code-invalid-parameter = 128
- error-code-no-free-memory = 129
- error-code-no-free-space = 130
- error-code-access-denied = 121
- error-code-already-exists = 132
- error-code-does-not-exist = 133
- error-code-interrupted = 134
- error-code-is-directory = 135
- error-code-not-a-directory = 136
- error-code-would-block = 137
- error-code-overflow = 138
- error-code-bad-file-descriptor = 139
- error-code-out-of-range = 140
- error-code-name-too-long = 141
- error-code-invalid-seek = 142
- error-code-not-supported = 143
- error-code-too-many-open-files = 144
Für type:
- directory-entry-type-unknown = 0
- directory-entry-type-regular = 1
- directory-entry-type-directory = 2
- directory-entry-type-character = 3
- directory-entry-type-block = 4
- directory-entry-type-fifo = 5
- directory-entry-type-symlink = 6
- directory-entry-type-socket = 7
-
tinkerforge call
red-brick
<uid> rewind-directory
<directory-id>
Parameter: | - <directory-id> – Typ: Int, Wertebereich: [0 bis 216 - 1]
|
Ausgabe: | - error-code – Typ: Int, Wertebereich: Siehe Symbole
|
Die folgenden Symbole sind für diese Funktion verfügbar:
Für error-code:
- error-code-success = 0
- error-code-unknown-error = 1
- error-code-invalid-operation = 2
- error-code-operation-aborted = 3
- error-code-internal-error = 4
- error-code-unknown-session-id = 5
- error-code-no-free-session-id = 6
- error-code-unknown-object-id = 7
- error-code-no-free-object-id = 8
- error-code-object-is-locked = 9
- error-code-no-more-data = 10
- error-code-wrong-list-item-type = 11
- error-code-program-is-purged = 12
- error-code-invalid-parameter = 128
- error-code-no-free-memory = 129
- error-code-no-free-space = 130
- error-code-access-denied = 121
- error-code-already-exists = 132
- error-code-does-not-exist = 133
- error-code-interrupted = 134
- error-code-is-directory = 135
- error-code-not-a-directory = 136
- error-code-would-block = 137
- error-code-overflow = 138
- error-code-bad-file-descriptor = 139
- error-code-out-of-range = 140
- error-code-name-too-long = 141
- error-code-invalid-seek = 142
- error-code-not-supported = 143
- error-code-too-many-open-files = 144
-
tinkerforge call
red-brick
<uid> create-directory
<name-string-id> <flags> <permissions> <uid> <gid>
Parameter: | - <name-string-id> – Typ: Int, Wertebereich: [0 bis 216 - 1]
- <flags> – Typ: Int, Wertebereich: Siehe Symbole
- <permissions> – Typ: Int, Wertebereich: Siehe Symbole
- <uid> – Typ: Int, Wertebereich: [0 bis 232 - 1]
- <gid> – Typ: Int, Wertebereich: [0 bis 232 - 1]
|
Ausgabe: | - error-code – Typ: Int, Wertebereich: Siehe Symbole
|
Die folgenden Symbole sind für diese Funktion verfügbar:
Für <flags>:
- directory-flag-recursive = 1
- directory-flag-exclusive = 2
Für <permissions>:
- file-permission-user-all = 448
- file-permission-user-read = 256
- file-permission-user-write = 128
- file-permission-user-execute = 64
- file-permission-group-all = 56
- file-permission-group-read = 32
- file-permission-group-write = 16
- file-permission-group-execute = 8
- file-permission-others-all = 7
- file-permission-others-read = 4
- file-permission-others-write = 2
- file-permission-others-execute = 1
Für error-code:
- error-code-success = 0
- error-code-unknown-error = 1
- error-code-invalid-operation = 2
- error-code-operation-aborted = 3
- error-code-internal-error = 4
- error-code-unknown-session-id = 5
- error-code-no-free-session-id = 6
- error-code-unknown-object-id = 7
- error-code-no-free-object-id = 8
- error-code-object-is-locked = 9
- error-code-no-more-data = 10
- error-code-wrong-list-item-type = 11
- error-code-program-is-purged = 12
- error-code-invalid-parameter = 128
- error-code-no-free-memory = 129
- error-code-no-free-space = 130
- error-code-access-denied = 121
- error-code-already-exists = 132
- error-code-does-not-exist = 133
- error-code-interrupted = 134
- error-code-is-directory = 135
- error-code-not-a-directory = 136
- error-code-would-block = 137
- error-code-overflow = 138
- error-code-bad-file-descriptor = 139
- error-code-out-of-range = 140
- error-code-name-too-long = 141
- error-code-invalid-seek = 142
- error-code-not-supported = 143
- error-code-too-many-open-files = 144
-
tinkerforge call
red-brick
<uid> get-processes
<session-id>
Parameter: | - <session-id> – Typ: Int, Wertebereich: [0 bis 216 - 1]
|
Ausgabe: | - error-code – Typ: Int, Wertebereich: Siehe Symbole
- processes-list-id – Typ: Int, Wertebereich: [0 bis 216 - 1]
|
Die folgenden Symbole sind für diese Funktion verfügbar:
Für error-code:
- error-code-success = 0
- error-code-unknown-error = 1
- error-code-invalid-operation = 2
- error-code-operation-aborted = 3
- error-code-internal-error = 4
- error-code-unknown-session-id = 5
- error-code-no-free-session-id = 6
- error-code-unknown-object-id = 7
- error-code-no-free-object-id = 8
- error-code-object-is-locked = 9
- error-code-no-more-data = 10
- error-code-wrong-list-item-type = 11
- error-code-program-is-purged = 12
- error-code-invalid-parameter = 128
- error-code-no-free-memory = 129
- error-code-no-free-space = 130
- error-code-access-denied = 121
- error-code-already-exists = 132
- error-code-does-not-exist = 133
- error-code-interrupted = 134
- error-code-is-directory = 135
- error-code-not-a-directory = 136
- error-code-would-block = 137
- error-code-overflow = 138
- error-code-bad-file-descriptor = 139
- error-code-out-of-range = 140
- error-code-name-too-long = 141
- error-code-invalid-seek = 142
- error-code-not-supported = 143
- error-code-too-many-open-files = 144
-
tinkerforge call
red-brick
<uid> spawn-process
<executable-string-id> <arguments-list-id> <environment-list-id> <working-directory-string-id> <uid> <gid> <stdin-file-id> <stdout-file-id> <stderr-file-id> <session-id>
Parameter: | - <executable-string-id> – Typ: Int, Wertebereich: [0 bis 216 - 1]
- <arguments-list-id> – Typ: Int, Wertebereich: [0 bis 216 - 1]
- <environment-list-id> – Typ: Int, Wertebereich: [0 bis 216 - 1]
- <working-directory-string-id> – Typ: Int, Wertebereich: [0 bis 216 - 1]
- <uid> – Typ: Int, Wertebereich: [0 bis 232 - 1]
- <gid> – Typ: Int, Wertebereich: [0 bis 232 - 1]
- <stdin-file-id> – Typ: Int, Wertebereich: [0 bis 216 - 1]
- <stdout-file-id> – Typ: Int, Wertebereich: [0 bis 216 - 1]
- <stderr-file-id> – Typ: Int, Wertebereich: [0 bis 216 - 1]
- <session-id> – Typ: Int, Wertebereich: [0 bis 216 - 1]
|
Ausgabe: | - error-code – Typ: Int, Wertebereich: Siehe Symbole
- process-id – Typ: Int, Wertebereich: [0 bis 216 - 1]
|
Die folgenden Symbole sind für diese Funktion verfügbar:
Für error-code:
- error-code-success = 0
- error-code-unknown-error = 1
- error-code-invalid-operation = 2
- error-code-operation-aborted = 3
- error-code-internal-error = 4
- error-code-unknown-session-id = 5
- error-code-no-free-session-id = 6
- error-code-unknown-object-id = 7
- error-code-no-free-object-id = 8
- error-code-object-is-locked = 9
- error-code-no-more-data = 10
- error-code-wrong-list-item-type = 11
- error-code-program-is-purged = 12
- error-code-invalid-parameter = 128
- error-code-no-free-memory = 129
- error-code-no-free-space = 130
- error-code-access-denied = 121
- error-code-already-exists = 132
- error-code-does-not-exist = 133
- error-code-interrupted = 134
- error-code-is-directory = 135
- error-code-not-a-directory = 136
- error-code-would-block = 137
- error-code-overflow = 138
- error-code-bad-file-descriptor = 139
- error-code-out-of-range = 140
- error-code-name-too-long = 141
- error-code-invalid-seek = 142
- error-code-not-supported = 143
- error-code-too-many-open-files = 144
-
tinkerforge call
red-brick
<uid> kill-process
<process-id> <signal>
Parameter: | - <process-id> – Typ: Int, Wertebereich: [0 bis 216 - 1]
- <signal> – Typ: Int, Wertebereich: Siehe Symbole
|
Ausgabe: | - error-code – Typ: Int, Wertebereich: Siehe Symbole
|
Die folgenden Symbole sind für diese Funktion verfügbar:
Für <signal>:
- process-signal-interrupt = 2
- process-signal-quit = 3
- process-signal-abort = 6
- process-signal-kill = 9
- process-signal-user1 = 10
- process-signal-user2 = 12
- process-signal-terminate = 15
- process-signal-continue = 18
- process-signal-stop = 19
Für error-code:
- error-code-success = 0
- error-code-unknown-error = 1
- error-code-invalid-operation = 2
- error-code-operation-aborted = 3
- error-code-internal-error = 4
- error-code-unknown-session-id = 5
- error-code-no-free-session-id = 6
- error-code-unknown-object-id = 7
- error-code-no-free-object-id = 8
- error-code-object-is-locked = 9
- error-code-no-more-data = 10
- error-code-wrong-list-item-type = 11
- error-code-program-is-purged = 12
- error-code-invalid-parameter = 128
- error-code-no-free-memory = 129
- error-code-no-free-space = 130
- error-code-access-denied = 121
- error-code-already-exists = 132
- error-code-does-not-exist = 133
- error-code-interrupted = 134
- error-code-is-directory = 135
- error-code-not-a-directory = 136
- error-code-would-block = 137
- error-code-overflow = 138
- error-code-bad-file-descriptor = 139
- error-code-out-of-range = 140
- error-code-name-too-long = 141
- error-code-invalid-seek = 142
- error-code-not-supported = 143
- error-code-too-many-open-files = 144
-
tinkerforge call
red-brick
<uid> get-process-command
<process-id> <session-id>
Parameter: | - <process-id> – Typ: Int, Wertebereich: [0 bis 216 - 1]
- <session-id> – Typ: Int, Wertebereich: [0 bis 216 - 1]
|
Ausgabe: | - error-code – Typ: Int, Wertebereich: Siehe Symbole
- executable-string-id – Typ: Int, Wertebereich: [0 bis 216 - 1]
- arguments-list-id – Typ: Int, Wertebereich: [0 bis 216 - 1]
- environment-list-id – Typ: Int, Wertebereich: [0 bis 216 - 1]
- working-directory-string-id – Typ: Int, Wertebereich: [0 bis 216 - 1]
|
Die folgenden Symbole sind für diese Funktion verfügbar:
Für error-code:
- error-code-success = 0
- error-code-unknown-error = 1
- error-code-invalid-operation = 2
- error-code-operation-aborted = 3
- error-code-internal-error = 4
- error-code-unknown-session-id = 5
- error-code-no-free-session-id = 6
- error-code-unknown-object-id = 7
- error-code-no-free-object-id = 8
- error-code-object-is-locked = 9
- error-code-no-more-data = 10
- error-code-wrong-list-item-type = 11
- error-code-program-is-purged = 12
- error-code-invalid-parameter = 128
- error-code-no-free-memory = 129
- error-code-no-free-space = 130
- error-code-access-denied = 121
- error-code-already-exists = 132
- error-code-does-not-exist = 133
- error-code-interrupted = 134
- error-code-is-directory = 135
- error-code-not-a-directory = 136
- error-code-would-block = 137
- error-code-overflow = 138
- error-code-bad-file-descriptor = 139
- error-code-out-of-range = 140
- error-code-name-too-long = 141
- error-code-invalid-seek = 142
- error-code-not-supported = 143
- error-code-too-many-open-files = 144
-
tinkerforge call
red-brick
<uid> get-process-identity
<process-id>
Parameter: | - <process-id> – Typ: Int, Wertebereich: [0 bis 216 - 1]
|
Ausgabe: | - error-code – Typ: Int, Wertebereich: Siehe Symbole
- pid – Typ: Int, Wertebereich: [0 bis 232 - 1]
- uid – Typ: Int, Wertebereich: [0 bis 232 - 1]
- gid – Typ: Int, Wertebereich: [0 bis 232 - 1]
|
Die folgenden Symbole sind für diese Funktion verfügbar:
Für error-code:
- error-code-success = 0
- error-code-unknown-error = 1
- error-code-invalid-operation = 2
- error-code-operation-aborted = 3
- error-code-internal-error = 4
- error-code-unknown-session-id = 5
- error-code-no-free-session-id = 6
- error-code-unknown-object-id = 7
- error-code-no-free-object-id = 8
- error-code-object-is-locked = 9
- error-code-no-more-data = 10
- error-code-wrong-list-item-type = 11
- error-code-program-is-purged = 12
- error-code-invalid-parameter = 128
- error-code-no-free-memory = 129
- error-code-no-free-space = 130
- error-code-access-denied = 121
- error-code-already-exists = 132
- error-code-does-not-exist = 133
- error-code-interrupted = 134
- error-code-is-directory = 135
- error-code-not-a-directory = 136
- error-code-would-block = 137
- error-code-overflow = 138
- error-code-bad-file-descriptor = 139
- error-code-out-of-range = 140
- error-code-name-too-long = 141
- error-code-invalid-seek = 142
- error-code-not-supported = 143
- error-code-too-many-open-files = 144
-
tinkerforge call
red-brick
<uid> get-process-stdio
<process-id> <session-id>
Parameter: | - <process-id> – Typ: Int, Wertebereich: [0 bis 216 - 1]
- <session-id> – Typ: Int, Wertebereich: [0 bis 216 - 1]
|
Ausgabe: | - error-code – Typ: Int, Wertebereich: Siehe Symbole
- stdin-file-id – Typ: Int, Wertebereich: [0 bis 216 - 1]
- stdout-file-id – Typ: Int, Wertebereich: [0 bis 216 - 1]
- stderr-file-id – Typ: Int, Wertebereich: [0 bis 216 - 1]
|
Die folgenden Symbole sind für diese Funktion verfügbar:
Für error-code:
- error-code-success = 0
- error-code-unknown-error = 1
- error-code-invalid-operation = 2
- error-code-operation-aborted = 3
- error-code-internal-error = 4
- error-code-unknown-session-id = 5
- error-code-no-free-session-id = 6
- error-code-unknown-object-id = 7
- error-code-no-free-object-id = 8
- error-code-object-is-locked = 9
- error-code-no-more-data = 10
- error-code-wrong-list-item-type = 11
- error-code-program-is-purged = 12
- error-code-invalid-parameter = 128
- error-code-no-free-memory = 129
- error-code-no-free-space = 130
- error-code-access-denied = 121
- error-code-already-exists = 132
- error-code-does-not-exist = 133
- error-code-interrupted = 134
- error-code-is-directory = 135
- error-code-not-a-directory = 136
- error-code-would-block = 137
- error-code-overflow = 138
- error-code-bad-file-descriptor = 139
- error-code-out-of-range = 140
- error-code-name-too-long = 141
- error-code-invalid-seek = 142
- error-code-not-supported = 143
- error-code-too-many-open-files = 144
-
tinkerforge call
red-brick
<uid> get-process-state
<process-id>
Parameter: | - <process-id> – Typ: Int, Wertebereich: [0 bis 216 - 1]
|
Ausgabe: | - error-code – Typ: Int, Wertebereich: Siehe Symbole
- state – Typ: Int, Wertebereich: Siehe Symbole
- timestamp – Typ: Int, Wertebereich: [0 bis 264 - 1]
- exit-code – Typ: Int, Wertebereich: [0 bis 255]
|
Die folgenden Symbole sind für diese Funktion verfügbar:
Für error-code:
- error-code-success = 0
- error-code-unknown-error = 1
- error-code-invalid-operation = 2
- error-code-operation-aborted = 3
- error-code-internal-error = 4
- error-code-unknown-session-id = 5
- error-code-no-free-session-id = 6
- error-code-unknown-object-id = 7
- error-code-no-free-object-id = 8
- error-code-object-is-locked = 9
- error-code-no-more-data = 10
- error-code-wrong-list-item-type = 11
- error-code-program-is-purged = 12
- error-code-invalid-parameter = 128
- error-code-no-free-memory = 129
- error-code-no-free-space = 130
- error-code-access-denied = 121
- error-code-already-exists = 132
- error-code-does-not-exist = 133
- error-code-interrupted = 134
- error-code-is-directory = 135
- error-code-not-a-directory = 136
- error-code-would-block = 137
- error-code-overflow = 138
- error-code-bad-file-descriptor = 139
- error-code-out-of-range = 140
- error-code-name-too-long = 141
- error-code-invalid-seek = 142
- error-code-not-supported = 143
- error-code-too-many-open-files = 144
Für state:
- process-state-unknown = 0
- process-state-running = 1
- process-state-error = 2
- process-state-exited = 3
- process-state-killed = 4
- process-state-stopped = 5
-
tinkerforge call
red-brick
<uid> get-programs
<session-id>
Parameter: | - <session-id> – Typ: Int, Wertebereich: [0 bis 216 - 1]
|
Ausgabe: | - error-code – Typ: Int, Wertebereich: Siehe Symbole
- programs-list-id – Typ: Int, Wertebereich: [0 bis 216 - 1]
|
Die folgenden Symbole sind für diese Funktion verfügbar:
Für error-code:
- error-code-success = 0
- error-code-unknown-error = 1
- error-code-invalid-operation = 2
- error-code-operation-aborted = 3
- error-code-internal-error = 4
- error-code-unknown-session-id = 5
- error-code-no-free-session-id = 6
- error-code-unknown-object-id = 7
- error-code-no-free-object-id = 8
- error-code-object-is-locked = 9
- error-code-no-more-data = 10
- error-code-wrong-list-item-type = 11
- error-code-program-is-purged = 12
- error-code-invalid-parameter = 128
- error-code-no-free-memory = 129
- error-code-no-free-space = 130
- error-code-access-denied = 121
- error-code-already-exists = 132
- error-code-does-not-exist = 133
- error-code-interrupted = 134
- error-code-is-directory = 135
- error-code-not-a-directory = 136
- error-code-would-block = 137
- error-code-overflow = 138
- error-code-bad-file-descriptor = 139
- error-code-out-of-range = 140
- error-code-name-too-long = 141
- error-code-invalid-seek = 142
- error-code-not-supported = 143
- error-code-too-many-open-files = 144
-
tinkerforge call
red-brick
<uid> define-program
<identifier-string-id> <session-id>
Parameter: | - <identifier-string-id> – Typ: Int, Wertebereich: [0 bis 216 - 1]
- <session-id> – Typ: Int, Wertebereich: [0 bis 216 - 1]
|
Ausgabe: | - error-code – Typ: Int, Wertebereich: Siehe Symbole
- program-id – Typ: Int, Wertebereich: [0 bis 216 - 1]
|
Die folgenden Symbole sind für diese Funktion verfügbar:
Für error-code:
- error-code-success = 0
- error-code-unknown-error = 1
- error-code-invalid-operation = 2
- error-code-operation-aborted = 3
- error-code-internal-error = 4
- error-code-unknown-session-id = 5
- error-code-no-free-session-id = 6
- error-code-unknown-object-id = 7
- error-code-no-free-object-id = 8
- error-code-object-is-locked = 9
- error-code-no-more-data = 10
- error-code-wrong-list-item-type = 11
- error-code-program-is-purged = 12
- error-code-invalid-parameter = 128
- error-code-no-free-memory = 129
- error-code-no-free-space = 130
- error-code-access-denied = 121
- error-code-already-exists = 132
- error-code-does-not-exist = 133
- error-code-interrupted = 134
- error-code-is-directory = 135
- error-code-not-a-directory = 136
- error-code-would-block = 137
- error-code-overflow = 138
- error-code-bad-file-descriptor = 139
- error-code-out-of-range = 140
- error-code-name-too-long = 141
- error-code-invalid-seek = 142
- error-code-not-supported = 143
- error-code-too-many-open-files = 144
-
tinkerforge call
red-brick
<uid> purge-program
<program-id> <cookie>
Parameter: | - <program-id> – Typ: Int, Wertebereich: [0 bis 216 - 1]
- <cookie> – Typ: Int, Wertebereich: [0 bis 232 - 1]
|
Ausgabe: | - error-code – Typ: Int, Wertebereich: Siehe Symbole
|
Die folgenden Symbole sind für diese Funktion verfügbar:
Für error-code:
- error-code-success = 0
- error-code-unknown-error = 1
- error-code-invalid-operation = 2
- error-code-operation-aborted = 3
- error-code-internal-error = 4
- error-code-unknown-session-id = 5
- error-code-no-free-session-id = 6
- error-code-unknown-object-id = 7
- error-code-no-free-object-id = 8
- error-code-object-is-locked = 9
- error-code-no-more-data = 10
- error-code-wrong-list-item-type = 11
- error-code-program-is-purged = 12
- error-code-invalid-parameter = 128
- error-code-no-free-memory = 129
- error-code-no-free-space = 130
- error-code-access-denied = 121
- error-code-already-exists = 132
- error-code-does-not-exist = 133
- error-code-interrupted = 134
- error-code-is-directory = 135
- error-code-not-a-directory = 136
- error-code-would-block = 137
- error-code-overflow = 138
- error-code-bad-file-descriptor = 139
- error-code-out-of-range = 140
- error-code-name-too-long = 141
- error-code-invalid-seek = 142
- error-code-not-supported = 143
- error-code-too-many-open-files = 144
-
tinkerforge call
red-brick
<uid> get-program-identifier
<program-id> <session-id>
Parameter: | - <program-id> – Typ: Int, Wertebereich: [0 bis 216 - 1]
- <session-id> – Typ: Int, Wertebereich: [0 bis 216 - 1]
|
Ausgabe: | - error-code – Typ: Int, Wertebereich: Siehe Symbole
- identifier-string-id – Typ: Int, Wertebereich: [0 bis 216 - 1]
|
Die folgenden Symbole sind für diese Funktion verfügbar:
Für error-code:
- error-code-success = 0
- error-code-unknown-error = 1
- error-code-invalid-operation = 2
- error-code-operation-aborted = 3
- error-code-internal-error = 4
- error-code-unknown-session-id = 5
- error-code-no-free-session-id = 6
- error-code-unknown-object-id = 7
- error-code-no-free-object-id = 8
- error-code-object-is-locked = 9
- error-code-no-more-data = 10
- error-code-wrong-list-item-type = 11
- error-code-program-is-purged = 12
- error-code-invalid-parameter = 128
- error-code-no-free-memory = 129
- error-code-no-free-space = 130
- error-code-access-denied = 121
- error-code-already-exists = 132
- error-code-does-not-exist = 133
- error-code-interrupted = 134
- error-code-is-directory = 135
- error-code-not-a-directory = 136
- error-code-would-block = 137
- error-code-overflow = 138
- error-code-bad-file-descriptor = 139
- error-code-out-of-range = 140
- error-code-name-too-long = 141
- error-code-invalid-seek = 142
- error-code-not-supported = 143
- error-code-too-many-open-files = 144
-
tinkerforge call
red-brick
<uid> get-program-root-directory
<program-id> <session-id>
Parameter: | - <program-id> – Typ: Int, Wertebereich: [0 bis 216 - 1]
- <session-id> – Typ: Int, Wertebereich: [0 bis 216 - 1]
|
Ausgabe: | - error-code – Typ: Int, Wertebereich: Siehe Symbole
- root-directory-string-id – Typ: Int, Wertebereich: [0 bis 216 - 1]
|
Die folgenden Symbole sind für diese Funktion verfügbar:
Für error-code:
- error-code-success = 0
- error-code-unknown-error = 1
- error-code-invalid-operation = 2
- error-code-operation-aborted = 3
- error-code-internal-error = 4
- error-code-unknown-session-id = 5
- error-code-no-free-session-id = 6
- error-code-unknown-object-id = 7
- error-code-no-free-object-id = 8
- error-code-object-is-locked = 9
- error-code-no-more-data = 10
- error-code-wrong-list-item-type = 11
- error-code-program-is-purged = 12
- error-code-invalid-parameter = 128
- error-code-no-free-memory = 129
- error-code-no-free-space = 130
- error-code-access-denied = 121
- error-code-already-exists = 132
- error-code-does-not-exist = 133
- error-code-interrupted = 134
- error-code-is-directory = 135
- error-code-not-a-directory = 136
- error-code-would-block = 137
- error-code-overflow = 138
- error-code-bad-file-descriptor = 139
- error-code-out-of-range = 140
- error-code-name-too-long = 141
- error-code-invalid-seek = 142
- error-code-not-supported = 143
- error-code-too-many-open-files = 144
-
tinkerforge call
red-brick
<uid> set-program-command
<program-id> <executable-string-id> <arguments-list-id> <environment-list-id> <working-directory-string-id>
Parameter: | - <program-id> – Typ: Int, Wertebereich: [0 bis 216 - 1]
- <executable-string-id> – Typ: Int, Wertebereich: [0 bis 216 - 1]
- <arguments-list-id> – Typ: Int, Wertebereich: [0 bis 216 - 1]
- <environment-list-id> – Typ: Int, Wertebereich: [0 bis 216 - 1]
- <working-directory-string-id> – Typ: Int, Wertebereich: [0 bis 216 - 1]
|
Ausgabe: | - error-code – Typ: Int, Wertebereich: Siehe Symbole
|
Die folgenden Symbole sind für diese Funktion verfügbar:
Für error-code:
- error-code-success = 0
- error-code-unknown-error = 1
- error-code-invalid-operation = 2
- error-code-operation-aborted = 3
- error-code-internal-error = 4
- error-code-unknown-session-id = 5
- error-code-no-free-session-id = 6
- error-code-unknown-object-id = 7
- error-code-no-free-object-id = 8
- error-code-object-is-locked = 9
- error-code-no-more-data = 10
- error-code-wrong-list-item-type = 11
- error-code-program-is-purged = 12
- error-code-invalid-parameter = 128
- error-code-no-free-memory = 129
- error-code-no-free-space = 130
- error-code-access-denied = 121
- error-code-already-exists = 132
- error-code-does-not-exist = 133
- error-code-interrupted = 134
- error-code-is-directory = 135
- error-code-not-a-directory = 136
- error-code-would-block = 137
- error-code-overflow = 138
- error-code-bad-file-descriptor = 139
- error-code-out-of-range = 140
- error-code-name-too-long = 141
- error-code-invalid-seek = 142
- error-code-not-supported = 143
- error-code-too-many-open-files = 144
-
tinkerforge call
red-brick
<uid> get-program-command
<program-id> <session-id>
Parameter: | - <program-id> – Typ: Int, Wertebereich: [0 bis 216 - 1]
- <session-id> – Typ: Int, Wertebereich: [0 bis 216 - 1]
|
Ausgabe: | - error-code – Typ: Int, Wertebereich: Siehe Symbole
- executable-string-id – Typ: Int, Wertebereich: [0 bis 216 - 1]
- arguments-list-id – Typ: Int, Wertebereich: [0 bis 216 - 1]
- environment-list-id – Typ: Int, Wertebereich: [0 bis 216 - 1]
- working-directory-string-id – Typ: Int, Wertebereich: [0 bis 216 - 1]
|
Die folgenden Symbole sind für diese Funktion verfügbar:
Für error-code:
- error-code-success = 0
- error-code-unknown-error = 1
- error-code-invalid-operation = 2
- error-code-operation-aborted = 3
- error-code-internal-error = 4
- error-code-unknown-session-id = 5
- error-code-no-free-session-id = 6
- error-code-unknown-object-id = 7
- error-code-no-free-object-id = 8
- error-code-object-is-locked = 9
- error-code-no-more-data = 10
- error-code-wrong-list-item-type = 11
- error-code-program-is-purged = 12
- error-code-invalid-parameter = 128
- error-code-no-free-memory = 129
- error-code-no-free-space = 130
- error-code-access-denied = 121
- error-code-already-exists = 132
- error-code-does-not-exist = 133
- error-code-interrupted = 134
- error-code-is-directory = 135
- error-code-not-a-directory = 136
- error-code-would-block = 137
- error-code-overflow = 138
- error-code-bad-file-descriptor = 139
- error-code-out-of-range = 140
- error-code-name-too-long = 141
- error-code-invalid-seek = 142
- error-code-not-supported = 143
- error-code-too-many-open-files = 144
-
tinkerforge call
red-brick
<uid> set-program-stdio-redirection
<program-id> <stdin-redirection> <stdin-file-name-string-id> <stdout-redirection> <stdout-file-name-string-id> <stderr-redirection> <stderr-file-name-string-id>
Parameter: | - <program-id> – Typ: Int, Wertebereich: [0 bis 216 - 1]
- <stdin-redirection> – Typ: Int, Wertebereich: Siehe Symbole
- <stdin-file-name-string-id> – Typ: Int, Wertebereich: [0 bis 216 - 1]
- <stdout-redirection> – Typ: Int, Wertebereich: Siehe Symbole
- <stdout-file-name-string-id> – Typ: Int, Wertebereich: [0 bis 216 - 1]
- <stderr-redirection> – Typ: Int, Wertebereich: Siehe Symbole
- <stderr-file-name-string-id> – Typ: Int, Wertebereich: [0 bis 216 - 1]
|
Ausgabe: | - error-code – Typ: Int, Wertebereich: Siehe Symbole
|
Die folgenden Symbole sind für diese Funktion verfügbar:
Für <stdin-redirection>:
- program-stdio-redirection-dev-null = 0
- program-stdio-redirection-pipe = 1
- program-stdio-redirection-file = 2
- program-stdio-redirection-individual-log = 3
- program-stdio-redirection-continuous-log = 4
- program-stdio-redirection-stdout = 5
Für <stdout-redirection>:
- program-stdio-redirection-dev-null = 0
- program-stdio-redirection-pipe = 1
- program-stdio-redirection-file = 2
- program-stdio-redirection-individual-log = 3
- program-stdio-redirection-continuous-log = 4
- program-stdio-redirection-stdout = 5
Für <stderr-redirection>:
- program-stdio-redirection-dev-null = 0
- program-stdio-redirection-pipe = 1
- program-stdio-redirection-file = 2
- program-stdio-redirection-individual-log = 3
- program-stdio-redirection-continuous-log = 4
- program-stdio-redirection-stdout = 5
Für error-code:
- error-code-success = 0
- error-code-unknown-error = 1
- error-code-invalid-operation = 2
- error-code-operation-aborted = 3
- error-code-internal-error = 4
- error-code-unknown-session-id = 5
- error-code-no-free-session-id = 6
- error-code-unknown-object-id = 7
- error-code-no-free-object-id = 8
- error-code-object-is-locked = 9
- error-code-no-more-data = 10
- error-code-wrong-list-item-type = 11
- error-code-program-is-purged = 12
- error-code-invalid-parameter = 128
- error-code-no-free-memory = 129
- error-code-no-free-space = 130
- error-code-access-denied = 121
- error-code-already-exists = 132
- error-code-does-not-exist = 133
- error-code-interrupted = 134
- error-code-is-directory = 135
- error-code-not-a-directory = 136
- error-code-would-block = 137
- error-code-overflow = 138
- error-code-bad-file-descriptor = 139
- error-code-out-of-range = 140
- error-code-name-too-long = 141
- error-code-invalid-seek = 142
- error-code-not-supported = 143
- error-code-too-many-open-files = 144
-
tinkerforge call
red-brick
<uid> get-program-stdio-redirection
<program-id> <session-id>
Parameter: | - <program-id> – Typ: Int, Wertebereich: [0 bis 216 - 1]
- <session-id> – Typ: Int, Wertebereich: [0 bis 216 - 1]
|
Ausgabe: | - error-code – Typ: Int, Wertebereich: Siehe Symbole
- stdin-redirection – Typ: Int, Wertebereich: Siehe Symbole
- stdin-file-name-string-id – Typ: Int, Wertebereich: [0 bis 216 - 1]
- stdout-redirection – Typ: Int, Wertebereich: Siehe Symbole
- stdout-file-name-string-id – Typ: Int, Wertebereich: [0 bis 216 - 1]
- stderr-redirection – Typ: Int, Wertebereich: Siehe Symbole
- stderr-file-name-string-id – Typ: Int, Wertebereich: [0 bis 216 - 1]
|
Die folgenden Symbole sind für diese Funktion verfügbar:
Für error-code:
- error-code-success = 0
- error-code-unknown-error = 1
- error-code-invalid-operation = 2
- error-code-operation-aborted = 3
- error-code-internal-error = 4
- error-code-unknown-session-id = 5
- error-code-no-free-session-id = 6
- error-code-unknown-object-id = 7
- error-code-no-free-object-id = 8
- error-code-object-is-locked = 9
- error-code-no-more-data = 10
- error-code-wrong-list-item-type = 11
- error-code-program-is-purged = 12
- error-code-invalid-parameter = 128
- error-code-no-free-memory = 129
- error-code-no-free-space = 130
- error-code-access-denied = 121
- error-code-already-exists = 132
- error-code-does-not-exist = 133
- error-code-interrupted = 134
- error-code-is-directory = 135
- error-code-not-a-directory = 136
- error-code-would-block = 137
- error-code-overflow = 138
- error-code-bad-file-descriptor = 139
- error-code-out-of-range = 140
- error-code-name-too-long = 141
- error-code-invalid-seek = 142
- error-code-not-supported = 143
- error-code-too-many-open-files = 144
Für stdin-redirection:
- program-stdio-redirection-dev-null = 0
- program-stdio-redirection-pipe = 1
- program-stdio-redirection-file = 2
- program-stdio-redirection-individual-log = 3
- program-stdio-redirection-continuous-log = 4
- program-stdio-redirection-stdout = 5
Für stdout-redirection:
- program-stdio-redirection-dev-null = 0
- program-stdio-redirection-pipe = 1
- program-stdio-redirection-file = 2
- program-stdio-redirection-individual-log = 3
- program-stdio-redirection-continuous-log = 4
- program-stdio-redirection-stdout = 5
Für stderr-redirection:
- program-stdio-redirection-dev-null = 0
- program-stdio-redirection-pipe = 1
- program-stdio-redirection-file = 2
- program-stdio-redirection-individual-log = 3
- program-stdio-redirection-continuous-log = 4
- program-stdio-redirection-stdout = 5
-
tinkerforge call
red-brick
<uid> set-program-schedule
<program-id> <start-mode> <continue-after-error> <start-interval> <start-fields-string-id>
Parameter: | - <program-id> – Typ: Int, Wertebereich: [0 bis 216 - 1]
- <start-mode> – Typ: Int, Wertebereich: Siehe Symbole
- <continue-after-error> – Typ: Bool
- <start-interval> – Typ: Int, Wertebereich: [0 bis 232 - 1]
- <start-fields-string-id> – Typ: Int, Wertebereich: [0 bis 216 - 1]
|
Ausgabe: | - error-code – Typ: Int, Wertebereich: Siehe Symbole
|
Die folgenden Symbole sind für diese Funktion verfügbar:
Für <start-mode>:
- program-start-mode-never = 0
- program-start-mode-always = 1
- program-start-mode-interval = 2
- program-start-mode-cron = 3
Für error-code:
- error-code-success = 0
- error-code-unknown-error = 1
- error-code-invalid-operation = 2
- error-code-operation-aborted = 3
- error-code-internal-error = 4
- error-code-unknown-session-id = 5
- error-code-no-free-session-id = 6
- error-code-unknown-object-id = 7
- error-code-no-free-object-id = 8
- error-code-object-is-locked = 9
- error-code-no-more-data = 10
- error-code-wrong-list-item-type = 11
- error-code-program-is-purged = 12
- error-code-invalid-parameter = 128
- error-code-no-free-memory = 129
- error-code-no-free-space = 130
- error-code-access-denied = 121
- error-code-already-exists = 132
- error-code-does-not-exist = 133
- error-code-interrupted = 134
- error-code-is-directory = 135
- error-code-not-a-directory = 136
- error-code-would-block = 137
- error-code-overflow = 138
- error-code-bad-file-descriptor = 139
- error-code-out-of-range = 140
- error-code-name-too-long = 141
- error-code-invalid-seek = 142
- error-code-not-supported = 143
- error-code-too-many-open-files = 144
-
tinkerforge call
red-brick
<uid> get-program-schedule
<program-id> <session-id>
Parameter: | - <program-id> – Typ: Int, Wertebereich: [0 bis 216 - 1]
- <session-id> – Typ: Int, Wertebereich: [0 bis 216 - 1]
|
Ausgabe: | - error-code – Typ: Int, Wertebereich: Siehe Symbole
- start-mode – Typ: Int, Wertebereich: Siehe Symbole
- continue-after-error – Typ: Bool
- start-interval – Typ: Int, Wertebereich: [0 bis 232 - 1]
- start-fields-string-id – Typ: Int, Wertebereich: [0 bis 216 - 1]
|
Die folgenden Symbole sind für diese Funktion verfügbar:
Für error-code:
- error-code-success = 0
- error-code-unknown-error = 1
- error-code-invalid-operation = 2
- error-code-operation-aborted = 3
- error-code-internal-error = 4
- error-code-unknown-session-id = 5
- error-code-no-free-session-id = 6
- error-code-unknown-object-id = 7
- error-code-no-free-object-id = 8
- error-code-object-is-locked = 9
- error-code-no-more-data = 10
- error-code-wrong-list-item-type = 11
- error-code-program-is-purged = 12
- error-code-invalid-parameter = 128
- error-code-no-free-memory = 129
- error-code-no-free-space = 130
- error-code-access-denied = 121
- error-code-already-exists = 132
- error-code-does-not-exist = 133
- error-code-interrupted = 134
- error-code-is-directory = 135
- error-code-not-a-directory = 136
- error-code-would-block = 137
- error-code-overflow = 138
- error-code-bad-file-descriptor = 139
- error-code-out-of-range = 140
- error-code-name-too-long = 141
- error-code-invalid-seek = 142
- error-code-not-supported = 143
- error-code-too-many-open-files = 144
Für start-mode:
- program-start-mode-never = 0
- program-start-mode-always = 1
- program-start-mode-interval = 2
- program-start-mode-cron = 3
-
tinkerforge call
red-brick
<uid> get-program-scheduler-state
<program-id> <session-id>
Parameter: | - <program-id> – Typ: Int, Wertebereich: [0 bis 216 - 1]
- <session-id> – Typ: Int, Wertebereich: [0 bis 216 - 1]
|
Ausgabe: | - error-code – Typ: Int, Wertebereich: Siehe Symbole
- state – Typ: Int, Wertebereich: Siehe Symbole
- timestamp – Typ: Int, Wertebereich: [0 bis 264 - 1]
- message-string-id – Typ: Int, Wertebereich: [0 bis 216 - 1]
|
Die folgenden Symbole sind für diese Funktion verfügbar:
Für error-code:
- error-code-success = 0
- error-code-unknown-error = 1
- error-code-invalid-operation = 2
- error-code-operation-aborted = 3
- error-code-internal-error = 4
- error-code-unknown-session-id = 5
- error-code-no-free-session-id = 6
- error-code-unknown-object-id = 7
- error-code-no-free-object-id = 8
- error-code-object-is-locked = 9
- error-code-no-more-data = 10
- error-code-wrong-list-item-type = 11
- error-code-program-is-purged = 12
- error-code-invalid-parameter = 128
- error-code-no-free-memory = 129
- error-code-no-free-space = 130
- error-code-access-denied = 121
- error-code-already-exists = 132
- error-code-does-not-exist = 133
- error-code-interrupted = 134
- error-code-is-directory = 135
- error-code-not-a-directory = 136
- error-code-would-block = 137
- error-code-overflow = 138
- error-code-bad-file-descriptor = 139
- error-code-out-of-range = 140
- error-code-name-too-long = 141
- error-code-invalid-seek = 142
- error-code-not-supported = 143
- error-code-too-many-open-files = 144
Für state:
- program-scheduler-state-stopped = 0
- program-scheduler-state-running = 1
-
tinkerforge call
red-brick
<uid> continue-program-schedule
<program-id>
Parameter: | - <program-id> – Typ: Int, Wertebereich: [0 bis 216 - 1]
|
Ausgabe: | - error-code – Typ: Int, Wertebereich: Siehe Symbole
|
Die folgenden Symbole sind für diese Funktion verfügbar:
Für error-code:
- error-code-success = 0
- error-code-unknown-error = 1
- error-code-invalid-operation = 2
- error-code-operation-aborted = 3
- error-code-internal-error = 4
- error-code-unknown-session-id = 5
- error-code-no-free-session-id = 6
- error-code-unknown-object-id = 7
- error-code-no-free-object-id = 8
- error-code-object-is-locked = 9
- error-code-no-more-data = 10
- error-code-wrong-list-item-type = 11
- error-code-program-is-purged = 12
- error-code-invalid-parameter = 128
- error-code-no-free-memory = 129
- error-code-no-free-space = 130
- error-code-access-denied = 121
- error-code-already-exists = 132
- error-code-does-not-exist = 133
- error-code-interrupted = 134
- error-code-is-directory = 135
- error-code-not-a-directory = 136
- error-code-would-block = 137
- error-code-overflow = 138
- error-code-bad-file-descriptor = 139
- error-code-out-of-range = 140
- error-code-name-too-long = 141
- error-code-invalid-seek = 142
- error-code-not-supported = 143
- error-code-too-many-open-files = 144
-
tinkerforge call
red-brick
<uid> start-program
<program-id>
Parameter: | - <program-id> – Typ: Int, Wertebereich: [0 bis 216 - 1]
|
Ausgabe: | - error-code – Typ: Int, Wertebereich: Siehe Symbole
|
Die folgenden Symbole sind für diese Funktion verfügbar:
Für error-code:
- error-code-success = 0
- error-code-unknown-error = 1
- error-code-invalid-operation = 2
- error-code-operation-aborted = 3
- error-code-internal-error = 4
- error-code-unknown-session-id = 5
- error-code-no-free-session-id = 6
- error-code-unknown-object-id = 7
- error-code-no-free-object-id = 8
- error-code-object-is-locked = 9
- error-code-no-more-data = 10
- error-code-wrong-list-item-type = 11
- error-code-program-is-purged = 12
- error-code-invalid-parameter = 128
- error-code-no-free-memory = 129
- error-code-no-free-space = 130
- error-code-access-denied = 121
- error-code-already-exists = 132
- error-code-does-not-exist = 133
- error-code-interrupted = 134
- error-code-is-directory = 135
- error-code-not-a-directory = 136
- error-code-would-block = 137
- error-code-overflow = 138
- error-code-bad-file-descriptor = 139
- error-code-out-of-range = 140
- error-code-name-too-long = 141
- error-code-invalid-seek = 142
- error-code-not-supported = 143
- error-code-too-many-open-files = 144
-
tinkerforge call
red-brick
<uid> get-last-spawned-program-process
<program-id> <session-id>
Parameter: | - <program-id> – Typ: Int, Wertebereich: [0 bis 216 - 1]
- <session-id> – Typ: Int, Wertebereich: [0 bis 216 - 1]
|
Ausgabe: | - error-code – Typ: Int, Wertebereich: Siehe Symbole
- process-id – Typ: Int, Wertebereich: [0 bis 216 - 1]
- timestamp – Typ: Int, Wertebereich: [0 bis 264 - 1]
|
Die folgenden Symbole sind für diese Funktion verfügbar:
Für error-code:
- error-code-success = 0
- error-code-unknown-error = 1
- error-code-invalid-operation = 2
- error-code-operation-aborted = 3
- error-code-internal-error = 4
- error-code-unknown-session-id = 5
- error-code-no-free-session-id = 6
- error-code-unknown-object-id = 7
- error-code-no-free-object-id = 8
- error-code-object-is-locked = 9
- error-code-no-more-data = 10
- error-code-wrong-list-item-type = 11
- error-code-program-is-purged = 12
- error-code-invalid-parameter = 128
- error-code-no-free-memory = 129
- error-code-no-free-space = 130
- error-code-access-denied = 121
- error-code-already-exists = 132
- error-code-does-not-exist = 133
- error-code-interrupted = 134
- error-code-is-directory = 135
- error-code-not-a-directory = 136
- error-code-would-block = 137
- error-code-overflow = 138
- error-code-bad-file-descriptor = 139
- error-code-out-of-range = 140
- error-code-name-too-long = 141
- error-code-invalid-seek = 142
- error-code-not-supported = 143
- error-code-too-many-open-files = 144
-
tinkerforge call
red-brick
<uid> get-custom-program-option-names
<program-id> <session-id>
Parameter: | - <program-id> – Typ: Int, Wertebereich: [0 bis 216 - 1]
- <session-id> – Typ: Int, Wertebereich: [0 bis 216 - 1]
|
Ausgabe: | - error-code – Typ: Int, Wertebereich: Siehe Symbole
- names-list-id – Typ: Int, Wertebereich: [0 bis 216 - 1]
|
Die folgenden Symbole sind für diese Funktion verfügbar:
Für error-code:
- error-code-success = 0
- error-code-unknown-error = 1
- error-code-invalid-operation = 2
- error-code-operation-aborted = 3
- error-code-internal-error = 4
- error-code-unknown-session-id = 5
- error-code-no-free-session-id = 6
- error-code-unknown-object-id = 7
- error-code-no-free-object-id = 8
- error-code-object-is-locked = 9
- error-code-no-more-data = 10
- error-code-wrong-list-item-type = 11
- error-code-program-is-purged = 12
- error-code-invalid-parameter = 128
- error-code-no-free-memory = 129
- error-code-no-free-space = 130
- error-code-access-denied = 121
- error-code-already-exists = 132
- error-code-does-not-exist = 133
- error-code-interrupted = 134
- error-code-is-directory = 135
- error-code-not-a-directory = 136
- error-code-would-block = 137
- error-code-overflow = 138
- error-code-bad-file-descriptor = 139
- error-code-out-of-range = 140
- error-code-name-too-long = 141
- error-code-invalid-seek = 142
- error-code-not-supported = 143
- error-code-too-many-open-files = 144
-
tinkerforge call
red-brick
<uid> set-custom-program-option-value
<program-id> <name-string-id> <value-string-id>
Parameter: | - <program-id> – Typ: Int, Wertebereich: [0 bis 216 - 1]
- <name-string-id> – Typ: Int, Wertebereich: [0 bis 216 - 1]
- <value-string-id> – Typ: Int, Wertebereich: [0 bis 216 - 1]
|
Ausgabe: | - error-code – Typ: Int, Wertebereich: Siehe Symbole
|
Die folgenden Symbole sind für diese Funktion verfügbar:
Für error-code:
- error-code-success = 0
- error-code-unknown-error = 1
- error-code-invalid-operation = 2
- error-code-operation-aborted = 3
- error-code-internal-error = 4
- error-code-unknown-session-id = 5
- error-code-no-free-session-id = 6
- error-code-unknown-object-id = 7
- error-code-no-free-object-id = 8
- error-code-object-is-locked = 9
- error-code-no-more-data = 10
- error-code-wrong-list-item-type = 11
- error-code-program-is-purged = 12
- error-code-invalid-parameter = 128
- error-code-no-free-memory = 129
- error-code-no-free-space = 130
- error-code-access-denied = 121
- error-code-already-exists = 132
- error-code-does-not-exist = 133
- error-code-interrupted = 134
- error-code-is-directory = 135
- error-code-not-a-directory = 136
- error-code-would-block = 137
- error-code-overflow = 138
- error-code-bad-file-descriptor = 139
- error-code-out-of-range = 140
- error-code-name-too-long = 141
- error-code-invalid-seek = 142
- error-code-not-supported = 143
- error-code-too-many-open-files = 144
-
tinkerforge call
red-brick
<uid> get-custom-program-option-value
<program-id> <name-string-id> <session-id>
Parameter: | - <program-id> – Typ: Int, Wertebereich: [0 bis 216 - 1]
- <name-string-id> – Typ: Int, Wertebereich: [0 bis 216 - 1]
- <session-id> – Typ: Int, Wertebereich: [0 bis 216 - 1]
|
Ausgabe: | - error-code – Typ: Int, Wertebereich: Siehe Symbole
- value-string-id – Typ: Int, Wertebereich: [0 bis 216 - 1]
|
Die folgenden Symbole sind für diese Funktion verfügbar:
Für error-code:
- error-code-success = 0
- error-code-unknown-error = 1
- error-code-invalid-operation = 2
- error-code-operation-aborted = 3
- error-code-internal-error = 4
- error-code-unknown-session-id = 5
- error-code-no-free-session-id = 6
- error-code-unknown-object-id = 7
- error-code-no-free-object-id = 8
- error-code-object-is-locked = 9
- error-code-no-more-data = 10
- error-code-wrong-list-item-type = 11
- error-code-program-is-purged = 12
- error-code-invalid-parameter = 128
- error-code-no-free-memory = 129
- error-code-no-free-space = 130
- error-code-access-denied = 121
- error-code-already-exists = 132
- error-code-does-not-exist = 133
- error-code-interrupted = 134
- error-code-is-directory = 135
- error-code-not-a-directory = 136
- error-code-would-block = 137
- error-code-overflow = 138
- error-code-bad-file-descriptor = 139
- error-code-out-of-range = 140
- error-code-name-too-long = 141
- error-code-invalid-seek = 142
- error-code-not-supported = 143
- error-code-too-many-open-files = 144
-
tinkerforge call
red-brick
<uid> remove-custom-program-option
<program-id> <name-string-id>
Parameter: | - <program-id> – Typ: Int, Wertebereich: [0 bis 216 - 1]
- <name-string-id> – Typ: Int, Wertebereich: [0 bis 216 - 1]
|
Ausgabe: | - error-code – Typ: Int, Wertebereich: Siehe Symbole
|
Die folgenden Symbole sind für diese Funktion verfügbar:
Für error-code:
- error-code-success = 0
- error-code-unknown-error = 1
- error-code-invalid-operation = 2
- error-code-operation-aborted = 3
- error-code-internal-error = 4
- error-code-unknown-session-id = 5
- error-code-no-free-session-id = 6
- error-code-unknown-object-id = 7
- error-code-no-free-object-id = 8
- error-code-object-is-locked = 9
- error-code-no-more-data = 10
- error-code-wrong-list-item-type = 11
- error-code-program-is-purged = 12
- error-code-invalid-parameter = 128
- error-code-no-free-memory = 129
- error-code-no-free-space = 130
- error-code-access-denied = 121
- error-code-already-exists = 132
- error-code-does-not-exist = 133
- error-code-interrupted = 134
- error-code-is-directory = 135
- error-code-not-a-directory = 136
- error-code-would-block = 137
- error-code-overflow = 138
- error-code-bad-file-descriptor = 139
- error-code-out-of-range = 140
- error-code-name-too-long = 141
- error-code-invalid-seek = 142
- error-code-not-supported = 143
- error-code-too-many-open-files = 144
-
tinkerforge call
red-brick
<uid> get-identity
Ausgabe: | - uid – Typ: String, Länge: bis zu 8
- connected-uid – Typ: String, Länge: bis zu 8
- position – Typ: Char, Wertebereich: [0 bis 8]
- hardware-version – Typ: Int Array, Länge: 3
- 0: major – Typ: Int, Wertebereich: [0 bis 255]
- 1: minor – Typ: Int, Wertebereich: [0 bis 255]
- 2: revision – Typ: Int, Wertebereich: [0 bis 255]
- firmware-version – Typ: Int Array, Länge: 3
- 0: major – Typ: Int, Wertebereich: [0 bis 255]
- 1: minor – Typ: Int, Wertebereich: [0 bis 255]
- 2: revision – Typ: Int, Wertebereich: [0 bis 255]
- device-identifier – Typ: Int, Wertebereich: [0 bis 216 - 1]
|
Gibt die UID, die UID zu der der Brick verbunden ist, die
Position, die Hard- und Firmware Version sowie den Device Identifier
zurück.
Die Position ist die Position im Stack von '0' (unterster Brick) bis '8' (oberster Brick).
Eine Liste der Device Identifier Werte ist hier zu
finden.
Callbacks
Callbacks können registriert werden um zeitkritische oder wiederkehrende Daten
vom Gerät zu erhalten:
tinkerforge dispatch red-brick <uid> example
Die verfügbaren Callbacks werden weiter unten beschrieben.
Bemerkung
Callbacks für wiederkehrende Ereignisse zu verwenden ist
immer zu bevorzugen gegenüber der Verwendung von Abfragen.
Es wird weniger USB-Bandbreite benutzt und die Latenz ist
erheblich geringer, da es keine Paketumlaufzeit gibt.
-
tinkerforge dispatch
red-brick
<uid> async-file-read
Ausgabe: | - file-id – Typ: Int, Wertebereich: [0 bis 216 - 1]
- error-code – Typ: Int, Wertebereich: Siehe Symbole
- buffer – Typ: Int Array, Länge: 60, Wertebereich: [0 bis 255]
- length-read – Typ: Int, Einheit: 1 B, Wertebereich: [0 bis 255]
|
Die folgenden Symbole sind für diese Funktion verfügbar:
Für error-code:
- error-code-success = 0
- error-code-unknown-error = 1
- error-code-invalid-operation = 2
- error-code-operation-aborted = 3
- error-code-internal-error = 4
- error-code-unknown-session-id = 5
- error-code-no-free-session-id = 6
- error-code-unknown-object-id = 7
- error-code-no-free-object-id = 8
- error-code-object-is-locked = 9
- error-code-no-more-data = 10
- error-code-wrong-list-item-type = 11
- error-code-program-is-purged = 12
- error-code-invalid-parameter = 128
- error-code-no-free-memory = 129
- error-code-no-free-space = 130
- error-code-access-denied = 121
- error-code-already-exists = 132
- error-code-does-not-exist = 133
- error-code-interrupted = 134
- error-code-is-directory = 135
- error-code-not-a-directory = 136
- error-code-would-block = 137
- error-code-overflow = 138
- error-code-bad-file-descriptor = 139
- error-code-out-of-range = 140
- error-code-name-too-long = 141
- error-code-invalid-seek = 142
- error-code-not-supported = 143
- error-code-too-many-open-files = 144
-
tinkerforge dispatch
red-brick
<uid> async-file-write
Ausgabe: | - file-id – Typ: Int, Wertebereich: [0 bis 216 - 1]
- error-code – Typ: Int, Wertebereich: Siehe Symbole
- length-written – Typ: Int, Einheit: 1 B, Wertebereich: [0 bis 255]
|
Die folgenden Symbole sind für diese Funktion verfügbar:
Für error-code:
- error-code-success = 0
- error-code-unknown-error = 1
- error-code-invalid-operation = 2
- error-code-operation-aborted = 3
- error-code-internal-error = 4
- error-code-unknown-session-id = 5
- error-code-no-free-session-id = 6
- error-code-unknown-object-id = 7
- error-code-no-free-object-id = 8
- error-code-object-is-locked = 9
- error-code-no-more-data = 10
- error-code-wrong-list-item-type = 11
- error-code-program-is-purged = 12
- error-code-invalid-parameter = 128
- error-code-no-free-memory = 129
- error-code-no-free-space = 130
- error-code-access-denied = 121
- error-code-already-exists = 132
- error-code-does-not-exist = 133
- error-code-interrupted = 134
- error-code-is-directory = 135
- error-code-not-a-directory = 136
- error-code-would-block = 137
- error-code-overflow = 138
- error-code-bad-file-descriptor = 139
- error-code-out-of-range = 140
- error-code-name-too-long = 141
- error-code-invalid-seek = 142
- error-code-not-supported = 143
- error-code-too-many-open-files = 144
-
tinkerforge dispatch
red-brick
<uid> file-events-occurred
Ausgabe: | - file-id – Typ: Int, Wertebereich: [0 bis 216 - 1]
- events – Typ: Int, Wertebereich: Siehe Symbole
|
Die folgenden Symbole sind für diese Funktion verfügbar:
Für events:
- file-event-readable = 1
- file-event-writable = 2
-
tinkerforge dispatch
red-brick
<uid> process-state-changed
Ausgabe: | - process-id – Typ: Int, Wertebereich: [0 bis 216 - 1]
- state – Typ: Int, Wertebereich: Siehe Symbole
- timestamp – Typ: Int, Wertebereich: [0 bis 264 - 1]
- exit-code – Typ: Int, Wertebereich: [0 bis 255]
|
Die folgenden Symbole sind für diese Funktion verfügbar:
Für state:
- process-state-unknown = 0
- process-state-running = 1
- process-state-error = 2
- process-state-exited = 3
- process-state-killed = 4
- process-state-stopped = 5
-
tinkerforge dispatch
red-brick
<uid> program-scheduler-state-changed
Ausgabe: | - program-id – Typ: Int, Wertebereich: [0 bis 216 - 1]
|
-
tinkerforge dispatch
red-brick
<uid> program-process-spawned
Ausgabe: | - program-id – Typ: Int, Wertebereich: [0 bis 216 - 1]
|