Skip to content
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
merged 18 commits into from
Sep 24, 2024

Commits on Sep 20, 2024

  1. python/iot3/core: fix MQTT over Unix socket

    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]>
    ymorin-orange committed Sep 20, 2024
    Configuration menu
    Copy the full SHA
    4f24df2 View commit details
    Browse the repository at this point in the history
  2. python/iot3/core: fix unsubscribing to all MQTT topics

    The unsubscribe() method expects keyword arguments, not positional ones.
    
    Signed-off-by: Yann E. MORIN <[email protected]>
    ymorin-orange committed Sep 20, 2024
    Configuration menu
    Copy the full SHA
    583b3bd View commit details
    Browse the repository at this point in the history
  3. python: relax dependency on paho.mqtt

    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]>
    ymorin-orange committed Sep 20, 2024
    Configuration menu
    Copy the full SHA
    9d09f1b View commit details
    Browse the repository at this point in the history
  4. python/status: use iot3.core.mqtt

    Signed-off-by: Yann E. MORIN <[email protected]>
    ymorin-orange committed Sep 20, 2024
    Configuration menu
    Copy the full SHA
    9191a84 View commit details
    Browse the repository at this point in the history
  5. python/iqm: no one ever join()s the authority threads

    Signed-off-by: Yann E. MORIN <[email protected]>
    ymorin-orange committed Sep 20, 2024
    Configuration menu
    Copy the full SHA
    bb7fd80 View commit details
    Browse the repository at this point in the history
  6. python/iqm: use iot3.core.mqtt for queue-manager

    Signed-off-by: Yann E. MORIN <[email protected]>
    ymorin-orange committed Sep 20, 2024
    Configuration menu
    Copy the full SHA
    7960edd View commit details
    Browse the repository at this point in the history
  7. python/iqm: use iot3.core.mqtt for MQTT authority client

    Signed-off-by: Yann E. MORIN <[email protected]>
    ymorin-orange committed Sep 20, 2024
    Configuration menu
    Copy the full SHA
    169568b View commit details
    Browse the repository at this point in the history
  8. python/iqm: drop custom MQTT client

    Signed-off-by: Yann E. MORIN <[email protected]>
    ymorin-orange committed Sep 20, 2024
    Configuration menu
    Copy the full SHA
    1eddf54 View commit details
    Browse the repository at this point in the history
  9. python/iqm: add telemetry

    Signed-off-by: Yann E. MORIN <[email protected]>
    ymorin-orange committed Sep 20, 2024
    Configuration menu
    Copy the full SHA
    3c692a4 View commit details
    Browse the repository at this point in the history
  10. python/vehicle: drop tracking from ITS message

    Signed-off-by: Yann E. MORIN <[email protected]>
    ymorin-orange committed Sep 20, 2024
    Configuration menu
    Copy the full SHA
    6fc0bde View commit details
    Browse the repository at this point in the history
  11. python/vehicle: don't instanciate dummy custom tracker

    Signed-off-by: Yann E. MORIN <[email protected]>
    ymorin-orange committed Sep 20, 2024
    Configuration menu
    Copy the full SHA
    ae3170a View commit details
    Browse the repository at this point in the history
  12. python/vehicle: drop custom, dummy tracker

    Signed-off-by: Yann E. MORIN <[email protected]>
    ymorin-orange committed Sep 20, 2024
    Configuration menu
    Copy the full SHA
    2ee8aaa View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    c4f9aee View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    cecdc18 View commit details
    Browse the repository at this point in the history
  15. python/vehicle: insert trampoline on message reception

    Signed-off-by: Yann E. MORIN <[email protected]>
    ymorin-orange committed Sep 20, 2024
    Configuration menu
    Copy the full SHA
    1f0061d View commit details
    Browse the repository at this point in the history
  16. python/vehicle: use iot3.core.mqtt

    Signed-off-by: Yann E. MORIN <[email protected]>
    ymorin-orange committed Sep 20, 2024
    Configuration menu
    Copy the full SHA
    c482cb1 View commit details
    Browse the repository at this point in the history
  17. python/vehicle: drop our custom MQTT Client

    Signed-off-by: Yann E. MORIN <[email protected]>
    ymorin-orange committed Sep 20, 2024
    Configuration menu
    Copy the full SHA
    4b88b93 View commit details
    Browse the repository at this point in the history
  18. python/vehicle: add telemetry

    Signed-off-by: Yann E. MORIN <[email protected]>
    ymorin-orange committed Sep 20, 2024
    Configuration menu
    Copy the full SHA
    9d6852c View commit details
    Browse the repository at this point in the history