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

Dependencies:   mbed

Committer:
jksoft
Date:
Sat Nov 14 02:53:45 2015 +0000
Revision:
1:8a97f4bd9773
Parent:
0:26b07836cf44
IFTTT????????

Who changed what in which revision?

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