-
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
python: migrate applications to use IoT3 Core SDK #149
Commits on Sep 20, 2024
-
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]>
Configuration menu - View commit details
-
Copy full SHA for 4f24df2 - Browse repository at this point
Copy the full SHA 4f24df2View commit details -
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]>
Configuration menu - View commit details
-
Copy full SHA for 583b3bd - Browse repository at this point
Copy the full SHA 583b3bdView commit details -
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]>
Configuration menu - View commit details
-
Copy full SHA for 9d09f1b - Browse repository at this point
Copy the full SHA 9d09f1bView commit details -
python/status: use iot3.core.mqtt
Signed-off-by: Yann E. MORIN <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 9191a84 - Browse repository at this point
Copy the full SHA 9191a84View commit details -
python/iqm: no one ever join()s the authority threads
Signed-off-by: Yann E. MORIN <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for bb7fd80 - Browse repository at this point
Copy the full SHA bb7fd80View commit details -
python/iqm: use iot3.core.mqtt for queue-manager
Signed-off-by: Yann E. MORIN <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 7960edd - Browse repository at this point
Copy the full SHA 7960eddView commit details -
python/iqm: use iot3.core.mqtt for MQTT authority client
Signed-off-by: Yann E. MORIN <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 169568b - Browse repository at this point
Copy the full SHA 169568bView commit details -
python/iqm: drop custom MQTT client
Signed-off-by: Yann E. MORIN <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 1eddf54 - Browse repository at this point
Copy the full SHA 1eddf54View commit details -
Signed-off-by: Yann E. MORIN <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 3c692a4 - Browse repository at this point
Copy the full SHA 3c692a4View commit details -
python/vehicle: drop tracking from ITS message
Signed-off-by: Yann E. MORIN <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 6fc0bde - Browse repository at this point
Copy the full SHA 6fc0bdeView commit details -
python/vehicle: don't instanciate dummy custom tracker
Signed-off-by: Yann E. MORIN <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for ae3170a - Browse repository at this point
Copy the full SHA ae3170aView commit details -
python/vehicle: drop custom, dummy tracker
Signed-off-by: Yann E. MORIN <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 2ee8aaa - Browse repository at this point
Copy the full SHA 2ee8aaaView commit details -
python/vehicle: don't use abbrev() which is going to disapear
Signed-off-by: Yann E. MORIN <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for c4f9aee - Browse repository at this point
Copy the full SHA c4f9aeeView commit details -
python/vehicle: only start() clients once all have been created
Signed-off-by: Yann E. MORIN <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for cecdc18 - Browse repository at this point
Copy the full SHA cecdc18View commit details -
python/vehicle: insert trampoline on message reception
Signed-off-by: Yann E. MORIN <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 1f0061d - Browse repository at this point
Copy the full SHA 1f0061dView commit details -
python/vehicle: use iot3.core.mqtt
Signed-off-by: Yann E. MORIN <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for c482cb1 - Browse repository at this point
Copy the full SHA c482cb1View commit details -
python/vehicle: drop our custom MQTT Client
Signed-off-by: Yann E. MORIN <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 4b88b93 - Browse repository at this point
Copy the full SHA 4b88b93View commit details -
Signed-off-by: Yann E. MORIN <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 9d6852c - Browse repository at this point
Copy the full SHA 9d6852cView commit details