This repository was archived by the owner on Feb 4, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathmultiFileProject.ino
More file actions
53 lines (37 loc) · 1.44 KB
/
multiFileProject.ino
File metadata and controls
53 lines (37 loc) · 1.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/****************************************************************************************************************************
multiFileProject.ino
For ESP32
AsyncTCP_SSL is a library for the ESP32
Built by Khoi Hoang https://github.com/khoih-prog/AsyncTCP_SSL
Licensed under MIT license
*****************************************************************************************************************************/
// To demo how to include files in multi-file Projects
#if !( defined(ESP32) )
#error This code is intended to run on the ESP32 platform! Please check your Tools->Board setting.
#endif
#define ASYNC_TCP_SSL_VERSION_MIN_TARGET "AsyncTCP_SSL v1.3.1"
#define ASYNC_TCP_SSL_VERSION_MIN 1003001
#include "multiFileProject.h"
#include <WiFi.h>
// To be included only in main(), .ino with setup() to avoid `Multiple Definitions` Linker Error
#include "AsyncTCP_SSL.h"
void setup()
{
Serial.begin(115200);
while (!Serial && millis() < 5000);
Serial.println("\nStart multiFileProject on ");
Serial.println(ARDUINO_BOARD);
Serial.println(ASYNC_TCP_SSL_VERSION);
#if defined(ASYNC_TCP_SSL_VERSION_MIN)
if (ASYNC_TCP_SSL_VERSION_INT < ASYNC_TCP_SSL_VERSION_MIN)
{
Serial.print("Warning. Must use this example on Version equal or later than : ");
Serial.println(ASYNC_TCP_SSL_VERSION_MIN_TARGET);
}
#endif
Serial.print("You're OK now");
}
void loop()
{
// put your main code here, to run repeatedly:
}