Skip to content

Commit

Permalink
New folder structure
Browse files Browse the repository at this point in the history
  • Loading branch information
pennam committed Aug 20, 2024
1 parent 4419df1 commit 2cfd1b6
Show file tree
Hide file tree
Showing 18 changed files with 34 additions and 35 deletions.
16 changes: 8 additions & 8 deletions src/Arduino_ConnectionHandler.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand All @@ -31,6 +26,10 @@
#error "Board doesn't support CELLULAR"
#endif

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

class CellularConnectionHandler : public ConnectionHandler
{
public:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
INCLUDE
******************************************************************************/

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

#if defined(ARDUINO_PORTENTA_H7_M7)
#include <Ethernet.h>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
INCLUDE
******************************************************************************/

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

#if defined(ARDUINO_SAMD_MKRGSM1400)
#include <MKRGSM.h>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
INCLUDE
******************************************************************************/

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

#if defined(ARDUINO_SAMD_MKRWAN1300) || defined(ARDUINO_SAMD_MKRWAN1310)
#include <MKRWAN.h>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
INCLUDE
******************************************************************************/

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

#ifdef ARDUINO_SAMD_MKRNB1500
#include <MKRNB.h>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
INCLUDE
******************************************************************************/

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

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

/******************************************************************************
TYPEDEFS
Expand Down

0 comments on commit 2cfd1b6

Please sign in to comment.