Coder Social home page Coder Social logo

Comments (4)

ddebrunner avatar ddebrunner commented on May 20, 2024

In your device properties try setting the domain property to staging.internetofthings.ibmcloud.com.

from streamsx.waterconservation.starterkit.

ivanstreams avatar ivanstreams commented on May 20, 2024

Like this?

[device]
org = cvsmok
domain = staging.internetofthings.ibmcloud.com
type = iotSprinkler
id = rPiSprinkler1
auth-method = token
auth-token = streamers
ui-host = http://WaterIvanAuto.stage1.mybluemix.net
simulation = true

It did not work...

C:\Dev_Streams\WaterIvanAuto>java -jar smartsprinkler.edgent-1.1.0.jar
UI host configure to: http://WaterIvanAuto.stage1.mybluemix.net
Running Simulation: true
Moisture: 940.600677555731
Sprinkler: false
Avg: 940.600677555731
Aug 23, 2016 11:55:25 AM com.ibm.iotf.client.AbstractClient createClient
INFO: pool-1-thread-1-0cc9b664-d1a8-4265-a8b1-87e9042baec9: Org ID = cvsmok
Client ID = d:cvsmok:iotSprinkler:rPiSprinkler1
Aug 23, 2016 11:55:27 AM com.ibm.iotf.client.AbstractClient connect
INFO: pool-1-thread-1-0cc9b664-d1a8-4265-a8b1-87e9042baec9: Connecting client d:cvsmok:iotSprinkler:rPiSprinkler1 to ssl://cvsmok.messaging.internetofthings.ibm
cloud.com:8883 (attempt #1)...
MqttException (0) - java.net.UnknownHostException: cvsmok.messaging.internetofthings.ibmcloud.com
at org.eclipse.paho.client.mqttv3.internal.ExceptionHelper.createMqttException(ExceptionHelper.java:38)
at org.eclipse.paho.client.mqttv3.internal.ClientComms$ConnectBG.run(ClientComms.java:633)
at java.lang.Thread.run(Unknown Source)
Caused by: java.net.UnknownHostException: cvsmok.messaging.internetofthings.ibmcloud.com
at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at sun.security.ssl.SSLSocketImpl.connect(Unknown Source)
at org.eclipse.paho.client.mqttv3.internal.TCPNetworkModule.start(TCPNetworkModule.java:70)
at org.eclipse.paho.client.mqttv3.internal.SSLNetworkModule.start(SSLNetworkModule.java:82)
at org.eclipse.paho.client.mqttv3.internal.ClientComms$ConnectBG.run(ClientComms.java:619)

from streamsx.waterconservation.starterkit.

ddebrunner avatar ddebrunner commented on May 20, 2024

Ok - looks like that domain parameter support is in the IBM IoT client library but not yet in a release.

You could try to build the library and replace the one in Edgent.

https://github.com/ibm-watson-iot/iot-java

from streamsx.waterconservation.starterkit.

molefeskosana avatar molefeskosana commented on May 20, 2024

Hi, is there a solution to this problem as yet?

from streamsx.waterconservation.starterkit.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.