Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
ais_readers-examples-web_api_src
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
Package Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
nfc-rfid-reader-sdk-deprecated
ais_readers-examples-web_api_src
Commits
b6d2f191
Commit
b6d2f191
authored
7 years ago
by
developer7
Browse files
Options
Downloads
Patches
Plain Diff
ver 4.0.3.1
add 'resource busy' in GetHandler->do_POST();
parent
0516e8fb
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ais_http.py
+2
-2
2 additions, 2 deletions
ais_http.py
shell
+1
-1
1 addition, 1 deletion
shell
with
3 additions
and
3 deletions
ais_http.py
+
2
−
2
View file @
b6d2f191
...
@@ -152,13 +152,13 @@ class GetHandler(BaseHTTPRequestHandler):
...
@@ -152,13 +152,13 @@ class GetHandler(BaseHTTPRequestHandler):
self
.
wfile
.
write
(
output
)
self
.
wfile
.
write
(
output
)
if
len
(
HND_LIST
)
==
0
:
if
len
(
HND_LIST
)
==
0
:
self
.
wfile
.
write
(
"
\n
>> NO DEVICES FOUND
\n
"
)
self
.
wfile
.
write
(
"
\n
>> NO DEVICES FOUND
(or resource busy)
\n
"
)
return
return
if
not
device
.
isdigit
():
if
not
device
.
isdigit
():
dev
.
hnd
=
HND_LIST
[
0
]
dev
.
hnd
=
HND_LIST
[
0
]
elif
int
(
device
)
>
len
(
HND_LIST
)
or
int
(
device
)
==
0
:
elif
int
(
device
)
>
len
(
HND_LIST
)
or
int
(
device
)
==
0
:
self
.
wfile
.
write
(
"
dev[%s] : NO DEVICE FOUND
"
%
device
)
self
.
wfile
.
write
(
"
dev[%s] : NO DEVICE FOUND
(or resource busy)
"
%
device
)
return
return
else
:
else
:
dev
.
hnd
=
HND_LIST
[
int
(
device
)
-
1
]
dev
.
hnd
=
HND_LIST
[
int
(
device
)
-
1
]
...
...
This diff is collapsed.
Click to expand it.
shell
@
1ad5c25e
Subproject commit
34de84a310f56c39e6d4c1b46244006e7c91f91
1
Subproject commit
1ad5c25efec65f2b4422b0488e4f63b25752f75
1
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