Error connecting raspberry pi using ssl
Trying to connect Raspberry Pi to ThingWorx using the Edge MicroServer (EMS). Getting issue while binding the remote thing properties. Please guide to fix the issue. Something need to check
OS: Windows 10
Launched EMS sucessfully.
Configured the LSR & able to execute it (Logs: $ sudo ./luaScriptResource)
[FORCE] 2018-03-03 09:49:28,242 httpServer: starting http server port=8001 [INFO ] 2018-03-03 09:49:28,263 thingworx.shape: Creating a new shape. [INFO ] 2018-03-03 09:49:28,264 PiThing: -- Configuration ------------------------------- [INFO ] 2018-03-03 09:49:28,265 PiThing: scanRate: 1000 [INFO ] 2018-03-03 09:49:28,265 PiThing: scanRateResolution: 500 [INFO ] 2018-03-03 09:49:28,265 PiThing: taskRate: 30000 [INFO ] 2018-03-03 09:49:28,265 PiThing: keepAliveRate: 60000 [INFO ] 2018-03-03 09:49:28,265 PiThing: requestTimeout: 15000 [INFO ] 2018-03-03 09:49:28,265 PiThing: registerRate: 43200000 [INFO ] 2018-03-03 09:49:28,266 PiThing: register: true [INFO ] 2018-03-03 09:49:28,266 PiThing: getPropertySubscriptionOnRecon nect: false [INFO ] 2018-03-03 09:49:28,266 PiThing: maxConcurrentPropertyUpdates: 100 [INFO ] 2018-03-03 09:49:28,266 PiThing: defaultPushType: VALUE [INFO ] 2018-03-03 09:49:28,266 PiThing: useShapes: true [INFO ] 2018-03-03 09:49:28,266 PiThing: identifier: PiThing [INFO ] 2018-03-03 09:49:28,266 PiThing: ------------------------------ ------------------ [INFO ] 2018-03-03 09:49:28,267 thingworx.template: Adding shape 'shapes.metadata' to template 'thingworx.template' [INFO ] 2018-03-03 09:49:28,267 thingworx.template: Adding shape 'shapes.propsubscribe' to template 'thingworx.template' [INFO ] 2018-03-03 09:49:28,268 thingworx.template: Creating new templates.PiTemplate named 'PiThing' [INFO ] 2018-03-03 09:49:28,268 PiThing: -- Initializing properties --------------------- [INFO ] 2018-03-03 09:49:28,268 PiThing: Initialized property upToDate [baseType: BOOLEAN, pushType: NEVER, handler: nil, value: true] [INFO ] 2018-03-03 09:49:28,268 PiThing: Initialized property cpu_volt [baseType: NUMBER, pushType: VALUE, handler: nil, value: 0] [INFO ] 2018-03-03 09:49:28,269 PiThing: Initialized property cpu_temperature [baseType: NUMBER, pushType: VALUE, handler: nil, value: 0] [INFO ] 2018-03-03 09:49:28,269 PiThing: Initialized property cpu_freq [baseType: NUMBER, pushType: VALUE, handler: nil, value: 0] [INFO ] 2018-03-03 09:49:28,269 PiThing: ------------------------------ ------------------ [INFO ] 2018-03-03 09:49:28,269 Thingworx: Registering identifier *PiThing for thing PiThing [INFO ] 2018-03-03 09:49:29,270 PiThing: Identifier *PiThing registered with main Thingworx script for for Thing PiThing [INFO ] 2018-03-03 09:49:31,240 PiThing: -- Starting script -------------------------- [INFO ] 2018-03-03 09:49:31,240 PiThing: Registering core callback handler [INFO ] 2018-03-03 09:49:31,240 PiThing: Starting main loop [INFO ] 2018-03-03 09:49:31,240 PiThing: Calling lifecycle start listeners. [INFO ] 2018-03-03 09:49:31,241 shapes.propsubscribe: Initialized [INFO ] 2018-03-03 09:49:31,242 thingworx.handler: Creating a new handler.
as per mentioned here
Tested WS EMS online with following commands (on EMS - raspberry pi)
Remote Thing property is connected.
pi@raspberrypi:~ $ curl http://localhost:8000/Thingworx/Things/LocalEms/ Properties/isConnected {"rows":[{"isConnected":true}] ,"datashape":{" fieldDefinitions":{" isConnected":{"name":" isConnected","description":"", "baseType":"BOOLEAN","aspects" :{}}}}} pi@raspberrypi:~ $ curl http://localhost:8000/ Thingworx/Things/ SystemRepository/Properties/ name {"rows":[{"name":" SystemRepository"}]," datashape":{"fieldDefinitions" :{"name":{"name":"name"," description":"","baseType":" STRING","aspects":{}}}}}
Scripts is also running
pi@raspberrypi:~ $ curl http://localhost:8001/scripts 2 scripts installed Name Status Result File PiThing Running /home/pi/microserver/etc/ Thingworx Running /home/pi/ microserver/etc/
Issue: Not able to Bind the remote Thing properties. (here > 5. Bind the remote Thing properties.)
Remote Thing(PiThing) > Manage Bindings > 'remote' section - available properties not listed, giving error "Error browsing properties. Be sure the remote device/server is connected and configured properly".

