"And now for something completely different ..."
I'm putting together a project that will connect a Miva store to an industrial-automation system, so that the store can send messages to the machines and receive status messages. The protocol for talking to the machines is reasonably simple, but the source code I've seen uses Internet "sockets" instead of the usual HTTP request/response API. Can a Miva module work with sockets?
I must admit that I don't know much about sockets. From the code I've seen, they use a pretty basic "open, send, receive, close" form of communication. But I don't know how that relates to the sort of HTTP communication that MvCALL can do.
I'll guess that, if there's no easier solution, I can write a PHP or Python script that will run on the store's server. It will accept incoming MvCALLs from the module, perform the communication via sockets, and pass the result back to the store as the reply to the MvCALL. Is that correct?
I'm hoping that someone here has experience with this sort of hookup, and maybe can even send me a script that will do the job. Or maybe there's an open-source program that I can use. What do y'all think?
Thanks --
I'm putting together a project that will connect a Miva store to an industrial-automation system, so that the store can send messages to the machines and receive status messages. The protocol for talking to the machines is reasonably simple, but the source code I've seen uses Internet "sockets" instead of the usual HTTP request/response API. Can a Miva module work with sockets?
I must admit that I don't know much about sockets. From the code I've seen, they use a pretty basic "open, send, receive, close" form of communication. But I don't know how that relates to the sort of HTTP communication that MvCALL can do.
I'll guess that, if there's no easier solution, I can write a PHP or Python script that will run on the store's server. It will accept incoming MvCALLs from the module, perform the communication via sockets, and pass the result back to the store as the reply to the MvCALL. Is that correct?
I'm hoping that someone here has experience with this sort of hookup, and maybe can even send me a script that will do the job. Or maybe there's an open-source program that I can use. What do y'all think?
Thanks --
Comment