Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Calibratio
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LuFG VR VIS
VR-Group
Unreal-Development
Tools
Calibratio
Commits
c217d4e3
Commit
c217d4e3
authored
5 months ago
by
Sebastian Pape
Browse files
Options
Downloads
Patches
Plain Diff
Adapting to new Library versions of the Arduino ESP32 environment
parent
a2217733
No related branches found
No related tags found
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
MotionToPhotonMeter.ino
+7
-3
7 additions, 3 deletions
MotionToPhotonMeter.ino
MotionToPhotonServer.cpp
+2
-2
2 additions, 2 deletions
MotionToPhotonServer.cpp
MotionToPhotonServer.h
+3
-1
3 additions, 1 deletion
MotionToPhotonServer.h
data/index.html
+1
-1
1 addition, 1 deletion
data/index.html
with
13 additions
and
7 deletions
MotionToPhotonMeter.ino
+
7
−
3
View file @
c217d4e3
...
...
@@ -41,6 +41,11 @@ MotionToPhotonServer server(result_buffer, result_buffer_length, getPhotoDiodeRe
/* Multicore */
TaskHandle_t
TaskCore0
;
TaskHandle_t
TaskCore1
;
const
esp_task_wdt_config_t
twdt_config
=
{
.
timeout_ms
=
6000
,
.
idle_core_mask
=
0b00000011
,
// Disable on all cores
.
trigger_panic
=
false
,
};
void
core1
(
void
*
pvParameters
){
while
(
true
){
...
...
@@ -104,7 +109,7 @@ void setup() {
server
.
setup
();
esp_task_wdt_init
(
6000
,
false
);
esp_task_wdt_init
(
&
twdt_config
);
xTaskCreatePinnedToCore
(
core0
,
// Task function.
"Server"
,
// name of task.
...
...
@@ -123,8 +128,7 @@ void setup() {
&
TaskCore1
,
// Task handle to keep track of created task
1
);
// pin task to core 1
delay
(
500
);
disableCore0WDT
();
disableCore1WDT
();
esp_task_wdt_deinit
();
}
void
loop
(){}
//Still needed for arduino core to work
...
...
This diff is collapsed.
Click to expand it.
MotionToPhotonServer.cpp
+
2
−
2
View file @
c217d4e3
...
...
@@ -109,14 +109,14 @@
}
void
MotionToPhotonServer
::
pageResults
(){
Serial
.
println
(
"Client wants
index
page."
);
Serial
.
println
(
"Client wants
results
page."
);
server
.
setContentLength
(
CONTENT_LENGTH_UNKNOWN
);
server
.
send
(
200
,
"text/plain"
,
""
);
unsigned
int
currentNumberOfResults
=
getCurrentNumberOfResults
();
for
(
unsigned
int
i
=
0
;
i
<
currentNumberOfResults
;
i
++
){
server
.
sendContent
(
String
(
result_buffer
[
i
])
+
((
i
!=
currentNumberOfResults
-
1
)
?
",
\n
"
:
""
));
}
server
.
client
().
stop
(
);
server
.
sendContent
(
""
);
}
void
MotionToPhotonServer
::
pageIndex
(){
...
...
This diff is collapsed.
Click to expand it.
MotionToPhotonServer.h
+
3
−
1
View file @
c217d4e3
...
...
@@ -2,8 +2,10 @@
#define MotionToPhotonServer_h
#include
"Arduino.h"
#include
<WiFi.h>
#include
<WebServer.h>
#include
"SPIFFS.h"
#include
"FS.h"
class
MotionToPhotonServer
{
...
...
@@ -18,7 +20,7 @@ class MotionToPhotonServer
void
(
*
abortMeasurement
)();
/* Put your SSID & Password */
const
char
*
ssid
=
"Calibratio"
;
// Enter SSID here
const
char
*
ssid
=
"Calibratio
2
"
;
// Enter SSID here
const
char
*
password
=
""
;
//Enter Password here
/* Put IP Address details */
...
...
This diff is collapsed.
Click to expand it.
data/index.html
+
1
−
1
View file @
c217d4e3
...
...
@@ -2,7 +2,7 @@
<html>
<head>
<meta
charset=
"ISO-8859-1"
>
<title>
Calibratio V
1.1
</title>
<title>
Calibratio V
2
</title>
<!-- Hello you there, reading the code! This was coded by Sebastian Pape aka PapeCoding.de -->
<style>
*
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment