Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
ICBM
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
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
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
detectors
DSSC
ICBM
Commits
fe8ecd49
Commit
fe8ecd49
authored
1 year ago
by
Cyril Danilevski
Browse files
Options
Downloads
Patches
Plain Diff
Wait in setup until ethernet available
parent
a38dc779
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#130837
passed
1 year ago
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
esp32_ethernet.cpp
+2
-0
2 additions, 0 deletions
esp32_ethernet.cpp
esp32_ethernet.hpp
+1
-1
1 addition, 1 deletion
esp32_ethernet.hpp
icbm.ino
+6
-0
6 additions, 0 deletions
icbm.ino
with
9 additions
and
1 deletion
esp32_ethernet.cpp
+
2
−
0
View file @
fe8ecd49
...
...
@@ -5,6 +5,8 @@ We use Ethernet, but reuse much of the networking utilities.
#include
"esp32_ethernet.hpp"
bool
eth_connected
=
false
;
void
EthernetEvent
(
WiFiEvent_t
event
)
{
...
...
This diff is collapsed.
Click to expand it.
esp32_ethernet.hpp
+
1
−
1
View file @
fe8ecd49
...
...
@@ -16,7 +16,7 @@ We use Ethernet, but reuse much of the networking utilities.
#define ETH_TYPE ETH_PHY_IP101
#define ETH_CLK_MODE ETH_CLOCK_GPIO0_IN
static
bool
eth_connected
=
false
;
extern
bool
eth_connected
;
void
EthernetEvent
(
WiFiEvent_t
event
);
void
connectNetwork
();
...
...
This diff is collapsed.
Click to expand it.
icbm.ino
+
6
−
0
View file @
fe8ecd49
...
...
@@ -228,6 +228,7 @@ void onMessage(const SNMP::Message *message, const IPAddress remote, const uint1
}
unsigned
long
start
;
extern
bool
eth_connected
;
void
setup
()
{
Serial
.
begin
(
115200
);
...
...
@@ -236,6 +237,11 @@ void setup() {
snmp
.
begin
(
&
udp
);
snmp
.
onMessage
(
onMessage
);
// Start
while
(
!
eth_connected
)
{
Serial
.
print
(
"-"
);
delay
(
100
);
}
start
=
millis
();
// MPOD
SNMP
::
Message
*
message
=
mpod
.
setup
();
...
...
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