Skip to main content
1-Visitor
January 11, 2016
Question

My remote thing is not getting connected, why?

  • January 11, 2016
  • 4 replies
  • 5858 views

Hi,

I have added a remote thing, It was working til the previous day.BUt now its showing "isconnected" as "false" after connecting also.

What might be the reason behind this?

4 replies

1-Visitor
January 11, 2016

Check the code

1-Visitor
January 11, 2016

Hi Supriya V,

Can you please post a screenshot of your Command Line output after running the jar file for temperature-thing-jar-with-dependencies along with the command for running it? 

Thank you,

Veronica

1-Visitor
January 11, 2016

Hi veronica,

is it possible to connect to more than one thing using same C SDK?

1-Visitor
January 12, 2016

Hi Anup G Prasad,

Yes, it is possible, you just need to bind more than one Thing using this method :

  /* Bind our thing */

  twApi_BindThing(thingName);

You also need to separately register the properties you need for the Thing :

  /* Regsiter our properties */

   twApi_RegisterProperty(TW_THING, thingName, "Temperature", TW_NUMBER, NULL, "ALWAYS", 0, propertyHandler,NULL);

   twApi_RegisterProperty(TW_THING, thingName, "Humidity", TW_NUMBER, NULL, "ALWAYS", 0, propertyHandler,NULL);

Best regards,

Veronica

5-Regular Member
January 13, 2016

Are you connecting via an EMS or SDK?

1-Visitor
January 20, 2016

@Ravi am connecting via c sdk

1-Visitor
January 28, 2016

Hello Anup,

Can you please share with me the structures of progSets and progSets1?

Thank you,

Ciprian

1-Visitor
January 29, 2016

Hi Ciprian,

progSet

tw_host=ge2-3611.cloud.thingworx.com

tw_port=80

AppKey=118e56a5-a714-432f-a4d2-5fb770d04824

ScanRate=2000

Name=RaspberryPi_C_11364156447720966

ComPortId=/dev/ttyAMA0

SimMode=true

PinConfig=pinConfig_rPi.json

Debug=false

progset1

tw_host=ge2-3611.cloud.thingworx.com

tw_port=80

AppKey=118e56a5-a714-432f-a4d2-5fb770d04824

ScanRate=2000

Name=Am2302

ComPortId=/dev/ttyAMA0

SimMode=true

PinConfig=pinConfig_rPi.json

Debug=false