Skip to content

New folder structure #125

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

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
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
16 changes: 8 additions & 8 deletions src/Arduino_ConnectionHandler.h
Original file line number Diff line number Diff line change
@@ -27,34 +27,34 @@
#endif

#include <Arduino.h>
#include "ConnectionHandlerDefinitions.h"
#include "definitions/ConnectionHandlerDefinitions.h"

#if defined(BOARD_HAS_WIFI)
#include "WiFiConnectionHandler.h"
#include "handlers/WiFiConnectionHandler.h"
#endif

#if defined(BOARD_HAS_GSM)
#include "GSMConnectionHandler.h"
#include "handlers/GSMConnectionHandler.h"
#endif

#if defined(BOARD_HAS_NB)
#include "NBConnectionHandler.h"
#include "handlers/NBConnectionHandler.h"
#endif

#if defined(BOARD_HAS_LORA)
#include "LoRaConnectionHandler.h"
#include "handlers/LoRaConnectionHandler.h"
#endif

#if defined(BOARD_HAS_ETHERNET)
#include "EthernetConnectionHandler.h"
#include "handlers/EthernetConnectionHandler.h"
#endif

#if defined(BOARD_HAS_CATM1_NBIOT)
#include "CatM1ConnectionHandler.h"
#include "handlers/CatM1ConnectionHandler.h"
#endif

#if defined(BOARD_HAS_CELLULAR)
#include "CellularConnectionHandler.h"
#include "handlers/CellularConnectionHandler.h"
#endif

#endif /* CONNECTION_HANDLER_H_ */
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -19,10 +19,10 @@
INCLUDE
******************************************************************************/

#include "ConnectionHandlerDefinitions.h"
#include "definitions/ConnectionHandlerDefinitions.h"

#ifdef BOARD_HAS_CATM1_NBIOT /* Only compile if the board has CatM1 BN-IoT */
#include "CatM1ConnectionHandler.h"
#include "handlers/CatM1ConnectionHandler.h"

/******************************************************************************
CTOR/DTOR
Original file line number Diff line number Diff line change
@@ -22,7 +22,7 @@
INCLUDE
******************************************************************************/

#include "ConnectionHandlerInterface.h"
#include "interface/ConnectionHandlerInterface.h"

#if defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_EDGE_CONTROL)
#include <GSM.h>
Original file line number Diff line number Diff line change
@@ -13,10 +13,10 @@
INCLUDE
******************************************************************************/

#include "ConnectionHandlerDefinitions.h"
#include "definitions/ConnectionHandlerDefinitions.h"

#ifdef BOARD_HAS_CELLULAR /* Only compile if the board has Cellular */
#include "CellularConnectionHandler.h"
#include "handlers/CellularConnectionHandler.h"

/******************************************************************************
CTOR/DTOR
Original file line number Diff line number Diff line change
@@ -16,12 +16,7 @@
INCLUDE
******************************************************************************/

#include "Arduino_ConnectionHandler.h"


/******************************************************************************
CLASS DECLARATION
******************************************************************************/
#include "interface/ConnectionHandlerInterface.h"

#if defined(ARDUINO_PORTENTA_C33) || defined(ARDUINO_PORTENTA_H7_M7)
#include <Arduino_Cellular.h>
@@ -31,6 +26,10 @@
#error "Board doesn't support CELLULAR"
#endif

/******************************************************************************
CLASS DECLARATION
******************************************************************************/

class CellularConnectionHandler : public ConnectionHandler
{
public:
Original file line number Diff line number Diff line change
@@ -16,10 +16,10 @@
INCLUDE
******************************************************************************/

#include "ConnectionHandlerDefinitions.h"
#include "definitions/ConnectionHandlerDefinitions.h"

#ifdef BOARD_HAS_ETHERNET /* Only compile if the board has ethernet */
#include "EthernetConnectionHandler.h"
#include "handlers/EthernetConnectionHandler.h"

/******************************************************************************
CTOR/DTOR
Original file line number Diff line number Diff line change
@@ -19,7 +19,7 @@
INCLUDE
******************************************************************************/

#include "ConnectionHandlerInterface.h"
#include "interface/ConnectionHandlerInterface.h"

#if defined(ARDUINO_PORTENTA_H7_M7)
#include <Ethernet.h>
Original file line number Diff line number Diff line change
@@ -19,10 +19,10 @@
INCLUDE
******************************************************************************/

#include "ConnectionHandlerDefinitions.h"
#include "definitions/ConnectionHandlerDefinitions.h"

#ifdef BOARD_HAS_GSM /* Only compile if this is a board with GSM */
#include "GSMConnectionHandler.h"
#include "handlers/GSMConnectionHandler.h"

/******************************************************************************
CONSTANTS
Original file line number Diff line number Diff line change
@@ -22,7 +22,7 @@
INCLUDE
******************************************************************************/

#include "ConnectionHandlerInterface.h"
#include "interface/ConnectionHandlerInterface.h"

#if defined(ARDUINO_SAMD_MKRGSM1400)
#include <MKRGSM.h>
Original file line number Diff line number Diff line change
@@ -19,10 +19,10 @@
INCLUDE
******************************************************************************/

#include "ConnectionHandlerDefinitions.h"
#include "definitions/ConnectionHandlerDefinitions.h"

#if defined(BOARD_HAS_LORA) /* Only compile if the board has LoRa */
#include "LoRaConnectionHandler.h"
#include "handlers/LoRaConnectionHandler.h"

/******************************************************************************
TYPEDEF
Original file line number Diff line number Diff line change
@@ -22,7 +22,7 @@
INCLUDE
******************************************************************************/

#include "ConnectionHandlerInterface.h"
#include "interface/ConnectionHandlerInterface.h"

#if defined(ARDUINO_SAMD_MKRWAN1300) || defined(ARDUINO_SAMD_MKRWAN1310)
#include <MKRWAN.h>
Original file line number Diff line number Diff line change
@@ -19,10 +19,10 @@
INCLUDE
******************************************************************************/

#include "ConnectionHandlerDefinitions.h"
#include "definitions/ConnectionHandlerDefinitions.h"

#ifdef BOARD_HAS_NB /* Only compile if this is a board with NB */
#include "NBConnectionHandler.h"
#include "handlers/NBConnectionHandler.h"

/******************************************************************************
CONSTANTS
Original file line number Diff line number Diff line change
@@ -22,7 +22,7 @@
INCLUDE
******************************************************************************/

#include "ConnectionHandlerInterface.h"
#include "interface/ConnectionHandlerInterface.h"

#ifdef ARDUINO_SAMD_MKRNB1500
#include <MKRNB.h>
Original file line number Diff line number Diff line change
@@ -19,10 +19,10 @@
INCLUDE
******************************************************************************/

#include "ConnectionHandlerDefinitions.h"
#include "definitions/ConnectionHandlerDefinitions.h"

#ifdef BOARD_HAS_WIFI /* Only compile if the board has WiFi */
#include "WiFiConnectionHandler.h"
#include "handlers/WiFiConnectionHandler.h"

/******************************************************************************
CONSTANTS
Original file line number Diff line number Diff line change
@@ -22,7 +22,7 @@
INCLUDE
******************************************************************************/

#include "ConnectionHandlerInterface.h"
#include "interface/ConnectionHandlerInterface.h"

#ifdef ARDUINO_SAMD_MKR1000
#include <WiFi101.h>
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -28,7 +28,7 @@
#include <Arduino.h>
#include <Client.h>
#include <Udp.h>
#include "ConnectionHandlerDefinitions.h"
#include "definitions/ConnectionHandlerDefinitions.h"

/******************************************************************************
TYPEDEFS