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