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.
Send data form web to raspberry pi
Modérateur : Francois
-
- Raspinaute
- Messages : 1587
- Enregistré le : dim. 10 mai 2015 18:44
- Localisation : Dans la campagne à côté d'Annecy
- Contact :
Re: Send data form web to raspberry pi
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
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
- BananaPI : Gentoo, disque SATA de 2 To
- Domotique : 1-wire, TéléInfo, Tablette passée sous Gentoo, ESP8266
- Multimedia par DNLA
- Et pleins d'idées ... et bien sûr, pas assez de temps.
Re: Send data form web to raspberry pi
i can send data like socket from web to Raspberry by using the SFTP or the FTP???? i dont want send a file.
Thx
Thx
-
- Raspinaute
- Messages : 1587
- Enregistré le : dim. 10 mai 2015 18:44
- Localisation : Dans la campagne à côté d'Annecy
- Contact :
Re: Send data form web to raspberry pi
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.
Because at web side, you have a PHP Socket module.
- BananaPI : Gentoo, disque SATA de 2 To
- Domotique : 1-wire, TéléInfo, Tablette passée sous Gentoo, ESP8266
- Multimedia par DNLA
- Et pleins d'idées ... et bien sûr, pas assez de temps.
-
- Administrateur
- Messages : 3233
- Enregistré le : mer. 17 sept. 2014 18:12
- Localisation : Seine et Marne
Re: Send data form web to raspberry pi
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 !!!!
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 !!!!
Passionné de Raspberry, Arduino, ESP8266, ESP32, et objets connectés :
Spécial débutant, concevez vous-même votre domotique DIY : https://www.youtube.com/c/DomoticDIY
Conception d'une station météo DIY, et envoi des infos à votre Domotique.
Spécial débutant, concevez vous-même votre domotique DIY : https://www.youtube.com/c/DomoticDIY
Conception d'une station météo DIY, et envoi des infos à votre Domotique.
Re: Send data form web to raspberry pi
Sinon il y a les solutions Get et Post qui fonctionnent parfaitement.
Raspberry Pi B, B+, Orange Pi et Arduino Pro Mini