Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DidacticNetwork
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
letsgoING
Libraries
DidacticNetwork
Commits
e5deba58
Commit
e5deba58
authored
3 years ago
by
Anian Bühler
Browse files
Options
Downloads
Patches
Plain Diff
minor changes
parent
a0bdbbf2
No related branches found
Branches containing commit
No related tags found
1 merge request
!4
Dev to Master
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+4
-4
4 additions, 4 deletions
README.md
with
4 additions
and
4 deletions
README.md
+
4
−
4
View file @
e5deba58
...
...
@@ -38,9 +38,9 @@ https://www.arduino.cc/en/guide/libraries section "Importing a .zip Library"
didacticPSNetClient
psnClient
;
#Starten der Client-Instanz
void
psnClient
.
begin
(
Stream
&
sSerial
,
fcn
callback
);
void
psnClient
.
begin
(
Stream
&
sSerial
,
fcn
c
lientC
allback
);
// param1: Schnittstelle (Serial | SoftSerial)
// param2: Callback-Funktion
// param2: Callback-Funktion
(Bezeichnung frei waehlbar)
#Netzwerkverwaltung Client (Daten senden und Empfangen, Zugriffsregelung)
bool
psnClient
.
handleNetwork
();
...
...
@@ -64,8 +64,7 @@ bool psnClient.unsubscribe(char* topic, int length);
// param2: Anzahl Zeichen des Topics
// return true wenn Daten versendet / false wenn nicht
#Daten unter Topic veroeffentlichen
Daten
direkt
veroeffentlichen
#Daten unter Topic veroeffentlichen
int
psnClient
.
publish
(
char
*
topic
,
char
*
payload
);
// param1: Topic String/char-Array;
// param2: payload-char-Array
...
...
@@ -116,6 +115,7 @@ int psnClient.publishOnChange(char* topic, int payload, int threshold);
// DN_ERROR_PAYLOAD_LEN (Payload zu lange - wird abgeschnitten)
#Callback-Funktion (wird bei neuen Daten aufgerufen)
//Bezeichnung muss mit der in psnClient.begin(...) übereinstimmen
void
clientCallback
(
char
*
topic
,
int
topicLength
,
char
*
payload
,
int
payloadLength
){...}
// param1: Topic der Nachricht
// param2: Lange des Topics
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment