Bundle start too early (before network connectivity) [message #1795179] |
Mon, 17 September 2018 22:01  |
Eclipse User |
|
|
|
I've developed an integration between Eclipse Kura 3.2 (on RPI) and Oracle IoT Cloud.
The integration has been developed as a configurable components, that reads messages from a configured topic and using Oracle IOT Gateway library sends messages to Oracle IoT CS.
Everything works fine if, after booting the RPI, I restart Kura (systemctl stop-start).
But if I try right after the RPI start, if doesn't send messages to Oracle IoT.
In kura.log I see
[Component Resolve Thread (Bundle 7)] ERROR o.e.k.e.I.OracleIoTClient - java.net.UnknownHostException: oc-144-21-82-178.compute.oraclecloud.com
It seems that the bundle is executing the first code accessing Oracle IoT (dowloading DeviceModels), too early, when network connection is not established.
Is there a way to start the bundle **only after** the newtwork connectivity has been setup?
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.25485 seconds