Skip to content

Commit 0d8c03b

Browse files
Ethernet lib: extract Ethernet lib from SocketWrapper lib
1 parent e81ca46 commit 0d8c03b

File tree

9 files changed

+89
-0
lines changed

9 files changed

+89
-0
lines changed

libraries/Ethernet/README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Ethernet Library for Arduino
2+
3+
Provides Ethernet connectivity for Arduino boards using the Arduino Zephyr core, together with a shield or carrier featuring an Ethernet connector.
4+
5+
📖 For more information about this library please read the documentation [here](http://www.arduino.cc/en/Reference/Ethernet).
6+
7+
## License
8+
9+
Copyright (c) 2025 Arduino SA. All rights reserved.
10+
11+
This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.

libraries/Ethernet/keywords.txt

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
#######################################
2+
# Syntax Coloring Map For Ethernet
3+
#######################################
4+
5+
#######################################
6+
# Datatypes (KEYWORD1)
7+
#######################################
8+
9+
Ethernet KEYWORD1 Ethernet
10+
EthernetClient KEYWORD1 EthernetClient
11+
EthernetServer KEYWORD1 EthernetServer
12+
IPAddress KEYWORD1 EthernetIPAddress
13+
14+
#######################################
15+
# Methods and Functions (KEYWORD2)
16+
#######################################
17+
18+
status KEYWORD2
19+
connect KEYWORD2
20+
write KEYWORD2
21+
available KEYWORD2
22+
availableForWrite KEYWORD2
23+
read KEYWORD2
24+
peek KEYWORD2
25+
flush KEYWORD2
26+
stop KEYWORD2
27+
connected KEYWORD2
28+
accept KEYWORD2
29+
begin KEYWORD2
30+
beginMulticast KEYWORD2
31+
beginPacket KEYWORD2
32+
endPacket KEYWORD2
33+
parsePacket KEYWORD2
34+
remoteIP KEYWORD2
35+
remotePort KEYWORD2
36+
getSocketNumber KEYWORD2
37+
localIP KEYWORD2
38+
localPort KEYWORD2
39+
maintain KEYWORD2
40+
linkStatus KEYWORD2
41+
hardwareStatus KEYWORD2
42+
MACAddress KEYWORD2
43+
subnetMask KEYWORD2
44+
gatewayIP KEYWORD2
45+
dnsServerIP KEYWORD2
46+
setMACAddress KEYWORD2
47+
setLocalIP KEYWORD2
48+
setSubnetMask KEYWORD2
49+
setGatewayIP KEYWORD2
50+
setDnsServerIP KEYWORD2
51+
setRetransmissionTimeout KEYWORD2
52+
setRetransmissionCount KEYWORD2
53+
setConnectionTimeout KEYWORD2
54+
55+
#######################################
56+
# Constants (LITERAL1)
57+
#######################################
58+
59+
EthernetLinkStatus LITERAL1
60+
Unknown LITERAL1
61+
LinkON LITERAL1
62+
LinkOFF LITERAL1
63+
EthernetHardwareStatus LITERAL1
64+
EthernetNoHardware LITERAL1
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
name=Ethernet
2+
version=0.1.0
3+
author=Arduino
4+
maintainer=Arduino <info@arduino.cc>
5+
sentence=Enables network connection (local and Internet) using Ethernet on Zephyr enabled boards
6+
paragraph=With this library you can connect to Internet via Ethernet. The library provides both Client and server functionalities. The library permits you to connect to a local network also with DHCP and to resolve DNS.
7+
category=Communication
8+
url=http://www.arduino.cc/en/Reference/Ethernet
9+
architectures=zephyr,zephyr_portenta,zephyr_nicla,zephyr_giga
10+
includes=Ethernet.h
File renamed without changes.
File renamed without changes.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#pragma once
2+
3+
#include "Ethernet.h"
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
// placeholder to allow the discovery of this library

0 commit comments

Comments
 (0)