Matt Johnston
5e49985ed6
embassy-sync: bump to 0.7.0
2025-05-22 13:29:55 +08:00
Yuri Astrakhan
ef0f29f0ed
Update defmt dependencies
2025-05-18 20:52:09 +02:00
Ulf Lilleengen
254b203e1a
fix: update embassy-net changelog
2025-05-06 12:47:29 +02:00
Matt Johnston
c7e997a8d8
embassy-net: Add std and alloc features
...
These are passed through to smoltcp, which otherwise won't handle
some match cases when managed/std feature is enabled externally.
--> .../index.crates.io-1949cf8c6b5b557f/smoltcp-0.12.0/src/iface/socket_set.rs:82:15
|
82 | match &mut self.sockets {
| ^^^^^^^^^^^^^^^^^ pattern `&mut ManagedSlice::Owned(_)` not covered
2025-03-20 11:30:37 +08:00
Skkeye
2098500e05
fix: embassy-net icmp feature docs
2025-02-14 12:48:53 -05:00
Ulf Lilleengen
29d05328f9
chore: prepare embassy-net release
2025-02-14 06:54:09 +01:00
skkeye
7b35265465
feat: Feature match udp sockets
...
fix: fixed compile proto-ipv4/v6 edge cases in the ping module
2025-02-13 10:27:30 +01:00
skkeye
7d2ffa76e5
fix: forgot fmt
2025-02-13 10:27:30 +01:00
skkeye
6d7a5f949c
feat: configurable rate_limit for the ping utility
2025-02-13 10:27:30 +01:00
skkeye
bdb1b81213
fix: nightly fmt
2025-02-13 10:27:30 +01:00
skkeye
74c1fd64d2
embassy-net: add ICMP sockets and a ping utility
2025-02-13 10:27:30 +01:00
Easyoakland
89e25c7b14
don't mention Poll::Ready for async fns as it's implied
2025-01-26 16:55:52 -07:00
Easyoakland
cbbc1f1a2f
update comments to match code
2025-01-26 16:36:12 -07:00
Easyoakland
c0d14a145c
- use with
...
- rename to Truncated to `PacketTooLarge`
2025-01-26 15:51:31 -07:00
Easyoakland
2fe299cc53
don't infinite loop if udp::send methods receive a buffer too large to ever be sent
2025-01-24 18:45:43 -07:00
Ulf Lilleengen
ed63f80637
chore: bump embassy-sync version
...
Prepare version 0.6.2 for release
2025-01-15 16:12:36 +01:00
Dániel Buga
776b2b540b
Prepare embassy-net 0.6
2025-01-05 21:28:45 +01:00
Dániel Buga
44217aa092
Desugar some async fns
2024-12-30 12:13:13 +01:00
Dario Nieuwenhuis
2a1620d6f7
Remove useless std cargo features.
2024-12-25 13:12:33 +01:00
Dániel Buga
9a238e6ad8
Prepare new embassy-time-*driver, embassy-executor, embassy-time
2024-12-22 20:27:15 +01:00
ROMemories
1e2cbeae68
fix(embassy-net): make the Config
constructors const
2024-12-10 14:17:53 +01:00
Dario Nieuwenhuis
c12ebb3a80
net: release v0.5.0
2024-11-28 01:54:50 +01:00
Dario Nieuwenhuis
8b8b7fa05e
net: update to smoltcp v0.12.0
2024-11-28 01:30:27 +01:00
Dániel Buga
c9abff53d7
Bump sync version ( #3562 )
...
* Bump sync version
* Use old embassy-sync in rp bluetooth example
* Downgrade update to minor
2024-11-22 21:16:11 +01:00
Krzysztof Królczyk
9634dfd6c1
chore: address some clippy issues
...
Signed-off-by: Krzysztof Królczyk <Krzysztof.Krolczyk@o2.pl>
2024-11-01 19:08:14 +01:00
Krzysztof Królczyk
af694d233c
chore: improve some log msgs
...
Signed-off-by: Krzysztof Królczyk <Krzysztof.Krolczyk@o2.pl>
2024-11-01 19:08:07 +01:00
Anthony Grondin
acaba50704
feat(embassy-net): Implement wait_send_ready()
+ wait_recv_ready()
for Raw sockets.
2024-10-31 22:25:48 -04:00
Anthony Grondin
70214fc2c2
feat(embassy-net): Implement TcpReader::wait_read_ready()
+ TcpWriter::wait_send_ready()
2024-10-31 22:25:48 -04:00
Frostie314159
117d091ea1
Made import private again.
2024-10-30 12:30:48 +01:00
Frostie314159
28b1e0a98b
Reexported some smoltcp types for raw socket.
2024-10-29 23:05:50 +01:00
Dario Nieuwenhuis
c94c5516d1
net: automatically enable defmt/ip_in_core
2024-10-22 03:34:18 +02:00
Dario Nieuwenhuis
e8ba9696f1
Merge pull request #3368 from AnthonyGrondin/main
...
feat(embassy-net): Implement `wait_recv_ready()` + `wait_send_ready()` for UdpSocket and `wait_read_ready()` + `wait_write_ready()` for TcpSocket
2024-10-21 00:35:13 +00:00
Fan Jiang
b4ee17fb4f
net: Add flush for UDP and Raw sockets.
2024-10-21 01:59:31 +02:00
Dario Nieuwenhuis
9a45d776d8
rustfmt for new nightly.
2024-10-14 00:12:45 +02:00
Dario Nieuwenhuis
f6155cf735
Update smoltcp, embedded-nal-async to use the core::net
IP addr types.
2024-10-07 00:22:44 +02:00
Anthony Grondin
712fa08363
feat(embassy-net): Implement wait_read_ready()
+ wait_write_ready()
for TcpSocket
2024-09-24 22:01:53 -04:00
Anthony Grondin
e8da387726
docs(embassy-net): Update can_send() and may_send() documentation to reflect actual behavior from smoltcp
2024-09-24 22:01:53 -04:00
Anthony Grondin
ae5b78b27a
feat(embassy-net): Implement wait_recv_ready()
+ wait_send_ready()
for UdpSocket
...
- Provides `pub async fn wait_recv_ready(&self) -> ()` and `pub fn poll_recv_ready(&self, cx: &mut Context<'_>) -> Poll<()>`.
This allows polling / waiting on a socket until it can be read, without dequeuing any packets.
- Provides `pub async fn wait_send_ready(&self) -> ()` and `pub fn poll_send_ready(&self, cx: &mut Context<'_> -> Poll<()>`
This allows polling / waiting on a socket until it becomes writable.
2024-09-24 22:01:49 -04:00
Dario Nieuwenhuis
bee53af36a
net: add all combinations of wait methods for link/config up/down.
2024-09-18 21:37:42 +02:00
Dario Nieuwenhuis
be0d9775e3
net: refactor to simplify lifetimes/generics.
2024-09-16 21:17:11 +02:00
Dario Nieuwenhuis
aff1e74862
Merge pull request #3277 from dvdsk/main
...
embassy-net/read document return value Ok(0)
2024-09-10 21:34:11 +00:00
Cirrus
9b142bd80f
feat(embassy-net): add zero-copy UDP send/recv functions
...
Added recv_from_with and send_to_with. These are conceptually similar
to TCP's read_with and write_with functions.
An application can parse received datagrams directly out of the
receive buffer or assemble a datagram of known-length directly into
the send buffer.
2024-08-25 13:14:36 -07:00
dvdsk
5479647962
embassy-net: fix/clearify TcpReader docs. Expand docs on timeouts
2024-08-23 19:18:12 +02:00
dvdsk
acc26a076a
embassy-net/read document return value Ok(0)
2024-08-23 15:04:00 +02:00
Anthony Grondin
d6bf4c45d2
feat(mdns): Enable mdns support through smoltcp
2024-08-16 22:56:32 -04:00
Dario Nieuwenhuis
7a26e117cc
Merge pull request #3198 from sammhicks/main
...
net/tcp: fix flush() waiting forever if socket is reset with pending write data
2024-08-13 17:45:09 +00:00
Dario Nieuwenhuis
59cb1531c9
examples: ensure at least 3 sockets to avoid running out (DHCP, DNS, the user's)
2024-08-07 14:58:20 +02:00
Ulf Lilleengen
44282b18fa
Prepare embassy-time release
2024-08-05 08:56:29 +02:00
Dario Nieuwenhuis
e89ff7d129
Merge pull request #3219 from mirkomartn/bound-dns-servers
...
embassy-net: dns: bound the dns_servers slice
2024-07-29 21:36:35 +00:00
Gasper Stukelj
c5d077a2c6
embassy-net: dns: bound the dns_servers slice
...
`smoltcp::socket::dns::Socket::update_servers()` will
panic if a slice exceeding a fixed length is passed
to it. This is can be especially inconvenient when
using DHCP config.
Avoid panicking by using at most `DNS_MAX_SERVER_COUNT`
DNS servers from the config.
2024-07-29 23:24:44 +02:00