Fixed UDP Client. Allow interfacing with WebSocketClient. General improvements.

Fork of ESP8266Interface by ESP8266

ESP8266Interface.cpp

Committer:
sarahmarshy
Date:
2015-06-03
Revision:
44:3a7b6083210b
Parent:
28:91e65e22e63a

File content as of revision 44:3a7b6083210b:

#include "ESP8266Interface.h"

ESP8266Interface::ESP8266Interface( PinName tx, PinName rx, PinName reset,
                                const char * ssid, const char * phrase, uint32_t baud ) :
    ESP8266(tx, rx, reset, ssid, phrase, baud )
{
}

int ESP8266Interface::init()
{
    ESP8266::reset();
    return 0;
}

bool ESP8266Interface::connect()
{
    return ESP8266::connect();
}

int ESP8266Interface::disconnect()
{
    return ESP8266::disconnect();
}

char * ESP8266Interface::getIPAddress()
{
    return ESP8266::getIPAddress();
}