Home > front end >  Websocket implementation with hardware communication
Websocket implementation with hardware communication

Time:10-31

I've been through a socket and hardware for network communication, to realize communication in web system, need to change to websocket and hardware communication, could you tell me how to implementation, I thank you

CodePudding user response:

You can develop a Windows service service, and then your hardware connected to the service, your web pages connected services, services are responsible for forwarding messages,

Forward and this is the logic (the same business logic) business services layer "receive - resolution - send", does not require hardware and web pages using the same underlying communication way,

CodePudding user response:

CodePudding user response:

1. You need to through the web server hardware to communicate with you, the data can exist in the database
2. On the front page can be displayed or issued instructions, through a web HTTP request with a backend server, then passed to the hardware webserver will result

CodePudding user response:

There is a problem is according to the specified device after sending the return value is true and false can't get to the hardware return data, send the front end of the communication of success and then returns true also request complete disconnect,

CodePudding user response:

So how do you get after sent via the send the return value of hardware
  • Related