Licio Mapelli / SPWF01SA

Dependencies:   ATParser

Fork of SPWF01SA by ST

Revision:
22:0fb8db6110be
Parent:
13:f21e4e73bbb6
--- a/SPWFSA01.h	Tue Sep 27 04:05:46 2016 +0000
+++ b/SPWFSA01.h	Mon Oct 10 15:43:23 2016 +0000
@@ -13,12 +13,20 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
+
+
  
 #ifndef SPWFSA01_H
 #define SPWFSA01_H
  
 #include "ATParser.h"
  
+typedef enum {
+     WAITING_WIND=1,
+     RESIDUAL_DATA_ON_RECV
+}t_recv_state;
+ 
+ 
 /** SPWFSA01Interface class.
     This is an interface to a SPWFSA01 module.
  */
@@ -156,6 +164,8 @@
     char _ip_buffer[16];
     char _mac_buffer[18];
     bool dbg_on;
+    t_recv_state _recv_state;    
+    unsigned int _recv_residual_data;    
 };
  
 #endif  //SPWFSA01_H
\ No newline at end of file