??? 04/09/08 23:19 Read: times |
#153101 - No can do Responding to: ???'s previous message |
Karandeep Singh said:
but what i want is that,uploading or downloading is by initiated by web server(website) How to do that??
that is if a button is clicked on a website then embedded kit upload a data by POST method to website. You can't. As I said before your embedded kit must contact the website every so often. If your terminal is the client and your website is the server, communication will always be initiated by the terminal. What you can do is have your embedded kit connect to the server every 60 seconds. It identifies itself to the server by passing the necessary parameters to the server by using either a GET or POST. Then the server checks to see if that "button" on the website was previously pressed. If it was then the server sends the required information to the embedded kit. How does the website know that the button was pressed previously? With a database. When your user clicks a button on the website, all the website does is store that fact in the database. When the embedded kit connects to the server, the server checks the database to see if the user clicked the button and then does what it needs to do. If the button is a button requesting that the embedded terminal upload its data, that's redundant. Just have the embedded terminal send all its data to the server every time it connects to the server. But, for example, there is no way for a user to press a button on 8052.com and have a device somewhere in the world immediately connect to 8052.com. The only way to accomplish it is for the device somewhere in the world to be connecting to 8052.com every couple of minutes and then ask 8052.com if someone has pressed that button since the last time it connected and then do whatever it needs to do based on that fact. That's polling and is what I explained to you before. Regards, Craig Steiner |