Skip to content

Add required header files from mbed-os #7

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 24, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions WizFi310/WizFi310.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
#define AT_CMD_PARSER_INIT_TIMEOUT 1000
#define AT_CMD_PARSER_RECV_TIMEOUT 20000

using namespace mbed;
WizFi310::WizFi310(PinName tx, PinName rx, bool debug)
: _serial(tx, rx, WIZFI310_DEFAULT_BAUD_RATE),
_parser(&_serial),
Expand Down
10 changes: 6 additions & 4 deletions WizFi310/WizFi310.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@
#define WIZFI310_H_

#include "ATCmdParser.h"
#include "netsocket/WiFiAccessPoint.h"
#include "UARTSerial.h"

/** WizFi310Interface class.
This is an interface to a WizFi310Interface radio.
Expand Down Expand Up @@ -212,7 +214,7 @@ class WizFi310
*
* @param func A pointer to a void function, or 0 to set as none
*/
void attach(Callback<void()> func);
void attach(mbed::Callback<void()> func);

/**
* Attach a function to call whenever network state has changed
Expand All @@ -222,12 +224,12 @@ class WizFi310
*/
template <typename T, typename M>
void attach(T *obj, M method) {
attach(Callback<void()>(obj, method));
attach(mbed::Callback<void()>(obj, method));
}

private:
UARTSerial _serial;
ATCmdParser _parser;
mbed::UARTSerial _serial;
mbed::ATCmdParser _parser;

struct packet {
struct packet *next;
Expand Down
1 change: 1 addition & 0 deletions WizFi310Interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
#include "WizFi310Interface.h"
#include "mbed_debug.h"

using namespace mbed;
// Various timeouts for different WizFi310 operations
#ifndef WIZFI310_CONNECT_TIMEOUT
#define WIZFI310_CONNECT_TIMEOUT 15000
Expand Down
1 change: 1 addition & 0 deletions WizFi310Interface.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
#ifndef WIZFI310_INTERFACE_H
#define WIZFI310_INTERFACE_H

#include "NetworkStack.h"
#include "WiFiInterface.h"
#include "WizFi310.h"

Expand Down