mirror of
https://github.com/arduino/Arduino.git
synced 2025-01-18 07:52:14 +01:00
Bridge: Added compatibility layer with older YunClient
This commit is contained in:
parent
0c109b5242
commit
e016835289
27
libraries/Bridge/src/YunClient.h
Normal file
27
libraries/Bridge/src/YunClient.h
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
/*
|
||||||
|
Copyright (c) 2014 Arduino LLC. All right reserved.
|
||||||
|
|
||||||
|
This library is free software; you can redistribute it and/or
|
||||||
|
modify it under the terms of the GNU Lesser General Public
|
||||||
|
License as published by the Free Software Foundation; either
|
||||||
|
version 2.1 of the License, or (at your option) any later version.
|
||||||
|
|
||||||
|
This library 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
|
||||||
|
Lesser General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU Lesser General Public
|
||||||
|
License along with this library; if not, write to the Free Software
|
||||||
|
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef _YUN_CLIENT_H_
|
||||||
|
#define _YUN_CLIENT_H_
|
||||||
|
|
||||||
|
#include <BridgeClient.h>
|
||||||
|
|
||||||
|
#warning "The use of YunClient is deprecated. Use BridgeClient instead!"
|
||||||
|
typedef BridgeClient YunClient;
|
||||||
|
|
||||||
|
#endif // _YUN_CLIENT_H_
|
27
libraries/Bridge/src/YunServer.h
Normal file
27
libraries/Bridge/src/YunServer.h
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
/*
|
||||||
|
Copyright (c) 2014 Arduino LLC. All right reserved.
|
||||||
|
|
||||||
|
This library is free software; you can redistribute it and/or
|
||||||
|
modify it under the terms of the GNU Lesser General Public
|
||||||
|
License as published by the Free Software Foundation; either
|
||||||
|
version 2.1 of the License, or (at your option) any later version.
|
||||||
|
|
||||||
|
This library 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
|
||||||
|
Lesser General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU Lesser General Public
|
||||||
|
License along with this library; if not, write to the Free Software
|
||||||
|
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef _YUN_SERVER_H_
|
||||||
|
#define _YUN_SERVER_H_
|
||||||
|
|
||||||
|
#include <BridgeServer.h>
|
||||||
|
|
||||||
|
#warning "The use of YunServer is deprecated. Use BridgeServer instead!"
|
||||||
|
typedef BridgeServer YunServer;
|
||||||
|
|
||||||
|
#endif // _YUN_SERVER_H_
|
Loading…
x
Reference in New Issue
Block a user