Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: XPL-App4_cleanup XPL-App5
xPL_utils.cpp
00001 /* 00002 * xPL.Arduino v0.1, xPL Implementation for Arduino 00003 * 00004 * This code is parsing a xPL message stored in 'received' buffer 00005 * - isolate and store in 'line' buffer each part of the message -> detection of EOL character (DEC 10) 00006 * - analyse 'line', function of its number and store information in xpl_header memory 00007 * - check for each step if the message respect xPL protocol 00008 * - parse each command line 00009 * 00010 * Copyright (C) 2012 johan@pirlouit.ch, olivier.lebrun@gmail.com 00011 * Original version by Gromain59@gmail.com 00012 * 00013 * This program is free software; you can redistribute it and/or 00014 * modify it under the terms of the GNU General Public License 00015 * as published by the Free Software Foundation; either version 2 00016 * of the License, or (at your option) any later version. 00017 * 00018 * This program is distributed in the hope that it will be useful, 00019 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00020 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00021 * GNU General Public License for more details. 00022 * 00023 * You should have received a copy of the GNU General Public License 00024 * along with this program; if not, write to the Free Software 00025 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 00026 */ 00027 00028 #include "xPL_utils.h" 00029 00030 // Function to clear a string 00031 void clearStr (char* str) 00032 { 00033 int len = strlen(str); 00034 for (short c = 0; c < len; c++) 00035 { 00036 str[c] = 0; 00037 } 00038 }
Generated on Thu Jul 28 2022 00:39:57 by
1.7.2