How does one modify the variable value defined by the client through the server (with web interface? The server is written in PHP. of course, it also contains & nbsp; js & nbsp; and so on. The client is written in C language on the device. PS: authpuppy authentication server and wifidog written on the router. To achieve this, set an option on the server interface. Save the option and pass the value to a variable on the client. assume that the variable is Timeout. Is there any good way to think about how to modify the variable value defined by the client through the server (with web interface?
The server is written in PHP. of course, it also contains js and so on. The client is written in C language on the device.
PS: authpuppy authentication server and wifidog written on the router.
To achieve this, set an option on the server interface. Save the option and pass the value to a variable on the client. assume that the variable is Timeout.
Is there any good method or idea?
------ Solution --------------------
Check whether your client supports duplex communication.
Generally, the ticket is relatively simple (the client requests, the server returns data), and the client does not need to be so complicated. Only less real-time
Duplex communication is actually a listener function (server request, client return data) on the client, which is real-time, but the cost is much higher.
No matter what language you use, as long as you follow the agreement, there will be no problem.