junh-ki / dias_kuksa

Pieces of connectivity implementation with Eclipse KUKSA for DIAS.
https://dias-kuksa-doc.readthedocs.io/en/latest/
GNU General Public License v3.0
4 stars 3 forks source link

Hono Client #3

Closed junh-ki closed 3 years ago

junh-ki commented 4 years ago
(Device to Cloud: connect data receiver) [source](https://docs.bosch-iot-suite.com/hub/getting-started/device-to-cloud/connect_data_receiver.html) ``` java -jar hono-cli-1.3.0-exec.jar \ --hono.client.host=messaging.bosch-iot-hub.com \ --hono.client.port=5671 \ --hono.client.tlsEnabled=true \ --hono.client.username=messaging@t20babfe7fb2840119f69e692f184127d \ --hono.client.password=s9VrzSsOQMzlSKFDgHrj \ --tenant.id=t20babfe7fb2840119f69e692f184127d \ --spring.profiles.active=receiver,telemetry ``` (Cloud to Device: connect data sender) [source](https://docs.bosch-iot-suite.com/hub/getting-started/cloud-to-device/connect_command_sender.html) ``` java -jar hono-cli-1.3.0-exec.jar \ --hono.client.host=messaging.bosch-iot-hub.com \ --hono.client.port=5671 \ --hono.client.tlsEnabled=true \ --hono.client.username=messaging@t20babfe7fb2840119f69e692f184127d \ --hono.client.password=s9VrzSsOQMzlSKFDgHrj \ --tenant.id=t20babfe7fb2840119f69e692f184127d \ --device.id=com.jun.examples:pc01 \ --spring.profiles.active=command ```
junh-ki commented 4 years ago

Developing a QPid-Proton-powered Python application should be the next step so that I can not only read but also store and manipulate the result. For this, I need to make my Python application able to connect to the north bound API (In the perspective of the Hono instance) using QPid Proton.

Refer to this: QPid Proton Python - Client Connectivity Guide

junh-ki commented 4 years ago

Or maybe you should use an AMQP 1.0 client example (maybe this is the most appropriate one for my use-case) AMQP 1.0 Client Example

it is recommended to do this with your personal laptop out of Bosch's internal network.

junh-ki commented 4 years ago

"POM is an acronym for Project Object Model. The pom. xml file contains information of project and configuration information for the maven to build the project such as dependencies, build directory, source directory, test source directory, plugin, goals etc. Maven reads the pom. xml file, then executes the goal."

junh-ki commented 4 years ago

$ java -jar example-consumer-1.0-SNAPSHOT.jar --hono.client.tlsEnabled=true --hono.client.username=messaging@t20babfe7fb2840119f69e692f184127d --hono.client.password=s9VrzSsOQMzlSKFDgHrj --tenant.id=t20babfe7fb2840119f69e692f184127d

junh-ki commented 4 years ago

You need to study Spring Application to post-process the data

junh-ki commented 4 years ago

You need to study Spring Application to post-process the data

https://github.com/junh-ki/dias_kuksa/commit/8795d220d9c9dae591d445df9fe8c75893387e49

Study with InfluxDB