Note: Be sure to configure the serial connection of your device first.
If on Linux run these commands at the shell first:
- Add apache user to dialout group: sudo adduser www-data dialout
- Restart Apache: sudo /etc/init.d/apache2 restart
See XBeeExample.php for an example.
Copyright (c) 2012 Chris Barnes
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public Licensealong with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA