Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
KWH40
fml40-reference-implementation
Commits
d96ffe74
Commit
d96ffe74
authored
Oct 27, 2020
by
Jiahang Chen
Browse files
fix message print out
parent
359deef2
Pipeline
#349274
passed with stage
in 12 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
ml/thing.py
View file @
d96ffe74
...
...
@@ -425,14 +425,13 @@ def on_service_request(self, body_json):
)
res
=
self
.
broker
.
send
(
receiver_endpoints
=
[
body_json
.
get
(
"replyToEndpoint"
,
None
)],
msg
=
json
.
dumps
(
service_reply
.
msg
))
msg
=
json
.
dumps
(
service_reply
.
msg
))
if
res
.
status_code
==
201
:
print
(
BColors
.
OKBLUE
+
"[S³I][Broker]"
+
BColors
.
ENDC
+
": Send a S³I-B ServiceReply back to the requester "
+
json
.
dumps
(
body_json
,
indent
=
2
)
)
def
on_get_value_reply
(
self
,
msg
):
...
...
Write
Preview
Supports
Markdown
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!
Cancel
Please
register
or
sign in
to comment