This is library for using WizFi250

Dependents:   WebSocket_WizFi250_HelloWorld IFTTT_WizFi250 AxedaGo-WizFi250 FANARM_AP_udp_server ... more

Committer:
kaizen
Date:
Mon Jun 02 23:34:10 2014 +0000
Revision:
0:f2039204c8f6
Child:
4:085e7efeae47
WizFi250 Library First Release

Who changed what in which revision?

UserRevisionLine numberNew contents of line
kaizen 0:f2039204c8f6 1 /*
kaizen 0:f2039204c8f6 2 /* Copyright (C) 2013 gsfan, MIT License
kaizen 0:f2039204c8f6 3 *
kaizen 0:f2039204c8f6 4 * Permission is hereby granted, free of charge, to any person obtaining a copy of this software
kaizen 0:f2039204c8f6 5 * and associated documentation files (the "Software"), to deal in the Software without restriction,
kaizen 0:f2039204c8f6 6 * including without limitation the rights to use, copy, modify, merge, publish, distribute,
kaizen 0:f2039204c8f6 7 * sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is
kaizen 0:f2039204c8f6 8 * furnished to do so, subject to the following conditions:
kaizen 0:f2039204c8f6 9 *
kaizen 0:f2039204c8f6 10 * The above copyright notice and this permission notice shall be included in all copies or
kaizen 0:f2039204c8f6 11 * substantial portions of the Software.
kaizen 0:f2039204c8f6 12 *
kaizen 0:f2039204c8f6 13 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
kaizen 0:f2039204c8f6 14 * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
kaizen 0:f2039204c8f6 15 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
kaizen 0:f2039204c8f6 16 * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
kaizen 0:f2039204c8f6 17 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
kaizen 0:f2039204c8f6 18 */
kaizen 0:f2039204c8f6 19 /* Copyright (C) 2014 Wiznet, MIT License
kaizen 0:f2039204c8f6 20 * port to the Wiznet Module WizFi250
kaizen 0:f2039204c8f6 21 */
kaizen 0:f2039204c8f6 22
kaizen 0:f2039204c8f6 23 #ifndef WIZFI250INTERFACE_H_
kaizen 0:f2039204c8f6 24 #define WIZFI250INTERFACE_H_
kaizen 0:f2039204c8f6 25
kaizen 0:f2039204c8f6 26 #include "WizFi250.h"
kaizen 0:f2039204c8f6 27
kaizen 0:f2039204c8f6 28 class WizFi250Interface : public WizFi250{
kaizen 0:f2039204c8f6 29 public:
kaizen 0:f2039204c8f6 30
kaizen 0:f2039204c8f6 31 WizFi250Interface(PinName tx, PinName rx, PinName cts, PinName rts, PinName reset, PinName alarm = NC, int baud = 115200);
kaizen 0:f2039204c8f6 32
kaizen 0:f2039204c8f6 33 int init(const char *name = NULL);
kaizen 0:f2039204c8f6 34 int init(const char* ip, const char* mask, const char* gateway, const char* name = NULL);
kaizen 0:f2039204c8f6 35 int connect(Security sec, const char* ssid, const char* phrase, WiFiMode mode = WM_STATION);
kaizen 0:f2039204c8f6 36 int disconnect();
kaizen 0:f2039204c8f6 37 char* getMACAddress();
kaizen 0:f2039204c8f6 38 char* getIPAddress();
kaizen 0:f2039204c8f6 39 char* getGateway();
kaizen 0:f2039204c8f6 40 char* getNetworkMask();
kaizen 0:f2039204c8f6 41
kaizen 0:f2039204c8f6 42
kaizen 0:f2039204c8f6 43 };
kaizen 0:f2039204c8f6 44
kaizen 0:f2039204c8f6 45
kaizen 0:f2039204c8f6 46 #include "TCPSocketConnection.h"
kaizen 0:f2039204c8f6 47 #include "TCPSocketServer.h"
kaizen 0:f2039204c8f6 48
kaizen 0:f2039204c8f6 49 #include "Endpoint.h"
kaizen 0:f2039204c8f6 50 #include "UDPSocket.h"
kaizen 0:f2039204c8f6 51
kaizen 0:f2039204c8f6 52
kaizen 0:f2039204c8f6 53 #endif /* WIZFI250INTERFACE_H_ */