[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4692: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4694: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4695: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4696: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
8devices Community - View topic - GPIO via TCP
www.8devices.com
View unanswered posts | View active topics It is currently 28 Apr 2024, 20:53



Reply to topic  [ 5 posts ] 
 GPIO via TCP 
Author Message

Joined: 18 Jul 2012, 16:33
Posts: 13
Hello

I'm looking for an easy way to control the GPIOs via a TCP connection.
I want to open a TCP connection for example to Port 2000 (Carambola should be the Server), and then I want to send a simple command from a Client.
Like 17.1 for set GPIO17 to high, or 17.0 to set GPIO17 to low.
How could I do that?
Does anyone have any sample code?

Thanks a lot

snipor


30 Sep 2013, 21:04
Profile

Joined: 07 Dec 2011, 16:01
Posts: 525
Location: Lithuania
Hi,
you can use this exapmple:
http://8devices.com/wiki_carambola/doku.php/http_led


01 Oct 2013, 04:48
Profile

Joined: 18 Jul 2012, 16:33
Posts: 13
Unfortunately I cant use http/php.
I need a connection via Tcp Port.


01 Oct 2013, 09:25
Profile

Joined: 06 Oct 2013, 11:35
Posts: 2


06 Oct 2013, 11:39
Profile

Joined: 06 Oct 2013, 11:35
Posts: 2
Here is a code with a tcp server that handling multiple clients.

https://wiki.sihnon.net/index.php/Multi ... er_Example


06 Oct 2013, 11:45
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 5 posts ] 

Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron

Protected by Anti-Spam ACP Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software.