-
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/iot3: implement mobility SDK #213
Open
ymorin-orange
wants to merge
7
commits into
Orange-OpenSource:master
Choose a base branch
from
ymorin-orange:nyma/iot3-mobility
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
python/iot3: implement mobility SDK #213
ymorin-orange
wants to merge
7
commits into
Orange-OpenSource:master
from
ymorin-orange:nyma/iot3-mobility
+1,640
−0
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
nyma/iot3-mobility
branch
from
November 19, 2024 15:15
70a225d
to
963c103
Compare
Signed-off-by: Yann E. MORIN <yann.morin@orange.com>
Signed-off-by: Yann E. MORIN <yann.morin@orange.com>
Ideally, we would like to have message_from_json() be defined as an static method in the etsi.Message class, but that is not possible: when we eventually add a new class for an actual message (say, CAM), that class will inherit from etsi.Message, while at the same time etsi.Message will need to instanciate a CAM; so CAM will need the etsi module to be fully imported, while at the same time, the etsi module would need the CAM module to be fully imported. This ia checken-n-egg problem that is not easily (if at all!) solved in python (in C/C++, we'd have forward declaration to solve that, but it's not possible in python). So, implement that as a module-level function. Signed-off-by: Yann E. MORIN <yann.morin@orange.com>
Only required properties, plus a few select optional ones, are handled for now. Signed-off-by: Yann E. MORIN <yann.morin@orange.com>
Only required properties, plus a few select optional ones, are handled for now. Signed-off-by: Yann E. MORIN <yann.morin@orange.com>
Signed-off-by: Yann E. MORIN <yann.morin@orange.com>
Signed-off-by: Yann E. MORIN <yann.morin@orange.com>
ymorin-orange
force-pushed
the
nyma/iot3-mobility
branch
from
November 22, 2024 14:38
963c103
to
f965f82
Compare
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:
Preparation:
localhost:2947
, spawn one (needs gpsd 3.24 or later):NMEA.log
How to test:
Expected results:
./python/iot3/tests/test-iot3-mobility-gnss
./python/iot3/tests/test-iot3-mobility-message
./python/iot3/tests/test-iot3-mobility
one is; the MQTT client reports two messages: 1 CAM, and 1 DENM for the
accident alert: