Page 1 sur 1
Send data form web to raspberry pi
Posté : mar. 19 janv. 2016 14:28
par hmissa
Hi,
I have a website lodged on a server (not loged on Rpi) and i want to make a code allow to send data from the website to the raspberry pi conneted on internet.
example :
when i click a button in this website, a data sended to the Raspberry pi.
Thanks.
Re: Send data form web to raspberry pi
Posté : mar. 19 janv. 2016 16:50
par destroyedlolo
Hi,
It will mostly depend on what you want to tranfert and what you have installed on your PI.
If you want only to send data, the easiest way would be to use ftp or sftp : all the API is present on PHP.
Bye
Re: Send data form web to raspberry pi
Posté : mar. 19 janv. 2016 17:56
par hmissa
i can send data like socket from web to Raspberry by using the SFTP or the FTP???? i dont want send a file.
Thx
Re: Send data form web to raspberry pi
Posté : mar. 19 janv. 2016 20:19
par destroyedlolo
In this case, the biggest problem is what will the socket consumer at PI's side ?
Because at web side, you have a PHP Socket module.
Re: Send data form web to raspberry pi
Posté : mar. 19 janv. 2016 20:29
par domi
Bonjour,
Nous sommes sur des forums Français, dans une communauté Française.
Le but de ce forum est justement d'avoir été créé pour la communauté francophone, merci de le respecter.
A voir
ce message, le français ne semble pas vous déranger !!!!
Re: Send data form web to raspberry pi
Posté : jeu. 21 janv. 2016 17:46
par Clemzo
Sinon il y a les solutions Get et Post qui fonctionnent parfaitement.