Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Camunda IoT Demo
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
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
Jonas Blatt
Camunda IoT Demo
Commits
e07b7d19
Commit
e07b7d19
authored
5 years ago
by
Jonas Blatt
Browse files
Options
Downloads
Patches
Plain Diff
Update RFID_IoT_BS_final.ino
parent
1b02ee5a
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
arduino/RFID_IoT_BS_final.ino
+4
-4
4 additions, 4 deletions
arduino/RFID_IoT_BS_final.ino
with
4 additions
and
4 deletions
arduino/RFID_IoT_BS_final.ino
+
4
−
4
View file @
e07b7d19
...
...
@@ -7,7 +7,7 @@
MFRC522
mfrc522
(
SS_PIN
,
RST_PIN
);
// initiate instance of MFRC522 for MF522-AN
const
char
server
[]
=
"
zeit-bis
.de"
;
// configure network credentials (server URL)
const
char
server
[]
=
"
bs19-team34.bas.uni-koblenz
.de"
;
// configure network credentials (server URL)
const
char
*
ssid
=
"IoT2019"
;
// configure network credentials (SSID)
const
char
*
password
=
"IoTinBS2019"
;
// configure network credentials (PW)
WiFiClient
client
;
...
...
@@ -59,7 +59,7 @@ void loop() { // start the continuous readiness of the system
String
data
=
"action=append&tagId="
+
tagID
;
// prepare RFID tag data to be transmitted
client
.
println
(
"POST /api/rfid.php HTTP/1.1"
);
// transfer html content
client
.
print
(
"Host:
zeit-bis
.de
\n
"
);
client
.
print
(
"Host:
bs19-team34.bas.uni-koblenz
.de
\n
"
);
client
.
println
(
"User-Agent: ESP8266/1.0"
);
client
.
println
(
"Connection: close"
);
client
.
println
(
"Content-Type: application/x-www-form-urlencoded"
);
...
...
@@ -75,8 +75,8 @@ void loop() { // start the continuous readiness of the system
// delay(500);
Serial
.
println
(
"[CONNECTION TO SERVER CLOSED]"
);
// inform about successful connection closure
Serial
.
println
(
""
);
}
else
{
}
else
{
Serial
.
println
(
"[ERROR: CONNECTION NOT SUCCESSFUL ! ! !]"
);
// inform about connection problem
}
}
}
}
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