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
2985e505
Commit
2985e505
authored
Mar 31, 2021
by
Jiahang Chen
Browse files
search broker endpoints only by launching DT
parent
e62c2400
Pipeline
#438464
passed with stages
in 50 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
ml/thing.py
View file @
2985e505
...
...
@@ -392,7 +392,6 @@ def __connect_with_broker(self):
+
BColors
.
ENDC
+
": Connect with S3I Broker"
)
self
.
__endpoint
=
find_broker_endpoint
(
self
.
dir
,
thing_id
=
self
.
thing_id
)
if
self
.
__is_broker_rest
:
self
.
broker
=
BrokerREST
(
token
=
self
.
access_token
)
...
...
@@ -418,6 +417,7 @@ def receive():
else
:
if
self
.
broker
is
None
:
# first time to build a broker instance
self
.
__endpoint
=
find_broker_endpoint
(
self
.
dir
,
thing_id
=
self
.
thing_id
)
self
.
broker
=
Broker
(
auth_form
=
"Username/Password"
,
username
=
" "
,
...
...
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