cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Want the oppurtunity to discuss enhancements to PTC products? Join a working group! X

Edge Java sdk

mewees
2-Guest

Edge Java sdk

Hello There,

i have implement a small project on my rasspberry pi  to send it's temperature to thingworx platform successfully.

i have done this using LUA script, but i need to do the sam using java (E-SDK).

can any one help me with that or tell me where to start ?

thanks in advance .

4 REPLIES 4
jamesm1
5-Regular Member
(To:mewees)

H​ey Mohamed,​

Is there something specific you have questions about or need examples for? There is a Java SDK quickstart guide on the developer zone, and there are sample projects included with the Java SDK for a simple sensor and a steam sensor; this is where I would start.

Thanks,

-James

jamesm1
5-Regular Member
(To:mewees)

Hey Mohamed,

I was also able to find this Academic program guide that is specifically around reading Raspberry Pi data using the Java SDK. Hopefully this is helpful!

https://www.thingworx.com/ecosystem/academic-program/iot-projects/weather-app-raspberry-pi/

Thanks,

-James

thanks a lot Games.
i will check this but is there anything more simple as the examples in this link is a little bit advanced.

jamesm1
5-Regular Member
(To:mewees)

The project files are included at the bottom of the Academic post -- it should be as simple as downloading this project, building it, and running the executable jar on your Raspberry Pi as such:

java -jar ./temperature-thing-jar-with-dependencies.jar thingworxURI appKey simulated`

where thingworx URI is your URI and appKey is your app key.

Let me know if you're running in to issues; the only other change you may need to make is around whether your twx server is using SSL and/or self-signed certificates.

Top Tags