Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Sensor System
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
Service Desk
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
Institut für Informatik
QE Research Group
FORTE
Sensor System
Commits
cf7fd22f
Verified
Commit
cf7fd22f
authored
2 years ago
by
Zoe Michaela Dietmar Pfister
Browse files
Options
Downloads
Patches
Plain Diff
WIP: Refactor
parent
08edd213
No related branches found
No related tags found
4 merge requests
!39
Merge Develop into Main
,
!19
development into master
,
!17
Inital Host, initial Client
,
!14
Merge gsm host into development
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
host/esp-t-sim7000g/src/main.cpp
+2
-5
2 additions, 5 deletions
host/esp-t-sim7000g/src/main.cpp
with
2 additions
and
5 deletions
host/esp-t-sim7000g/src/main.cpp
+
2
−
5
View file @
cf7fd22f
...
...
@@ -26,7 +26,7 @@ static const std::string TAG_GSM = "GSM";
#define SerialAT Serial1
// See all AT commands, if wanted
//
#define DUMP_AT_COMMANDS
#define DUMP_AT_COMMANDS
// set GSM PIN, if any
#define GSM_PIN ""
...
...
@@ -406,16 +406,13 @@ void loop()
client
.
println
(
"Host: "
+
url
);
// authorization
client
.
println
(
"Authorization: Token "
+
token
);
//
json
data
//
line
data
client
.
println
(
"Content-Type: text/plain"
);
client
.
println
(
"Accept: application/json"
);
// data length
client
.
println
(
"Content-Length: "
+
String
(
lineData
.
length
()));
client
.
println
();
client
.
println
(
lineData
);
client
.
println
(
"Connection: close"
);
client
.
println
();
// print response
while
(
client
.
connected
())
{
String
line
=
client
.
readStringUntil
(
'\n'
);
...
...
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