File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change 2424#include < stdlib.h>
2525#include " drivers/DigitalOut.h"
2626#include " drivers/SerialBase.h"
27- #include " drivers/BufferedSerial.h"
2827#include " features/netsocket/nsapi_types.h"
2928#include " features/netsocket/WiFiAccessPoint.h"
3029#include " PinNames.h"
3130#include " platform/ATCmdParser.h"
3231#include " platform/Callback.h"
3332#include " platform/mbed_error.h"
33+ #include " platform/mbed_version.h"
3434#include " rtos/Mutex.h"
3535#include " rtos/ThisThread.h"
3636
37+ #if (MBED_MAJOR_VERSION >= 6)
38+ #include " drivers/BufferedSerial.h"
39+ #else
40+ #include " drivers/UARTSerial.h"
41+ #endif
42+
3743#ifndef ESP32_CONNECT_TIMEOUT
3844#define ESP32_CONNECT_TIMEOUT 15000
3945#endif
@@ -269,7 +275,11 @@ class ESP32
269275 mbed::DigitalOut * _p_wifi_io0;
270276 bool _init_end_common;
271277 bool _init_end_wifi;
278+ #if (MBED_MAJOR_VERSION >= 6)
272279 mbed::BufferedSerial _serial;
280+ #else
281+ mbed::UARTSerial _serial;
282+ #endif
273283 mbed::ATCmdParser _parser;
274284 struct packet {
275285 struct packet *next;
You can’t perform that action at this time.
0 commit comments