Skip to content

Send Network configuration to Cloud #553

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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
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
3 changes: 2 additions & 1 deletion .github/workflows/compile-examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ jobs:
UNIVERSAL_LIBRARIES: |
# Install the ArduinoIoTCloud library from the repository
- source-path: ./
- name: Arduino_ConnectionHandler
- source-url: https://github.com/fabik111/Arduino_ConnectionHandler.git
version: add-get-setting
- name: ArduinoHttpClient
- name: Arduino_DebugUtils
- name: ArduinoMqttClient
Expand Down
24 changes: 23 additions & 1 deletion extras/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,17 @@ FetchContent_Declare(
GIT_TAG main
)

FetchContent_Declare(
connectionhandler
GIT_REPOSITORY https://github.com/arduino-libraries/Arduino_ConnectionHandler.git
GIT_TAG master
)

FetchContent_MakeAvailable(Catch2)

FetchContent_MakeAvailable(cloudutils)

FetchContent_MakeAvailable(connectionhandler)
##########################################################################

include_directories(include)
Expand Down Expand Up @@ -55,6 +63,18 @@ target_include_directories(
${cloudutils_SOURCE_DIR}/src/interfaces
)

add_library(connectionhandler INTERFACE)

target_include_directories(
connectionhandler INTERFACE
${connectionhandler_SOURCE_DIR}/src/
)

target_include_directories(
connectionhandler INTERFACE
${connectionhandler_SOURCE_DIR}/src/connectionHandlerModels
)

##########################################################################

set(CMAKE_CXX_STANDARD 11)
Expand Down Expand Up @@ -126,12 +146,13 @@ set(TEST_TARGET_SRCS

##########################################################################

add_compile_definitions(BOARD_HAS_LORA BOARD_HAS_CATM1_NBIOT BOARD_HAS_WIFI BOARD_HAS_ETHERNET BOARD_HAS_CELLULAR BOARD_HAS_NB BOARD_HAS_GSM)
add_compile_definitions(HOST HAS_TCP)
add_compile_options(-Wall -Wextra -Wpedantic -Werror)
add_compile_options(-Wno-cast-function-type)

set(CMAKE_C_FLAGS ${CMAKE_C_FLAGS} "--coverage")
set(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} "--coverage -Wno-deprecated-copy")
set(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} "--coverage -Wno-deprecated-copy -Wno-missing-field-initializers")

##########################################################################

Expand All @@ -140,6 +161,7 @@ add_executable(
${TEST_TARGET_SRCS}
)

target_link_libraries( ${TEST_TARGET} connectionhandler)
target_link_libraries( ${TEST_TARGET} cloudutils)
target_link_libraries( ${TEST_TARGET} Catch2WithMain )

Expand Down
1 change: 1 addition & 0 deletions extras/test/include/Arduino.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
******************************************************************************/

#include <string>
#include <IPAddress.h>

/******************************************************************************
DEFINES
Expand Down
13 changes: 13 additions & 0 deletions extras/test/include/IPAddress.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/*
Copyright (c) 2019 Arduino. All rights reserved.
*/

#ifndef TEST_IPADDRESS_H_
#define TEST_IPADDRESS_H_

enum IPType {
IPv4,
IPv6
};

#endif
Loading
Loading