Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
Astreos_Arduino
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hicham Brahimi
Astreos_Arduino
Commits
f6d36f83
Commit
f6d36f83
authored
6 years ago
by
hichbra
Browse files
Options
Downloads
Patches
Plain Diff
fix port
parent
b1ed055b
Branches
Branches containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Raspberry/Raspberry_central/RecuperationValeur.py
+2
-2
2 additions, 2 deletions
Raspberry/Raspberry_central/RecuperationValeur.py
with
2 additions
and
2 deletions
Raspberry/Raspberry_central/RecuperationValeur.py
+
2
−
2
View file @
f6d36f83
...
...
@@ -18,7 +18,7 @@ file = port+"/"+datetime.now().strftime("%d-%m-%Y_%H.%M.%S")
#debut = datetime.now()
delai
=
datetime
.
now
()
output_file
=
open
(
file
,
"
w+
"
)
output_file
.
write
(
"
id:
ttyACM0
\n
"
)
output_file
.
write
(
"
id:
"
+
port
+
"
\n
"
)
ser
=
serial
.
Serial
(
serial_port
,
baud_rate
)
while
True
:
try
:
...
...
@@ -37,7 +37,7 @@ while True:
subprocess
.
Popen
([
"
python
"
,
"
processusEnvoiBluetooth.py
"
,
fichierAEnvoyer
])
delai
=
datetime
.
now
()
output_file
=
open
(
file
,
"
w+
"
)
output_file
.
write
(
"
id:
ttyACM0
\n
"
)
output_file
.
write
(
"
id:
"
+
port
+
"
\n
"
)
else
:
print
(((
datetime
.
now
()
-
delai
).
seconds
)
/
60
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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