diff --git a/.gitignore b/.gitignore index 12a5de458818d9652e3110e932d4de0c3b6df64d..0ed7d0546bf02021f112c39fd3fb42b57e7c9446 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ didacticNet.h.gch +.vscode \ No newline at end of file diff --git a/examples/brokerClient/brokerClient.ino b/examples/brokerClient/brokerClient.ino index ccabaa076185898ac5dedfff7502f3910b830e80..8f8a63f1a3c04cb2eef5db064d17e6ff48b5e1e2 100644 --- a/examples/brokerClient/brokerClient.ino +++ b/examples/brokerClient/brokerClient.ino @@ -1,4 +1,4 @@ -#include "Arduino.h" + #include "Arduino.h" #include "SoftwareSerial.h" #include "didacticNet.h" diff --git a/src/didacticNet.cpp b/src/didacticNet.cpp index 72f2622052c7b322fc26d95d6ad2fe640414a3cd..54dacbcf39745d212d3a932c5b49f58184fa28e7 100644 --- a/src/didacticNet.cpp +++ b/src/didacticNet.cpp @@ -16,11 +16,11 @@ didacticPSNet::didacticPSNet(){} didacticPSNet::~didacticPSNet(){} -didacticPSNet::begin(Stream& _port){ +void didacticPSNet::begin(Stream& _port){ setStream(_port); } -didacticPSNet::begin(Stream& _port, PSNET_CALLBACK_SIGNATURE){ +void didacticPSNet::begin(Stream& _port, PSNET_CALLBACK_SIGNATURE){ setStream(_port); setCallback(callback); } diff --git a/src/didacticNet.h b/src/didacticNet.h index 3f519b633a2e76e3681d83bebf6e623ad76e9aa7..f3ba8ab5342a49772ea0e424801bad12a9d890ea 100644 --- a/src/didacticNet.h +++ b/src/didacticNet.h @@ -1,9 +1,7 @@ -/**************************************************************************/ -/*! +/************************************************************************** @file didacticNet.h @author anian buehler @ letsgoING -*/ -/**************************************************************************/ +**************************************************************************/ #ifndef _DIDACTICNET_ @@ -71,8 +69,8 @@ class didacticPSNet didacticPSNet(); ~didacticPSNet(); - begin(Stream& _port); - begin(Stream& _port, PSNET_CALLBACK_SIGNATURE); + void begin(Stream& _port); + void begin(Stream& _port, PSNET_CALLBACK_SIGNATURE); bool handleNetwork(); bool isDataToSend();