Can Kepware receive JSON data from a JSON post?
Hello,
I'd really like to find out if Kepware can receive JSON data resulting from a JSON post.
Thank you
Hello,
I'd really like to find out if Kepware can receive JSON data resulting from a JSON post.
Thank you
Hi SB,
Thanks for writing in. I believe you wish to ingest a custom JSON structure from another system, and that we should act as an HTTP server in order to receive a POST command that will share this custom structure. Can you also help me understand where you want the data to go once Kepware has recived this JSON structure? In other words, over what server interface will Kepware send the parsed data? OPC DA? OPC UA? MQTT? SQL? Etc.
Regardless of the data output, the tool that Kepware offers for ingestion/receipt and parsing of custom JSON structures over HTTP is our Universal Device Driver. This is user-customizable driver with a Javascript-based API. Here is the Kepware product page for this tool and below that I've linked sample code. FYI that the closest sample code to your requirement is likely the "CSV file import" sample code; I built a server-side UDD profile to consume JSON-type structures pushed from the related Python script. You can ignore the Python script and just look at the UDD portion to see how the profile is configured for "server" mode and payload parsing:
UDD: Universal Device Driver (UDD) | OPC Server | Kepware
PTC Github for UDD Example Code: Universal-Device-Driver-Examples/Generic Use Cases/CSV Data Import at main · PTCInc/Universal-Device-Driver-Examples · GitHub
If you need any further help please send an email to my Kepware Solutions Consulting team: presales.support@kepware.com.
Thanks,
Sam
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.