Comments (12)
With #48 and #43, I can now compile this as a dependency on an ESP32-C3. Now I'm going to try the LED example to see if I can get it working 😃
from rs-matter.
The simplest solution to rustix is to compile env_logger
with default features disabled, I'll make a PR for that.
from rs-matter.
If one replaces smol = "1.3.0"
with the one from https://github.com/esp-rs-compat/smol, it removes the socket2
, libc
and signal-hook-registry
errors. So it looks like it's really only rustix
that I can't find a known patch for somewhere.
from rs-matter.
I had created an example that built on ESP32 (https://github.com/kedars/matter-rs/blob/master/examples/esp-onoff-light/Cargo.toml). The crypto part was all nullified, but the build was functional. It was quite an old version of the matter-rs so, but in case it helps your investigations.
from rs-matter.
Thank you, I hadn't seen that. I've taken a brief look at it, it'll help me build an example once I've sorted out the deps.
from rs-matter.
@kedars after resolving dependency issues, building fails because of the sys
module not having a target_os = "espidf"
#[cfg(target_os = "macos")]
mod sys_macos;
#[cfg(target_os = "macos")]
pub use self::sys_macos::*;
#[cfg(target_os = "linux")]
mod sys_linux;
#[cfg(target_os = "linux")]
pub use self::sys_linux::*;
#[cfg(any(target_os = "macos", target_os = "linux"))]
mod posix;
#[cfg(any(target_os = "macos", target_os = "linux"))]
pub use self::posix::*;
So I was unsure of how to proceed from there. When building with hte esp Rust target, Cargo sets target_os
to espidf
.
from rs-matter.
Yes, those things got introduced later on. You'll have to create the sys_espidf target, and implement the Psm and mDNS APIs. For now, you can just keep them empty?
from rs-matter.
That's a reasonable approach, I'll do that, thanks.
from rs-matter.
@kedars We should probably close this, because the two new branches compile for ESP IDF just fine.
from rs-matter.
Yes
from rs-matter.
@nevi-me Were you successful in running either of the branches on an ESP32 MCU?
from rs-matter.
@nevi-me Were you successful in running either of the branches on an ESP32 MCU?
I haven't checked yet, I'll have time properly in the weekend. I'll confirm on Matrix when I've done so.
from rs-matter.
Related Issues (20)
- IPv6-specific "Host is unreachable" error that exits the matter runtime HOT 10
- How to actually implement an LED light in onff_light example? HOT 2
- Error when trying to add device to Google Home HOT 11
- Logging updates to improve debugging: adding cluster path information
- Error: environment variable not found HOT 14
- Provisioning with Amazon Alexa fails with Invalid Cert error during the Case 3 step HOT 2
- Meeting, 2023-10-06 HOT 2
- Support dimmable and colored lights
- Planned support for zigbee? HOT 4
- ESP-IDF build instructions HOT 2
- Commissioning with Google Home fails at the end with "device not found" HOT 1
- Explain how to install/Link the `chip-tool` in readme
- [BUG] Light On Off Example Crashing [M1][no_std] HOT 2
- Cannot run example onoff_light in the no_std branch HOT 7
- Provide decent error message for wrapped errors HOT 7
- Update README.md with info that Avahi daemon and Chrome on Linux should be stopped HOT 14
- [BUG] Unable to commission with Apple Home HOT 18
- Add `cargo fmt --check` and `cargo clippy` as part of the CI
- Update syn crate version 1 to 2 HOT 1
- Can't establish CASE, rs-matter unable to verify ICAC certificate that's missing subject key ID extension HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rs-matter.