diff --git a/README.md b/README.md index c5c1b00..8ae2246 100644 --- a/README.md +++ b/README.md @@ -27,6 +27,11 @@ installed [Eclipse Kura User Workspace](https://www.eclipse.org/kura/downloads.p The binary package ready for the installation can be found in folder "**resources/dp**". *** +## Basic example client mqtt Paho +Watch the video on youtube. + +[![Watch the video](https://img.youtube.com/vi/YRbg1flWMgs/0.jpg)](https://www.youtube.com/watch?v=YRbg1flWMgs) +*** ## Links Documentation: * https://www.eclipse.org/paho/ diff --git a/SnapshotKura410/.project b/SnapshotKura410/.project new file mode 100644 index 0000000..6d5ea88 --- /dev/null +++ b/SnapshotKura410/.project @@ -0,0 +1,11 @@ + + + Snapshot + + + + + + + + diff --git a/SnapshotKura410/RPi3/snapshot410_RPi3_192_168_1_39.xml b/SnapshotKura410/RPi3/snapshot410_RPi3_192_168_1_39.xml new file mode 100644 index 0000000..1cc9f5f --- /dev/null +++ b/SnapshotKura410/RPi3/snapshot410_RPi3_192_168_1_39.xml @@ -0,0 +1,814 @@ + + + + + memory + + + true + + + false + + + 4 + + + org.eclipse.kura.core.data.transport.mqtt.MqttDataTransport + + + 20 + + + org.eclipse.kura.core.data.transport.mqtt.MqttDataTransport + + + org.eclipse.kura.core.data.transport.mqtt.MqttDataTransport-1632682667179-0 + + + mqtt://broker-url:1883/ + + + cGFzc3dvcmQ= + + + 30 + + + account-name + + + $EDC/#account-name/#client-id/MQTT/LWT + + + 0 + + + use-ssl-service-config + + + org.eclipse.kura.core.cloud.factory.DefaultCloudServiceFactory + + + username + + + + + + + 0.pool.ntp.org + + + 123 + + + java-ntp + + + 0 + + + 3600 + + + true + + + 10000 + + + false + + + 5 + + + org.eclipse.kura.clock.ClockService + + + org.eclipse.kura.clock.ClockService + + + + + + + 00:00:00:00:00:00 + + + wlan0,lo,eth0 + + + B8:27:EB:E8:2B:12 + + + 172.16.0.110 + + + false + + + ACTIVATED + + + 172.16.1.100 + + + netIPv4StatusEnabledLAN + + + 24 + + + 01-3b33decd + + + wlan0 + + + RADIO_MODE_80211g + + + false + + + 127.0.0.1 + + + 24 + + + CIPHER_TKIP CIPHER_CCMP WPA RSN + + + 24 + + + SECURITY_WPA2 + + + + + + false + + + 1 + + + false + + + g + + + 192.168.1.39 + + + B8:27:EB:BD:7E:47 + + + false + + + lo + + + WIFI + + + INFRA + + + false + + + false + + + ec00 + + + false + + + 7200 + + + nl80211 + + + false + + + DISCONNECTED + + + 7200 + + + unknown + + + smsc95xx + + + + + + true + + + false + + + ETHERNET + + + 172.16.0.100 + + + 0424 + + + + + + 127.0.0.1 + + + 8 + + + SECURITY_NONE + + + 0 + + + false + + + + + + false + + + false + + + false + + + false + + + false + + + netIPv4StatusEnabledLAN + + + false + + + MASTER + + + + + + false + + + 1 2 3 4 5 6 7 8 9 10 11 + + + 255.0.0.0 + + + 24 + + + brcmfmac + + + INFRA + + + 1500 + + + + + + false + + + false + + + kura_gateway_B8:27:EB:2B:4E:35 + + + 8 + + + + + + 80.58.61.254 + + + true + + + 192.168.1.39 + + + + + + + + + ACTIVATED + + + + + + 127.0.0.1 + + + 1500 + + + 7.45.98.94 + + + + + + + + + 7200 + + + LOOPBACK + + + 172.16.1.110 + + + 65536 + + + unknown + + + 1.1 + + + 127.0.0.1 + + + dGVzdEtFWVM= + + + + + + true + + + smsc95xx USB 2.0 Ethernet + + + true + + + eth0 + + + unknown + + + + + + true + + + 192.168.1.255 + + + 7200 + + + CCMP + + + true + + + true + + + nl80211 + + + 1 + + + + + + false + + + netIPv4StatusDisabled + + + 5.10.17-v7+ + + + true + + + 255.255.255.0 + + + + + + + 115200 + + + 0.0 + + + 8 + + + false + + + 1-3.2 + + + 1 + + + 0 + + + 0.0 + + + false + + + org.eclipse.kura.position.PositionService + + + 0.0 + + + org.eclipse.kura.position.PositionService + + + + + + + /tmp + + + # myRequestType=MyDeploymentHook + + + org.eclipse.kura.core.deployment.CloudDeploymentHandlerV2 + + + org.eclipse.kura.core.deployment.CloudDeploymentHandlerV2 + + + + + + + localhost + + + 1883 + + + mqtt + + + false + + + org.eclipse.kura.broker.artemis.simple.mqtt.BrokerInstance + + + org.eclipse.kura.broker.artemis.simple.mqtt.BrokerInstance + + + + + + + 10000 + + + /opt/eclipse/kura/data/kura-reboot-cause + + + /dev/watchdog + + + false + + + org.eclipse.kura.watchdog.WatchdogService + + + org.eclipse.kura.watchdog.WatchdogService + + + + + + + $EDC + + + birth-connect-reconnect + + + Raspberry Pi 2 + + + device-name + + + kura-protobuf + + + false + + + org.eclipse.kura.cloud.CloudService + + + org.eclipse.kura.cloud.CloudService + + + org.eclipse.kura.cloud.CloudService-1632682667766-1 + + + true + + + false + + + true + + + (kura.service.pid=org.eclipse.kura.data.DataService) + + + org.eclipse.kura.core.cloud.factory.DefaultCloudServiceFactory + + + + + + + 60 + + + 0 + + + true + + + 9 + + + org.eclipse.kura.data.DataService + + + 10 + + + 10 + + + org.eclipse.kura.data.DataService + + + org.eclipse.kura.data.DataService-1632682667786-2 + + + 900 + + + false + + + SECONDS + + + 1 + + + org.eclipse.kura.db.H2DbService + + + (kura.service.pid=org.eclipse.kura.core.data.transport.mqtt.MqttDataTransport) + + + 60 + + + false + + + 1 + + + org.eclipse.kura.core.cloud.factory.DefaultCloudServiceFactory + + + true + + + 1000 + + + + + + + admin + + + YWRtaW4= + + + org.eclipse.kura.web.Console + + + org.eclipse.kura.web.Console + + + + + + + 22,tcp,0.0.0.0/0,,,,,#;80,tcp,0.0.0.0/0,eth0,,,,#;80,tcp,0.0.0.0/0,wlan0,,,,#;80,tcp,10.234.0.0/16,,,,,#;1450,tcp,0.0.0.0/0,eth0,,,,#;1450,tcp,0.0.0.0/0,wlan0,,,,#;502,tcp,127.0.0.1/32,,,,,#;53,udp,0.0.0.0/0,eth0,,,,#;53,udp,0.0.0.0/0,wlan0,,,,#;67,udp,0.0.0.0/0,eth0,,,,#;67,udp,0.0.0.0/0,wlan0,,,,#;8000,tcp,0.0.0.0/0,eth0,,,,#;8000,tcp,0.0.0.0/0,wlan0,,,,# + + + + + + + + + + + + + {"components":[],"wires":[]} + + + org.eclipse.kura.wire.graph.WireGraphService + + + org.eclipse.kura.wire.graph.WireGraphService + + + + + + + TLSv1.2 + + + 29 + + + /opt/eclipse/kura/user/security/cacerts.ks + + + org.eclipse.kura.ssl.SslManagerService + + + Z2pwYXRiMTl1cjJ0ZXA4aDIwaXBkMXA2aTRzc2U0ZWE= + + + true + + + org.eclipse.kura.ssl.SslManagerService + + + org.eclipse.kura.ssl.SslManagerService + + + + + + + YWRtaW4= + + + + + assets + + + + + admin + + + + + org.eclipse.kura.internal.rest.provider.RestService + + + org.eclipse.kura.internal.rest.provider.RestService + + + + + + + MQTT + + + false + + + org.eclipse.kura.broker.artemis.xml.BrokerInstance + + + org.eclipse.kura.broker.artemis.xml.BrokerInstance + + + + + + + 60 + + + false + + + org.eclipse.kura.cloud.app.command.CommandCloudApp + + + org.eclipse.kura.cloud.app.command.CommandCloudApp + + + + + + + SA + + + 10 + + + jdbc:h2:mem:kuradb + + + 15 + + + org.eclipse.kura.core.db.H2DbService + + + 900 + + + org.eclipse.kura.db.H2DbService + + + org.eclipse.kura.core.db.H2DbService-1632682667903-3 + + + + diff --git a/SnapshotKura410/RPi4/snapshot410_RPi4_192_168_1_39.xml b/SnapshotKura410/RPi4/snapshot410_RPi4_192_168_1_39.xml new file mode 100644 index 0000000..df63ff6 --- /dev/null +++ b/SnapshotKura410/RPi4/snapshot410_RPi4_192_168_1_39.xml @@ -0,0 +1,747 @@ + + + + + 0.pool.ntp.org + + + 123 + + + java-ntp + + + 0 + + + 3600 + + + true + + + 10000 + + + false + + + 5 + + + org.eclipse.kura.clock.ClockService + + + org.eclipse.kura.clock.ClockService + + + + + + + 00:00:00:00:00:00 + + + wlan0,lo,eth0 + + + DC:A6:32:EE:CA:25 + + + 172.16.0.110 + + + false + + + ACTIVATED + + + 172.16.1.100 + + + netIPv4StatusEnabledLAN + + + 24 + + + 01-88ee44ea + + + wlan0 + + + RADIO_MODE_80211g + + + false + + + 127.0.0.1 + + + 24 + + + CIPHER_TKIP CIPHER_CCMP WPA RSN + + + 24 + + + SECURITY_WPA2 + + + + + + false + + + 1 + + + false + + + g + + + 192.168.1.39 + + + DC:A6:32:EE:CA:26 + + + false + + + lo + + + WIFI + + + 24 + + + INFRA + + + false + + + 172.16.1.255 + + + false + + + false + + + 7200 + + + nl80211 + + + false + + + ACTIVATED + + + 7200 + + + unknown + + + bcmgenet + + + + + + true + + + true + + + ETHERNET + + + 172.16.0.100 + + + + + + 127.0.0.1 + + + 8 + + + SECURITY_NONE + + + 0 + + + 127.0.0.1 + + + false + + + + + + false + + + 255.255.255.0 + + + false + + + false + + + false + + + false + + + netIPv4StatusEnabledLAN + + + false + + + MASTER + + + + + + false + + + 1 2 3 4 5 6 7 8 9 10 11 + + + 255.0.0.0 + + + 24 + + + brcmfmac + + + INFRA + + + 1500 + + + + + + false + + + false + + + kura_gateway_B8:27:EB:2B:4E:35 + + + 8 + + + + + + 80.58.61.254 + + + true + + + 192.168.1.39 + + + + + + + + + 80.58.61.254 + + + ACTIVATED + + + + + + 127.0.0.1 + + + 1500 + + + 7.45.206 + + + + + + + + + 7200 + + + LOOPBACK + + + 172.16.1.110 + + + 65536 + + + unknown + + + 127.0.0.1 + + + dGVzdEtFWVM= + + + + + + true + + + + + + true + + + eth0 + + + 172.16.1.1 + + + unknown + + + + + + true + + + 192.168.1.255 + + + 7200 + + + CCMP + + + true + + + true + + + nl80211 + + + + + + false + + + netIPv4StatusDisabled + + + v2.0 + + + true + + + 255.255.255.0 + + + + + + + 115200 + + + 0.0 + + + 8 + + + false + + + 1-3.2 + + + 1 + + + 0 + + + 0.0 + + + false + + + org.eclipse.kura.position.PositionService + + + 0.0 + + + org.eclipse.kura.position.PositionService + + + + + + + localhost + + + 1883 + + + mqtt + + + false + + + org.eclipse.kura.broker.artemis.simple.mqtt.BrokerInstance + + + org.eclipse.kura.broker.artemis.simple.mqtt.BrokerInstance + + + + + + + 10000 + + + /opt/eclipse/kura/data/kura-reboot-cause + + + /dev/watchdog + + + false + + + org.eclipse.kura.watchdog.WatchdogService + + + org.eclipse.kura.watchdog.WatchdogService + + + + + + + admin + + + YWRtaW4= + + + org.eclipse.kura.web.Console + + + org.eclipse.kura.web.Console + + + + + + + 22,tcp,127.0.0.1/0,,,,,#;80,tcp,127.0.0.1/0,eth0,,,,#;80,tcp,127.0.0.1/0,wlan0,,,,#;80,tcp,10.234.0.0/16,,,,,#;1450,tcp,127.0.0.1/0,eth0,,,,#;1450,tcp,127.0.0.1/0,wlan0,,,,#;502,tcp,127.0.0.1/32,,,,,#;53,udp,127.0.0.1/0,eth0,,,,#;53,udp,127.0.0.1/0,wlan0,,,,#;67,udp,127.0.0.1/0,eth0,,,,#;67,udp,127.0.0.1/0,wlan0,,,,#;8000,tcp,127.0.0.1/0,eth0,,,,#;8000,tcp,127.0.0.1/0,wlan0,,,,# + + + + + + + + + + + + + {"components":[],"wires":[]} + + + org.eclipse.kura.wire.graph.WireGraphService + + + org.eclipse.kura.wire.graph.WireGraphService + + + + + + + TLSv1.2 + + + 29 + + + /opt/eclipse/kura/user/security/cacerts.ks + + + org.eclipse.kura.ssl.SslManagerService + + + dDYxb21jMnNwb2M1NzY3cDlmcjRlYmxsbWZlNm4zaw== + + + true + + + org.eclipse.kura.ssl.SslManagerService + + + org.eclipse.kura.ssl.SslManagerService + + + + + + + YWRtaW4= + + + + + assets + + + + + admin + + + + + org.eclipse.kura.internal.rest.provider.RestService + + + org.eclipse.kura.internal.rest.provider.RestService + + + + + + + MQTT + + + false + + + org.eclipse.kura.broker.artemis.xml.BrokerInstance + + + org.eclipse.kura.broker.artemis.xml.BrokerInstance + + + + + + + 60 + + + false + + + org.eclipse.kura.cloud.app.command.CommandCloudApp + + + org.eclipse.kura.cloud.app.command.CommandCloudApp + + + + + + + SA + + + 10 + + + jdbc:h2:mem:kuradb + + + 15 + + + org.eclipse.kura.core.db.H2DbService + + + 900 + + + org.eclipse.kura.db.H2DbService + + + org.eclipse.kura.core.db.H2DbService-1633028988424-4 + + + + + + + memory + + + true + + + false + + + 4 + + + org.eclipse.kura.core.data.transport.mqtt.MqttDataTransport + + + 20 + + + org.eclipse.kura.core.data.transport.mqtt.MqttDataTransport + + + mqtt://broker-url:1883/ + + + cGFzc3dvcmQ= + + + 30 + + + account-name + + + $EDC/#account-name/#client-id/MQTT/LWT + + + 0 + + + org.eclipse.kura.core.cloud.factory.DefaultCloudServiceFactory + + + username + + + + + + + 60 + + + 0 + + + 9 + + + org.eclipse.kura.data.DataService + + + 10 + + + org.eclipse.kura.data.DataService + + + 900 + + + false + + + (kura.service.pid=org.eclipse.kura.core.data.transport.mqtt.MqttDataTransport) + + + 60 + + + org.eclipse.kura.core.cloud.factory.DefaultCloudServiceFactory + + + true + + + 1000 + + + + + + + true + + + (kura.service.pid=org.eclipse.kura.data.DataService) + + + Raspberry Pi 2 + + + org.eclipse.kura.core.cloud.factory.DefaultCloudServiceFactory + + + org.eclipse.kura.cloud.CloudService + + + +