ワークショップ用のサンプル

Dependencies:   Milkcocoa mbed

Fork of MilkcocoaSampleESP8266 by Junichi Katsu

Committer:
jksoft
Date:
Sat Feb 27 00:12:32 2016 +0000
Revision:
2:d2e4e7ce7a65
Parent:
0:82d5445a9461
??

Who changed what in which revision?

UserRevisionLine numberNew contents of line
jksoft 0:82d5445a9461 1 #include "ESP8266Interface.h"
jksoft 0:82d5445a9461 2
jksoft 0:82d5445a9461 3 ESP8266Interface::ESP8266Interface( PinName tx, PinName rx, PinName reset,
jksoft 0:82d5445a9461 4 const char * ssid, const char * phrase, uint32_t baud ) :
jksoft 0:82d5445a9461 5 ESP8266(tx, rx, reset, ssid, phrase, baud )
jksoft 0:82d5445a9461 6 {
jksoft 0:82d5445a9461 7 }
jksoft 0:82d5445a9461 8
jksoft 0:82d5445a9461 9 int ESP8266Interface::init()
jksoft 0:82d5445a9461 10 {
jksoft 0:82d5445a9461 11 ESP8266::reset();
jksoft 0:82d5445a9461 12 return 0;
jksoft 0:82d5445a9461 13 }
jksoft 0:82d5445a9461 14
jksoft 0:82d5445a9461 15 bool ESP8266Interface::connect()
jksoft 0:82d5445a9461 16 {
jksoft 0:82d5445a9461 17 return ESP8266::connect();
jksoft 0:82d5445a9461 18 }
jksoft 0:82d5445a9461 19
jksoft 0:82d5445a9461 20 int ESP8266Interface::disconnect()
jksoft 0:82d5445a9461 21 {
jksoft 0:82d5445a9461 22 return ESP8266::disconnect();
jksoft 0:82d5445a9461 23 }
jksoft 0:82d5445a9461 24
jksoft 0:82d5445a9461 25 char * ESP8266Interface::getIPAddress()
jksoft 0:82d5445a9461 26 {
jksoft 0:82d5445a9461 27 return ESP8266::getIPAddress();
jksoft 0:82d5445a9461 28 }