Skip to content

Commit 6e5c77c

Browse files
committed
bootsrap classes refactor
1 parent a18d3f6 commit 6e5c77c

File tree

13 files changed

+251
-7
lines changed

13 files changed

+251
-7
lines changed

arduino_bootstrapper/core/BootstrapManager.cpp

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
/*
2+
BoostrapManager.cpp - Main file for bootstrapping arduino projects
3+
4+
Copyright (C) 2020 Davide Perini
5+
6+
Permission is hereby granted, free of charge, to any person obtaining a copy of
7+
this software and associated documentation files (the "Software"), to deal
8+
in the Software without restriction, including without limitation the rights
9+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
copies of the Software, and to permit persons to whom the Software is
11+
furnished to do so, subject to the following conditions:
12+
13+
The above copyright notice and this permission notice shall be included in
14+
all copies or substantial portions of the Software.
15+
16+
You should have received a copy of the MIT License along with this program.
17+
If not, see <https://opensource.org/licenses/MIT/>.
18+
*/
19+
120
#include "BootstrapManager.h"
221

322

arduino_bootstrapper/core/BootstrapManager.h

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
/*
2+
BoostrapManager.cpp - Main header for bootstrapping arduino projects
3+
4+
Copyright (C) 2020 Davide Perini
5+
6+
Permission is hereby granted, free of charge, to any person obtaining a copy of
7+
this software and associated documentation files (the "Software"), to deal
8+
in the Software without restriction, including without limitation the rights
9+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
copies of the Software, and to permit persons to whom the Software is
11+
furnished to do so, subject to the following conditions:
12+
13+
The above copyright notice and this permission notice shall be included in
14+
all copies or substantial portions of the Software.
15+
16+
You should have received a copy of the MIT License along with this program.
17+
If not, see <https://opensource.org/licenses/MIT/>.
18+
*/
19+
120
#ifndef _DPSOFTWARE_BOOTSTRAP_MANAGER_H
221
#define _DPSOFTWARE_BOOTSTRAP_MANAGER_H
322

arduino_bootstrapper/core/Helpers.cpp

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
/*
2+
Helpers.cpp - Helper classes
3+
4+
Copyright (C) 2020 Davide Perini
5+
6+
Permission is hereby granted, free of charge, to any person obtaining a copy of
7+
this software and associated documentation files (the "Software"), to deal
8+
in the Software without restriction, including without limitation the rights
9+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
copies of the Software, and to permit persons to whom the Software is
11+
furnished to do so, subject to the following conditions:
12+
13+
The above copyright notice and this permission notice shall be included in
14+
all copies or substantial portions of the Software.
15+
16+
You should have received a copy of the MIT License along with this program.
17+
If not, see <https://opensource.org/licenses/MIT/>.
18+
*/
19+
120
#include "Helpers.h"
221

322

arduino_bootstrapper/core/Helpers.h

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
/*
2+
Helpers.h - Helper classes
3+
4+
Copyright (C) 2020 Davide Perini
5+
6+
Permission is hereby granted, free of charge, to any person obtaining a copy of
7+
this software and associated documentation files (the "Software"), to deal
8+
in the Software without restriction, including without limitation the rights
9+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
copies of the Software, and to permit persons to whom the Software is
11+
furnished to do so, subject to the following conditions:
12+
13+
The above copyright notice and this permission notice shall be included in
14+
all copies or substantial portions of the Software.
15+
16+
You should have received a copy of the MIT License along with this program.
17+
If not, see <https://opensource.org/licenses/MIT/>.
18+
*/
19+
120
#ifndef _DPSOFTWARE_HELPERS_UTILS_H
221
#define _DPSOFTWARE_HELPERS_UTILS_H
322

arduino_bootstrapper/core/QueueManager.cpp

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
/*
2+
QueueManager.cpp - Managing MQTT queue
3+
4+
Copyright (C) 2020 Davide Perini
5+
6+
Permission is hereby granted, free of charge, to any person obtaining a copy of
7+
this software and associated documentation files (the "Software"), to deal
8+
in the Software without restriction, including without limitation the rights
9+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
copies of the Software, and to permit persons to whom the Software is
11+
furnished to do so, subject to the following conditions:
12+
13+
The above copyright notice and this permission notice shall be included in
14+
all copies or substantial portions of the Software.
15+
16+
You should have received a copy of the MIT License along with this program.
17+
If not, see <https://opensource.org/licenses/MIT/>.
18+
*/
19+
120
#include "QueueManager.h"
221

