Ewon TechForum
Providing technical solutions to technical requests


Convert JSON to eWOn tag
frederic.megrier Offline
Junior Member
#1
Question 
Hi all,

I would like read REST API server on local network (JSON file) and push result in eWOn tag, it's possible with Flexy205 ? Have you exemple ?

Best regards
Reply

simon Offline
eWON Support
#2
Mr Megrier,

Yes, it is possible.
To get the data, you must use the GETHTTP or REQUESTHTTPX functions (In BASIC or JAVA).
Once you get the data, you can read it from the response file (or using the function RESPONSEHTTPX only available in BASIC) and parse the json string to set the Tags.
Here is two Json parsing example :
Parse Json BASIC : https://techforum.ewon.biz/thread-108.html
Parse Json JAVA : https://developer.ewon.biz/content/parse...-io-server

Simon
Reply

dlong0 Offline
Junior Member
#3
Simon

Is it possible to get that parser added to the BASIC language?
Reply

simon Offline
eWON Support
#4
(08-04-2020, 04:46 PM)dlong0 Wrote: Simon

Is it possible to get that parser added to the BASIC language?

It would make sense indeed.

I will suggest the idea internally

Simon
Reply



Possibly Related Threads…
  Ewon Stops sending data Started by dlong0
7 Replies - 233 Views
24-06-2020, 09:47 AM
Last Post: simon
15-06-2020, 01:51 PM
Last Post: simon
18-05-2020, 05:25 PM
Last Post: simon
14-04-2020, 08:53 PM
Last Post: simon
  Creating Totaliser Within eWON Started by Josh
3 Replies - 1.421 Views
14-02-2020, 06:06 PM
Last Post: simon
  eWON and ThingWorx Started by simon
13 Replies - 7.292 Views
17-01-2020, 05:55 PM
Last Post: ltitel
07-01-2020, 03:34 PM
Last Post: simon
22-10-2019, 10:42 AM
Last Post: simon
03-09-2019, 02:08 PM
Last Post: simon
  MQTT eWon Flexy 205 Started by RFreist
3 Replies - 1.950 Views
18-07-2019, 12:30 PM
Last Post: simon



Users browsing this thread:
1 Guest(s)



Theme © Ewon 2019 - Forum software by © MyBB - Cookie policy