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

java: add bootstrap #208

Merged
merged 6 commits into from
Nov 21, 2024

Conversation

mathieu1fb
Copy link
Collaborator

Features;

Bootstrap has been added to the IoT3 Core SDK and can also be used by the IoT3 Mobility SDK.

Closes #187 and closes #189


How to test

  1. Clone the its-client project on your IDE.
  2. Ensure that you have Gradle to be able to build the java/iot3 modules (core, mobility and examples).
  3. Find the Iot3MobilityBootstrapExample class in the examples module, and set appropriate values for the following fields:
private static final String EXAMPLE_UUID = "uuid";
private static final String EXAMPLE_CONTEXT = "context";
// Bootstrap parameters
private static final String BOOTSTRAP_ID = "bootstrap_id";
private static final String BOOTSTRAP_LOGIN = "boostrap_login";
private static final String BOOTSTRAP_PASSWORD = "bootstrap_password";
private static final BootstrapHelper.Role BOOTSTRAP_ROLE = BootstrapHelper.Role.EXTERNAL_APP;
private static final String BOOTSTRAP_URI = "bootstrap.uri.com";
  1. Run Iot3MobilityBootstrapExample.

Expected results:

  1. On the console, you should see the following:
Bootstrap success
IoT3 ID: <id>
LOGIN: <login>
PASSWORD: <password>
MQTT URI: <mqtt_uri>
TELEMETRY URI: <open_telemetry_uri>
  1. On the console, you should then see that the MQTT connection has been established successfully and that mobility messages are being published and received periodically (CAM, CPM and DENM).

@mathieu1fb mathieu1fb added this to the Sprint 4 milestone Nov 14, 2024
@mathieu1fb mathieu1fb self-assigned this Nov 14, 2024
@fredOG-2A1
Copy link
Member

fredOG-2A1 commented Nov 19, 2024

Was annoying by a ClassNotFoundException during the test of the IoT3CoreBootstrapExample class.
Explanation: I choose to download the zip from the github branch. In Windows 10 I double clic on the zip then move the content to my directory.
Best way is to unzip with an adequat program or to clone from the branch.

Test is OK.
'Bootstrap success' is seen.
All needed variables are OK.

Subscriptions for DENM, CAM and CPM (nine tiles).
The app sends messages.
Mqtt Server receives those messages.
The app receives those messages.

Signed-off-by: Mathieu LEFEBVRE <mathieu1.lefebvre@orange.com>
Signed-off-by: Mathieu LEFEBVRE <mathieu1.lefebvre@orange.com>
Signed-off-by: Mathieu LEFEBVRE <mathieu1.lefebvre@orange.com>
Signed-off-by: Mathieu LEFEBVRE <mathieu1.lefebvre@orange.com>
Signed-off-by: Mathieu LEFEBVRE <mathieu1.lefebvre@orange.com>
…modules

Signed-off-by: Mathieu LEFEBVRE <mathieu1.lefebvre@orange.com>
Copy link
Member

@fredOG-2A1 fredOG-2A1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok with all changes.

@mathieu1fb mathieu1fb merged commit 19d3ed5 into Orange-OpenSource:master Nov 21, 2024
39 checks passed
@mathieu1fb mathieu1fb deleted the feature/bootstrap branch November 21, 2024 12:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Use bootstrap information to connect to services Get connection information through bootstrap sequence
2 participants