Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
2136 | - | 1 | /*- |
2 | * Copyright (c) 2012,2013 Darran Hunt (darran [at] hunt dot net dot nz) |
||
3 | * All rights reserved. |
||
4 | * |
||
5 | * Redistribution and use in source and binary forms, with or without |
||
6 | * modification, are permitted provided that the following conditions |
||
7 | * are met: |
||
8 | * 1. Redistributions of source code must retain the above copyright |
||
9 | * notice, this list of conditions and the following disclaimer. |
||
10 | * 2. Redistributions in binary form must reproduce the above copyright |
||
11 | * notice, this list of conditions and the following disclaimer in the |
||
12 | * documentation and/or other materials provided with the distribution. |
||
13 | * |
||
14 | * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, |
||
15 | * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY |
||
16 | * AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL |
||
17 | * THE CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, |
||
18 | * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, |
||
19 | * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; |
||
20 | * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, |
||
21 | * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR |
||
22 | * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF |
||
23 | * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
||
24 | */ |
||
25 | |||
26 | /* Release history |
||
27 | * |
||
28 | * Version Date Description |
||
29 | * 0.1 25-Mar-2012 First release. |
||
30 | * 0.2 09-Apr-2012 Added features to support http servers. |
||
31 | * - added an httpserver.ino example. |
||
32 | * - added sendChunk() and sendChunkln() to send chunked HTTP bodies. |
||
33 | * - added terminal() method for simple terminal access via debug stream |
||
34 | * - replaced getFreeMemory() with simpler version that works with 0 bytes |
||
35 | * - turned peek buffer into a circular buffer to fix bug with detecting |
||
36 | * *CLOS* and *OPEN* after a partial match. |
||
37 | * - Added new TCP connection detection via *OPEN* match from available(). |
||
38 | * isConnected() can now be polled until a client connects. |
||
39 | * - made the match() function public, handy for matching text in a stream. |
||
40 | * - Added a getProtocol() function to get current set of protocols. |
||
41 | * 0.3 21-Apr-2012 Added createAdhocNetwork() to create an Ad Hoc WiFi network. |
||
42 | * Optimised the setopt() and getopt() function so they handle |
||
43 | * integer conversions and refactored all of the set and get functions. |
||
44 | * Added a multMatch_P() function to match serial data against multiple |
||
45 | * progmem strings. |
||
46 | * Added failure detection to the join() function to quickly detect |
||
47 | * a failure rather than relying on a timeout. |
||
48 | * Added setJoin() and getJoin() function for access to the wlan join parameter. |
||
49 | * Refactored getres() to use the new multiMatch_P() function. |
||
50 | * |
||
51 | */ |
||
52 | |||
53 | /** |
||
54 | * @mainpage WiFlyHQ WiFly RN-XV Arduino library |
||
55 | * |
||
56 | * This library provides functions for setting up and managing the WiFly module, |
||
57 | * sending UDP packets, opening TCP connections and sending and receiving data |
||
58 | * over the TCP connection. |
||
59 | * |
||
60 | * @author Harlequin-Tech |
||
61 | */ |
||
62 | |||
63 | //############################################################################ |
||
64 | //# HISTORY PKT_WiFlyHQ.h |
||
65 | //# |
||
66 | //# 13.04.2014 OG |
||
67 | //# - FAST KOMPLETT NEUER CODE |
||
68 | //# |
||
69 | //# 02.04.2014 OG |
||
70 | //# - add: Versionshistorie ergaenzt |
||
71 | //########################################################################### |
||
72 | |||
73 | |||
74 | #ifndef _WIFLYHQ_H_ |
||
75 | #define _WIFLYHQ_H_ |
||
76 | |||
77 | // Todo: Strings verfuegbar machen für connect.c |
||
78 | //extern const char WIFLY_IP_ADDRESS[]; |
||
79 | //extern const char WIFLY_IP_PORT[]; |
||
80 | |||
81 | |||
82 | uint8_t wifly_update( uint8_t wiflymode ); |
||
83 | uint8_t wifly_reset(void); |
||
84 | uint8_t wifly_version_show( void ); |
||
85 | uint8_t wifly_init( uint8_t wiflymode ); |
||
86 | |||
87 | uint8_t wifly_test( void ); |
||
88 | |||
89 | #endif |