<commit_before>/*
 WiFi.h - Adaptation of Arduino WiFi library for Energia and CC3200 launchpad
 Modified: <NAME> | <EMAIL>
 
 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 WiFi_h
#define WiFi_h

#include <Energia.h>
#include "IPAddress.h"
#include "Utility/wl_definitions.h"
#include "Utility/Simplelink.h"


//
//Max socket number is 8
//
#define MAX_SOCK_NUM 8
#define MAX_SSID_LEN 32
#define BSSID_LEN 6

class WiFiClass
{
private:
    static bool init();
    
public:
    static int16_t _handleArray[MAX_SOCK_NUM];
    static int16_t _portArray[MAX_SOCK_NUM];
    static int16_t _typeArray[MAX_SOCK_NUM];
    
    static bool _initialized;
    volatile static int network_count;
    
    //
    //variables maintined by the simplelink callbacks
    //
    volatile static uint32_t local_IP;
    volatile static wl_status_t WiFi_status;
    
    //
    //Because simplelink doesn't provide an easy way to get the ssid or bssid
    //these class variables are maintained by the WlanEventHandler callback
    //<commit_msg>Add include WiFiClient.h and WiFiServer.h<commit_after>/*
 WiFi.h - Adaptation of Arduino WiFi library for Energia and CC3200 launchpad
 Modified: <NAME> | Lus<EMAIL>
 
 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 WiFi_h
#define WiFi_h

#include <Energia.h>
#include "IPAddress.h"
#include "Utility/wl_definitions.h"
#include "Utility/Simplelink.h"
#include "WiFiClient.h"
#include "WiFiServer.h"

//
//Max socket number is 8
//
#define MAX_SOCK_NUM 8
#define MAX_SSID_LEN 32
#define BSSID_LEN 6

class WiFiClass
{
private:
    static bool init();
    
public:
    static int16_t _handleArray[MAX_SOCK_NUM];
    static int16_t _portArray[MAX_SOCK_NUM];
    static int16_t _typeArray[MAX_SOCK_NUM];
    
    static bool _initialized;
    volatile static int network_count;
    
    //
    //variables maintined by the simplelink callbacks
    //
    volatile static uint32_t local_IP;
    volatile static wl_status_t WiFi_status;
    
    //
    //Because simplelink doesn't provide an easy way to get the ssid or bssid
    //these class variables are maintained by the WlanEventHandler callback
    //
{'fraction_non_alphanumeric': 0.05970149253731343, 'fraction_numerical': 0.01722158438576349, 'mean_word_length': 3.6466666666666665, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4107892', 'n_tokens_mistral': 1072, 'n_tokens_neox': 990, 'n_words': 440}