322
WiFiClient espClient;

arduino_bootstrapper/core/QueueManager.h

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
/*
2+
QueueManager.h - Managing MQTT queue
3+
4+
Copyright (C) 2020 Davide Perini
5+
6+
Permission is hereby granted, free of charge, to any person obtaining a copy of
7+
this software and associated documentation files (the "Software"), to deal
8+
in the Software without restriction, including without limitation the rights
9+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
copies of the Software, and to permit persons to whom the Software is
11+
furnished to do so, subject to the following conditions:
12+
13+
The above copyright notice and this permission notice shall be included in
14+
all copies or substantial portions of the Software.
15+
16+
You should have received a copy of the MIT License along with this program.
17+
If not, see <https://opensource.org/licenses/MIT/>.
18+
*/
19+
120
#ifndef _DPSOFTWARE_QUEUE_MANAGER_H
221
#define _DPSOFTWARE_QUEUE_MANAGER_H
322

arduino_bootstrapper/core/WifiManager.cpp

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
/*
2+
WifiManager.cpp - Managing WiFi and OTA
3+
4+
Copyright (C) 2020 Davide Perini
5+
6+
Permission is hereby granted, free of charge, to any person obtaining a copy of
7+
this software and associated documentation files (the "Software"), to deal
8+
in the Software without restriction, including without limitation the rights
9+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
copies of the Software, and to permit persons to whom the Software is
11+
furnished to do so, subject to the following conditions:
12+
13+
The above copyright notice and this permission notice shall be included in
14+
all copies or substantial portions of the Software.
15+
16+
You should have received a copy of the MIT License along with this program.
17+
If not, see <https://opensource.org/licenses/MIT/>.
18+
*/
19+
120
#include "WifiManager.h"
221

322

arduino_bootstrapper/core/WifiManager.h

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,25 @@
66
#include <ESP8266mDNS.h>
77
#include <WiFiUdp.h>
88
#include <ArduinoOTA.h>
9+
/*
10+
WifiManager.h - Managing Wifi and OTA
11+
12+
Copyright (C) 2020 Davide Perini
13+
14+
Permission is hereby granted, free of charge, to any person obtaining a copy of
15+
this software and associated documentation files (the "Software"), to deal
16+
in the Software without restriction, including without limitation the rights
17+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
18+
copies of the Software, and to permit persons to whom the Software is
19+
furnished to do so, subject to the following conditions:
20+
21+
The above copyright notice and this permission notice shall be included in
22+
all copies or substantial portions of the Software.
23+
24+
You should have received a copy of the MIT License along with this program.
25+
If not, see <https://opensource.org/licenses/MIT/>.
26+
*/
27+
928
#include <SPI.h>
1029
#include <Wire.h>
1130
#include <Adafruit_SSD1306.h>

include/ChangeName.h

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
/*
2+
ChangeName.h - Main header
3+
4+
Copyright (C) 2020 Davide Perini
5+
6+
Permission is hereby granted, free of charge, to any person obtaining a copy of
7+
this software and associated documentation files (the "Software"), to deal
8+
in the Software without restriction, including without limitation the rights
9+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
copies of the Software, and to permit persons to whom the Software is
11+
furnished to do so, subject to the following conditions:
12+
13+
The above copyright notice and this permission notice shall be included in
14+
all copies or substantial portions of the Software.
15+
16+
You should have received a copy of the MIT License along with this program.
17+
If not, see <https://opensource.org/licenses/MIT/>.
18+
*/
19+
120
#include <SPI.h>
221
#include <Wire.h>
322
#include <Adafruit_GFX.h>

include/Configuration.h

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
/*
2+
Configuration.h - Config header
3+
4+
Copyright (C) 2020 Davide Perini
5+
6+
Permission is hereby granted, free of charge, to any person obtaining a copy of
7+
this software and associated documentation files (the "Software"), to deal
8+
in the Software without restriction, including without limitation the rights
9+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
copies of the Software, and to permit persons to whom the Software is
11+
furnished to do so, subject to the following conditions:
12+
13+
The above copyright notice and this permission notice shall be included in
14+
all copies or substantial portions of the Software.
15+
16+
You should have received a copy of the MIT License along with this program.
17+
If not, see <https://opensource.org/licenses/MIT/>.
18+
*/
19+
120
#ifndef _DPSOFTWARE_CONFIG_H
221
#define _DPSOFTWARE_CONFIG_H
322

0 commit comments

Comments
 (0)