JSON from Mervis ?
-
I need to communicate with a device that as a JSON API.
What is the simplest solution in Mervis?
Do you have some example code?
Many thanks in advance. -
Hello @pascal37,
the Mervis is a sort of a world on its own and it is complicated to make it communicate over anything else then supported protocols. Any other type of communication is usually done via local ModbusTCP master written in Python and pushing data to ModbusTCP slave configured in the Mervis. The Pymodbus library is especially handy for this.Best regards,
Martin -
Hi @martin-kudláček,
Thanks for your help.
Is it possible to run the Pymodbus library + python script on the same Axon PLC?
Do you have some example code and tutorial how to deploy it?
Many thanks in advance. -
Hi @pascal37 ,
sure you can run the python scrip on the same Axon. We do not have a tutorial for that, but once you enable ssh (via service interface or using the new upcomming Mervis IDE) you will have access to a linux machine as you know.