-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
python: migrate applications to use IoT3 Core SDK #149
Merged
ymorin-orange
merged 18 commits into
Orange-OpenSource:master
from
ymorin-orange:yem/its-iot3
Sep 24, 2024
Merged
python: migrate applications to use IoT3 Core SDK #149
ymorin-orange
merged 18 commits into
Orange-OpenSource:master
from
ymorin-orange:yem/its-iot3
Sep 24, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ymorin-orange
force-pushed
the
yem/its-iot3
branch
2 times, most recently
from
September 9, 2024 13:51
3135f4d
to
865cce9
Compare
ymorin-orange
force-pushed
the
yem/its-iot3
branch
from
September 11, 2024 13:49
865cce9
to
102170e
Compare
Although the unix socket transport does not require a TCP port, paho-mqtt expexts that a valid TCP port be specified when connecting. Technically, specifying a port is not necessary in that case, so we could in theory change our call to connect_async() to not pass a port at al. However, that would make the code a bit more complex. So, to simplify things, just use a valid TCP port, i.e. one that is strictly greater than 0. We could have decided to use the default port, 1883, but that would be a bit misleading. Instead, we just use 1, which is odd enough that it will at least raise an eyebrow to an unsuspecting reviewer. Signed-off-by: Yann E. MORIN <[email protected]>
The unsubscribe() method expects keyword arguments, not positional ones. Signed-off-by: Yann E. MORIN <[email protected]>
The vareious ITS clients (its-vehicle, its-iqm...) currently use the APIs of paho.mqtt 1.6.1, while the newly-introduce IoT3 Core SDK uses those of 2.1.0. In paho.mqtt 2.0.x, there was a breaking API change, so a client written against paho.mqtt 1.6.1 (or earlier) could not be used as-is with paho.mqtt 2.0.x. but in paho.mqtt 2.1.0, there was another API change that made it possible to use clients written against 1.6.1, without any modification, while also alowing clients written againt the 2.0.0 API as well. So we can accept anything from 1.6.1 onward, except for versions 2.0.x. Signed-off-by: Yann E. MORIN <[email protected]>
Signed-off-by: Yann E. MORIN <[email protected]>
Signed-off-by: Yann E. MORIN <[email protected]>
Signed-off-by: Yann E. MORIN <[email protected]>
Signed-off-by: Yann E. MORIN <[email protected]>
Signed-off-by: Yann E. MORIN <[email protected]>
Signed-off-by: Yann E. MORIN <[email protected]>
Signed-off-by: Yann E. MORIN <[email protected]>
Signed-off-by: Yann E. MORIN <[email protected]>
Signed-off-by: Yann E. MORIN <[email protected]>
Signed-off-by: Yann E. MORIN <[email protected]>
Signed-off-by: Yann E. MORIN <[email protected]>
Signed-off-by: Yann E. MORIN <[email protected]>
Signed-off-by: Yann E. MORIN <[email protected]>
Signed-off-by: Yann E. MORIN <[email protected]>
Signed-off-by: Yann E. MORIN <[email protected]>
ymorin-orange
force-pushed
the
yem/its-iot3
branch
from
September 20, 2024 13:43
102170e
to
9d6852c
Compare
Typo in PR description at point 4.v |
nbuffon
approved these changes
Sep 24, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Features:
on wikipedia
(you'll need to have a development environment with gcc and at least libffi-dev
and libssl-dev installed; adapt to your distribution):
it's not istalled.
/tmp/its-status.cfg
, with this content:USERNAME
andPASSWORD
with the appropriate credentials,and adapt
host
andport
is you are usign a remote broker and/or itis listening on a non-standard port.
/tmp/its-vehicle.cfg
, with this content:/tmp/its-iqm.cfg
, with this content:Ctrl-C
on eachExpected results
Pre-requisites are all met.
from
mosquitto_sub
would look like:from
mosquitto_sub
would look like (notice the traceparent userproperty):
mosquitto_sub
would look like (notice the traceparent user property,and the different topics: inQueue, outQueue, and interQuweue):
services, with appropriate links between traces.