Skip to content

Commit 52a5e89

Browse files
authored
Merge branch 'espressif:master' into matter_rgb_light
2 parents d791998 + 4fc8abf commit 52a5e89

File tree

15 files changed

+209
-1
lines changed

15 files changed

+209
-1
lines changed

libraries/AsyncUDP/keywords.txt

+26
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
AsyncUDP KEYWORD1
1010
AsyncUDPPacket KEYWORD1
11+
AsyncUDPMessage KEYWORD1
1112

1213
#######################################
1314
# Methods and Functions (KEYWORD2)
@@ -19,6 +20,21 @@ listen KEYWORD2
1920
listenMulticast KEYWORD2
2021
close KEYWORD2
2122
write KEYWORD2
23+
space KEYWORD2
24+
flush KEYWORD2
25+
isBroadcast KEYWORD2
26+
isMulticast KEYWORD2
27+
isIPv6 KEYWORD2
28+
interface KEYWORD2
29+
localIPv6 KEYWORD2
30+
remoteIPv6 KEYWORD2
31+
remoteMac KEYWORD2
32+
send KEYWORD2
33+
peek KEYWORD2
34+
available KEYWORD2
35+
writeTo KEYWORD2
36+
broadcastTo KEYWORD2
37+
sendTo KEYWORD2
2238
broadcast KEYWORD2
2339
onPacket KEYWORD2
2440
data KEYWORD2
@@ -27,7 +43,17 @@ localIP KEYWORD2
2743
localPort KEYWORD2
2844
remoteIP KEYWORD2
2945
remotePort KEYWORD2
46+
listenIP KEYWORD2
47+
listenIPv6 KEYWORD2
48+
lastErr KEYWORD2
49+
_s_recv KEYWORD2
3050

3151
#######################################
3252
# Constants (LITERAL1)
3353
#######################################
54+
55+
TCPIP_ADAPTER_IF_STA LITERAL1
56+
TCPIP_ADAPTER_IF_STA LITERAL1
57+
TCPIP_ADAPTER_IF_AP LITERAL1
58+
TCPIP_ADAPTER_IF_ETH LITERAL1
59+
TCPIP_ADAPTER_IF_PPP LITERAL1

libraries/Network/src/NetworkClient.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,7 @@ uint8_t NetworkClient::connected() {
553553
}
554554
if (_connected) {
555555
uint8_t dummy;
556-
int res = recv(fd(), &dummy, 0, MSG_DONTWAIT);
556+
int res = recv(fd(), &dummy, 1, MSG_DONTWAIT | MSG_PEEK);
557557
// avoid unused var warning by gcc
558558
(void)res;
559559
// recv only sets errno if res is <= 0

libraries/OpenThread/examples/COAP/coap_lamp/coap_lamp.ino

+14
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
// Copyright 2024 Espressif Systems (Shanghai) PTE LTD
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
115
#include "OThreadCLI.h"
216
#include "OThreadCLI_Util.h"
317

libraries/OpenThread/examples/COAP/coap_switch/coap_switch.ino

+14
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
// Copyright 2024 Espressif Systems (Shanghai) PTE LTD
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
115
#include "OThreadCLI.h"
216
#include "OThreadCLI_Util.h"
317

libraries/OpenThread/examples/SimpleCLI/SimpleCLI.ino

+14
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
// Copyright 2024 Espressif Systems (Shanghai) PTE LTD
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
115
/*
216
* OpenThread.begin(false) will not automatically start a node in a Thread Network
317
* The user will need to start it manually using the OpenThread CLI commands

libraries/OpenThread/examples/SimpleNode/SimpleNode.ino

+14
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
// Copyright 2024 Espressif Systems (Shanghai) PTE LTD
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
115
/*
216
* OpenThread.begin() will automatically start a node in a Thread Network
317
* If NVS is empty, default configuration will be as follow:

libraries/OpenThread/examples/SimpleThreadNetwork/ExtendedRouterNode/ExtendedRouterNode.ino

+14
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
// Copyright 2024 Espressif Systems (Shanghai) PTE LTD
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
115
#include "OThreadCLI.h"
216
#include "OThreadCLI_Util.h"
317

libraries/OpenThread/examples/SimpleThreadNetwork/LeaderNode/LeaderNode.ino

+14
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
// Copyright 2024 Espressif Systems (Shanghai) PTE LTD
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
115
/*
216
OpenThread.begin(false) will not automatically start a node in a Thread Network
317
A Leader node is the first device, that has a complete dataset, to start Thread

libraries/OpenThread/examples/SimpleThreadNetwork/RouterNode/RouterNode.ino

+14
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
// Copyright 2024 Espressif Systems (Shanghai) PTE LTD
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
115
/*
216
OpenThread.begin(false) will not automatically start a node in a Thread Network
317
A Router/Child node is the device that will join an existing Thread Network

libraries/OpenThread/examples/ThreadScan/ThreadScan.ino

+14
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
// Copyright 2024 Espressif Systems (Shanghai) PTE LTD
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
115
/*
216
OpenThread.begin(true) will automatically start a node in a Thread Network
317
Full scanning requires the thread node to be at least in Child state.

libraries/OpenThread/examples/onReceive/onReceive.ino

+14
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
// Copyright 2024 Espressif Systems (Shanghai) PTE LTD
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
115
/*
216
OpenThread.begin() will automatically start a node in a Thread Network
317
This will demonstrate how to capture the CLI response in a callback function

libraries/OpenThread/src/OThreadCLI.cpp

+14
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
// Copyright 2024 Espressif Systems (Shanghai) PTE LTD
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
115
#include "OThreadCLI.h"
216
#if SOC_IEEE802154_SUPPORTED
317
#if CONFIG_OPENTHREAD_ENABLED

libraries/OpenThread/src/OThreadCLI.h

+14
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
// Copyright 2024 Espressif Systems (Shanghai) PTE LTD
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
115
#pragma once
216
#include "soc/soc_caps.h"
317
#include "sdkconfig.h"

libraries/OpenThread/src/OThreadCLI_Util.cpp

+14
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
// Copyright 2024 Espressif Systems (Shanghai) PTE LTD
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
115
#include "OThreadCLI.h"
216
#if SOC_IEEE802154_SUPPORTED
317
#if CONFIG_OPENTHREAD_ENABLED

libraries/OpenThread/src/OThreadCLI_Util.h

+14
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
// Copyright 2024 Espressif Systems (Shanghai) PTE LTD
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
115
#pragma once
216
#include "soc/soc_caps.h"
317
#include "sdkconfig.h"

0 commit comments

Comments
 (0)