Quantcast
Viewing all articles
Browse latest Browse all 4860

General discussion • Re: Control app on Raspberry from PC

Hello,
I'm going to start a new project and I'm thinking about the architecture and tools.

I'm wondering if it is possible to do a thing I have in mind and would like to ask your opinion.

I would like to set up a raspberry without GUI. Then I'll implement an app (written in C++, since this is the only language I know well), this app will be launched upon the startup of the RaspberryPi and will run until shutdown. And now there's the question: I would like to connect Raspberry to a PC for example with an ethernet cable and then launch another app on the PC with its own GUI and interact with the app on the RaspberryPi. Let's think about the most simple scenario: turn on a led when pressing an on/off button on the GUI on the PC.

Do you think something like this is possible? I've thought about using websockets to communicate between the Raspberry and the PC but this would require to install a web server on the Rapsberry and it is a quite complex mechanism, do you think the same thing could be achived in other ways?

Hope I was able to explain my self...
Congratulations! You've invented the World Wide Web.

Use a web server on the Pi. Connect with a web browser on the PC. Done.

If you want to write a custom app on the PC because you don't like the convenience and versatility of a web interface then you can use sockets (just sockets) to connect to your process running on the Pi. Or a slightly higher level protocol such as mqtt.

Statistics: Posted by ame — Tue Jun 11, 2024 11:36 pm



Viewing all articles
Browse latest Browse all 4860

Trending Articles