nrf-rs / nrfxlib Goto Github PK
View Code? Open in Web Editor NEWRust wrapper for the Nordic nrfxlib library for the nRF9160.
License: Apache License 2.0
Rust wrapper for the Nordic nrfxlib library for the nRF9160.
License: Apache License 2.0
I wonder if the wait_for_lte
function should check on receiving a status of +CEREG: 4
and fail. I think +CEREG: 4
indicates that there's no available network i.e. "Unknown (for example, out of Evolved Terrestrial Radio Access Network (E-UTRAN) coverage)". Or is the idea to continuously try until it can get one?
Hi, I'm very new to doing embedded dev with Rust.
I'm trying to use https://github.com/42-technology-ltd/nrf9160-demo
but I keep getting cast errors like this:
let result = unsafe { sys::nrf_write(self.fd, ptr as *const _, length) };
| ^^^^^^ expected `u32`, found `usize`
Is there a way to fix this or can I help fix it?
We can't publish this crate as it uses a git-submodule. We can't publish it with a git-dep on nrfxlib-sys either. The only solution is to fix nrf-rs/nrfxlib-sys#6, publish that crate, then we can publish this crate.
I was trying to use the nrf9160-demo application with the latest version of this repo, but I had some errors.
0x0000_C000
as the load address, because that's what the latest SPM seems to use. Or at least, that's what the SPM built with the "at_sample" application was expecting; I think they might auto-configure the flash partition layout depending on the application you are building.Err(Nrfxlib(Nordic("new_socket", -1, 41)))
if I tried to make a TLS v1.3 socket with verification enabled. Error 41 is NRF_EPROTOTYPE
.Err(Nrfxlib(Nordic("tls_connect", -1, 45))
, which is NRF_EOPNOTSUPP
.Currently the init function assumes a particular memory layout. When using a custom bootloader the memory layout may vary significantly. It would be nice to be able to pass in the addresses.
Great work on the library!
One thing I was a little confused by, is the mutable borrow here. I can't really find a reason why it'd have to be mutably borrowed, since it works just fine when changing it into an immutable borrow.
The reason I had to change this was because I wanted to receive data from the socket after polling it, which was not possible because the socket was already being mutably borrowed by the PollEntry.
I'll drop a PR to change this.
The embedded-nal crate exposes a couple of traits (e.g. TcpClientStack
, UdpClientStack
, TcpFullStack
, UdpFullStack
, etc) to facilitate writing networking abstractions that are platform independent.
Adding DTLS sockets would allow us to add a Rust language implementation of CoAP.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.