モータードライバとWi-FiモジュールESP-WROOM-02をmbed LPC1114FN28に繋げて、RCWControllerからコントロールするプログラム

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers ESP8266Interface.cpp Source File

ESP8266Interface.cpp

00001 #include "ESP8266Interface.h"
00002 
00003 ESP8266Interface::ESP8266Interface( PinName tx, PinName rx, PinName reset,
00004                                 const char * ssid, const char * phrase, uint32_t baud ) :
00005     ESP8266(tx, rx, reset, ssid, phrase, baud )
00006 {
00007 }
00008 
00009 int ESP8266Interface::init()
00010 {
00011     ESP8266::reset();
00012     return 0;
00013 }
00014 
00015 bool ESP8266Interface::connect()
00016 {
00017     return ESP8266::connect();
00018 }
00019 
00020 int ESP8266Interface::disconnect()
00021 {
00022     return ESP8266::disconnect();
00023 }
00024 
00025 char * ESP8266Interface::getIPAddress()
00026 {
00027     return ESP8266::getIPAddress();
00028 }