Hmissa
Posts: 6
Joined: Tue Jul 07, 2015 9:27 am

Send data from website to raspberry

Tue Jan 19, 2016 1:13 pm

Hi,
I have a website lodged on a server 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.

User avatar
topguy
Posts: 6491
Joined: Tue Oct 09, 2012 11:46 am
Location: Trondheim, Norway

Re: Send data from website to raspberry

Tue Jan 19, 2016 1:28 pm

This request doesn't really fit in "Troubleshooting".

There are many ways to solve this problem, and the choice of solution will probably depend mostly on the web-server.

Can you put PHP code on the server ? If yes then you can write server code that connects directly to a program on the RaspPi or via more general protocols like MQTT if that makes things easier.

This is a very general answer to a very general question.

Hmissa
Posts: 6
Joined: Tue Jul 07, 2015 9:27 am

Re: Send data from website to raspberry

Tue Jan 19, 2016 4:55 pm

i m so sorry for the warning place of the question.
i use the J2EE, my question if i can developpe a socket to transfer the data form the webserver to the RasPI?
the opposit sens it is ok ( from RasPi to the web ) but i have problem in the other sens (From web to Raspi ).

Thx.

Massi
Posts: 1691
Joined: Fri May 02, 2014 1:52 pm
Location: Italy

Re: Send data from website to raspberry

Tue Jan 19, 2016 4:58 pm

Hmissa wrote:i m so sorry for the warning place of the question.
i use the J2EE, my question if i can developpe a socket to transfer the data form the webserver to the RasPI?
the opposit sens it is ok ( from RasPi to the web ) but i have problem in the other sens (From web to Raspi ).

Thx.
what problem have you encountered developing a socket on raspberry?
is it the problem of choosing a language?

Return to “Troubleshooting”