Skip to content

Commit f00390e

Browse files
authored
Merge pull request #7 from deepikabhavnani/header_file_add
Add required header files from mbed-os
2 parents 5dfda15 + 2459ad7 commit f00390e

File tree

4 files changed

+9
-4
lines changed

4 files changed

+9
-4
lines changed

WizFi310/WizFi310.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
#define AT_CMD_PARSER_INIT_TIMEOUT 1000
4141
#define AT_CMD_PARSER_RECV_TIMEOUT 20000
4242

43+
using namespace mbed;
4344
WizFi310::WizFi310(PinName tx, PinName rx, bool debug)
4445
: _serial(tx, rx, WIZFI310_DEFAULT_BAUD_RATE),
4546
_parser(&_serial),

WizFi310/WizFi310.h

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@
3737
#define WIZFI310_H_
3838

3939
#include "ATCmdParser.h"
40+
#include "netsocket/WiFiAccessPoint.h"
41+
#include "UARTSerial.h"
4042

4143
/** WizFi310Interface class.
4244
This is an interface to a WizFi310Interface radio.
@@ -212,7 +214,7 @@ class WizFi310
212214
*
213215
* @param func A pointer to a void function, or 0 to set as none
214216
*/
215-
void attach(Callback<void()> func);
217+
void attach(mbed::Callback<void()> func);
216218

217219
/**
218220
* Attach a function to call whenever network state has changed
@@ -222,12 +224,12 @@ class WizFi310
222224
*/
223225
template <typename T, typename M>
224226
void attach(T *obj, M method) {
225-
attach(Callback<void()>(obj, method));
227+
attach(mbed::Callback<void()>(obj, method));
226228
}
227229

228230
private:
229-
UARTSerial _serial;
230-
ATCmdParser _parser;
231+
mbed::UARTSerial _serial;
232+
mbed::ATCmdParser _parser;
231233

232234
struct packet {
233235
struct packet *next;

WizFi310Interface.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
#include "WizFi310Interface.h"
3838
#include "mbed_debug.h"
3939

40+
using namespace mbed;
4041
// Various timeouts for different WizFi310 operations
4142
#ifndef WIZFI310_CONNECT_TIMEOUT
4243
#define WIZFI310_CONNECT_TIMEOUT 15000

WizFi310Interface.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
#ifndef WIZFI310_INTERFACE_H
3737
#define WIZFI310_INTERFACE_H
3838

39+
#include "NetworkStack.h"
3940
#include "WiFiInterface.h"
4041
#include "WizFi310.h"
4142

0 commit comments

Comments
 (0)