Simpe IoT BoardにGrove温度センサを繋げてIFTTTにプッシュするプログラムです。

Dependencies:   mbed

ESP8266InterfaceTiny/ESP8266Interface.cpp

Committer:
jksoft
Date:
2015-11-14
Revision:
1:8a97f4bd9773
Parent:
0:26b07836cf44

File content as of revision 1:8a97f4bd9773:

#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();
}