Page 1 of 1

Sending commands via QT GUI from a PC to RPi [ SOLVED ]

Posted: Thu Aug 07, 2014 1:03 pm
by triplemdw
Hello everyone,

Is there a way to send console commands from a QT application to a RPi ? The Qt app being on a remote PC and the RPi connected to the PC via ethernet (and wifi).
I'm able to control the GPIOs thanks to Webiopi and QT sending RESTful HTTP commands (tutorial is here: http://nayarweb.com/blog/2014/control-r ... t-webiopi/ ) but what I'm trying to do is send console commands such as "sudo reboot" from my QT application to the RPi. Does anyone have a lead to this problem?

Thanks.

Re: Sending commands via QT GUI from a PC to RPi

Posted: Thu Aug 07, 2014 1:24 pm
by ghans

Re: Sending commands via QT GUI from a PC to RPi

Posted: Thu Aug 07, 2014 2:05 pm
by triplemdw
Thanks ghans, i'll go try it out! If there are any other ways, i'm still open to it !! :)

Re: Sending commands via QT GUI from a PC to RPi

Posted: Wed Aug 20, 2014 7:53 am
by triplemdw
I've finally found a way to send commands via QT with QNetwork, however you need to have a little QT program on the RPi which responds to the request from the PC. For a little tutorial (not mine) : http://www.bogotobogo.com/Qt/Qt5_QUdpSocket.php and http://devarielf.wordpress.com/2013/06/ ... discovery/ .