Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
arduino-esp32
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
arduino-esp32
Commits
f9bb62a9
Unverified
Commit
f9bb62a9
authored
Mar 22, 2024
by
Lucas Saavedra Vaz
Committed by
GitHub
Mar 22, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add MacAddress string constructor (#9400)
* Add MacAddress string constructor * Change implementation
parent
29ede482
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
cores/esp32/MacAddress.cpp
cores/esp32/MacAddress.cpp
+4
-0
cores/esp32/MacAddress.h
cores/esp32/MacAddress.h
+1
-0
No files found.
cores/esp32/MacAddress.cpp
View file @
f9bb62a9
...
...
@@ -28,6 +28,10 @@ MacAddress::MacAddress(const char *macstr){
fromString
(
macstr
);
}
MacAddress
::
MacAddress
(
const
String
&
macstr
){
fromString
(
macstr
.
c_str
());
}
MacAddress
::
MacAddress
(
uint8_t
b1
,
uint8_t
b2
,
uint8_t
b3
,
uint8_t
b4
,
uint8_t
b5
,
uint8_t
b6
)
{
_type
=
MAC6
;
memset
(
_mac
.
bytes
,
0
,
sizeof
(
_mac
.
bytes
));
...
...
cores/esp32/MacAddress.h
View file @
f9bb62a9
...
...
@@ -54,6 +54,7 @@ public:
MacAddress
(
const
uint8_t
*
macbytearray
)
:
MacAddress
(
MAC6
,
macbytearray
)
{}
MacAddress
(
const
char
*
macstr
);
MacAddress
(
const
String
&
macstr
);
virtual
~
MacAddress
()
{}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment