ワークショップ用のサンプルプログラムです。

Dependencies:   DHT mbed

Committer:
jksoft
Date:
Fri Apr 29 21:07:24 2016 +0000
Revision:
0:a967c8649563
??

Who changed what in which revision?

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