Junichi Katsu
/
MilkcocoaSampleESP8266_Temp
ワークショップ用のプログラム
ESP8266InterfaceTiny/ESP8266Interface.cpp@0:d0b3a5d1ba28, 2016-09-22 (annotated)
- Committer:
- jksoft
- Date:
- Thu Sep 22 00:49:42 2016 +0000
- Revision:
- 0:d0b3a5d1ba28
????????
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
jksoft | 0:d0b3a5d1ba28 | 1 | #include "ESP8266Interface.h" |
jksoft | 0:d0b3a5d1ba28 | 2 | |
jksoft | 0:d0b3a5d1ba28 | 3 | ESP8266Interface::ESP8266Interface( PinName tx, PinName rx, PinName reset, |
jksoft | 0:d0b3a5d1ba28 | 4 | const char * ssid, const char * phrase, uint32_t baud ) : |
jksoft | 0:d0b3a5d1ba28 | 5 | ESP8266(tx, rx, reset, ssid, phrase, baud ) |
jksoft | 0:d0b3a5d1ba28 | 6 | { |
jksoft | 0:d0b3a5d1ba28 | 7 | } |
jksoft | 0:d0b3a5d1ba28 | 8 | |
jksoft | 0:d0b3a5d1ba28 | 9 | int ESP8266Interface::init() |
jksoft | 0:d0b3a5d1ba28 | 10 | { |
jksoft | 0:d0b3a5d1ba28 | 11 | ESP8266::reset(); |
jksoft | 0:d0b3a5d1ba28 | 12 | return 0; |
jksoft | 0:d0b3a5d1ba28 | 13 | } |
jksoft | 0:d0b3a5d1ba28 | 14 | |
jksoft | 0:d0b3a5d1ba28 | 15 | bool ESP8266Interface::connect() |
jksoft | 0:d0b3a5d1ba28 | 16 | { |
jksoft | 0:d0b3a5d1ba28 | 17 | return ESP8266::connect(); |
jksoft | 0:d0b3a5d1ba28 | 18 | } |
jksoft | 0:d0b3a5d1ba28 | 19 | |
jksoft | 0:d0b3a5d1ba28 | 20 | int ESP8266Interface::disconnect() |
jksoft | 0:d0b3a5d1ba28 | 21 | { |
jksoft | 0:d0b3a5d1ba28 | 22 | return ESP8266::disconnect(); |
jksoft | 0:d0b3a5d1ba28 | 23 | } |
jksoft | 0:d0b3a5d1ba28 | 24 | |
jksoft | 0:d0b3a5d1ba28 | 25 | char * ESP8266Interface::getIPAddress() |
jksoft | 0:d0b3a5d1ba28 | 26 | { |
jksoft | 0:d0b3a5d1ba28 | 27 | return ESP8266::getIPAddress(); |
jksoft | 0:d0b3a5d1ba28 | 28 | } |