How to display API REST value to LCD 16x2

Hi thinger master,

i want to take data from thinger.io and display it to liquidcrystal LCD 16x2
i have tried using REST API address and here the result from browser

i have also tried using AT-Command

AT+CGATT=1
AT+SAPBR=3,1, "CONTYPE", "GPRS"
AT+SAPBR=3,1, "APN", "indosatgprs"
AT+SAPBR=3,1, "USER", "indosat"
AT+SAPBR=3,1, "PWD", "indosat"
AT+SAPBR=1,1
AT+HTTPINIT
AT+HTTPPARA="URL", "https://backend.thinger.io/v3/users/tandonwonokitri/devices/LoggerWonokitri02/resources/TAWonokitri?authorization=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE2MDYxMDk3MjYsImlhdCI6MTYwNjEwMjUyNiwicm9sZSI6InVzZXIiLCJ1c3IiOiJ0YW5kb253b25va2l0cmkifQ.TYm_Jt72tVc-6ZOT9GZahBFnQi5T8lD7E7Nm7G3pokU"
AT+HTTPPARA="CONTENT","application/json"
AT+HTTPACTION=0
AT+HTTPREAD=0,20

but the result show empty

can you give me sample code to do that?? thanks

Hello @arimukhlas,

I think the problem is that the credential of your rest API has expired. You have to create a permanent one using the device token or an access token.

The AT commands seems to be right… maybe I’m missing the GET method. Is it possible?

best

thanks for reply, i have changed the temporary authorization key to permanent token, now i have successed get data through serial monitor
thinger

can you tell me how to take the value so i can display it to LCD?
thanks so much

You got the values. How to process them further, is up to your program.
You might ask support from Arduino fora, if you got stuck.

hi @arimukhlas,

Note that now you have a string with json format, so best way to work with it will be using arduinojson lib. Better option may be try to adapt thinger’s software client to your pcb. What device are you using?

best