Sending data to thingsboard using java
In order to send data to thingsboard using or from java first, you need to create a device on thingsboard. If you do not know how to create a device on thingsboard please follow the steps which are given on below link.
Sending data to thingsboard using java:
Steps for sending data to thingsboard using java is given below.
1)Assume you have created the device on thingsboard.
2)Once you create a device one device token gets assign to you. Inorder to see your device token please click on the token of your created device which is shown below.
3)Once you click on the token then you will see the following kind of token. which we required while sending data.
4)On thingsboard data comes to the latest telemetry field of your device. please click anywhere on device to see the lastest telemetry filed which is shown below. since right now there is no data you are not able to see anything in the latest telemetry field.
5)Download the following java project to send data to thingsboard.Sending data to thingsboard using java (180 downloads)
6)Once you download the above java project and extract it. Open the downloaded java project with an eclipse IDE
7)Please modify the token of your device in the downloaded project and run the code.
8)Once update token and run code you will see the following things on your eclipse console.
9)In order to see published data on thingboard please check latest telemetry field of your device.