PHP Classes

PHP TCP Arduino: Communicate with a Arduino device via TCP IP

Recommend this page to a friend!
  Info   Documentation   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 185 All time: 8,657 This week: 31Up
Version License PHP version Categories
phptcparduino 1.0.0MIT/X Consortium ...5Networking, PHP 5, Console, Hardware
Description 

Author

This class can communicate with a Arduino device via TCP IP.

It reads values from the command line arguments like the host address, the port, or the connection timeout value.

The class can connect to given Arduino host via TCP and listens to the responses.

It also displays the received message to the console terminal and sends the message back to the current server.

Innovation Award
PHP Programming Innovation award winner
October 2019
Winner


Prize: One official elePHPant Plush Mascott
Arduino is a popular platform for developing electronic devices that can be controlled remotely using networking chips such as those that provide connection capabilities via WiFi.

This package can be used to connect to a Arduino device using a TCP based protocol, so it can control the device remotely using PHP code.

Manuel Lemos
Picture of Natanael Simões
  Performance   Level  
Name: Natanael Simões <contact>
Classes: 5 packages by
Country: Brazil Brazil
Innovation award
Innovation award
Nominee: 2x

Winner: 1x

Documentation

PhpTCPArduino

Usage

php TCPArduino.php host port [timeout]

  Files folder image Files (2)  
File Role Description
Accessible without login Plain text file README.md Doc. Documentation
Plain text file TCPArduino.php Class Class source

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:185
This week:0
All time:8,657
This week:31Up
User Comments (1)
That's a very good class for comunications to Arduino !
5 years ago (José Filipe Lopes Santos)
70%StarStarStarStar