Send data form web to raspberry pi

Vous avez réalisé ou vous voulez réaliser un truc impensable avec votre Raspberry Pi ? Cet endroit est pour vous...

Modérateur : Francois

Répondre
hmissa
Messages : 3
Enregistré le : mar. 7 juil. 2015 12:33

Send data form web to raspberry pi

Message par hmissa » mar. 19 janv. 2016 14:28

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.

destroyedlolo
Raspinaute
Messages : 1586
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

Message par destroyedlolo » mar. 19 janv. 2016 16:50

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
  • 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.
Un descriptif de ma domotique 100% fait maison.

hmissa
Messages : 3
Enregistré le : mar. 7 juil. 2015 12:33

Re: Send data form web to raspberry pi

Message par hmissa » mar. 19 janv. 2016 17:56

i can send data like socket from web to Raspberry by using the SFTP or the FTP???? i dont want send a file.

Thx

destroyedlolo
Raspinaute
Messages : 1586
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

Message par destroyedlolo » mar. 19 janv. 2016 20:19

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.
  • 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.
Un descriptif de ma domotique 100% fait maison.

domi
Administrateur
Messages : 3233
Enregistré le : mer. 17 sept. 2014 18:12
Localisation : Seine et Marne

Re: Send data form web to raspberry pi

Message par domi » mar. 19 janv. 2016 20:29

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 !!!!
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.

Avatar du membre
Clemzo
Messages : 55
Enregistré le : ven. 17 oct. 2014 16:36

Re: Send data form web to raspberry pi

Message par Clemzo » jeu. 21 janv. 2016 17:46

Sinon il y a les solutions Get et Post qui fonctionnent parfaitement.
Raspberry Pi B, B+, Orange Pi et Arduino Pro Mini

Répondre

Retourner vers « Utilisateurs avancés »