Giter Site home page Giter Site logo

nrfxlib's People

Contributors

eflukx avatar folkertdev avatar frozendroid avatar jonathanpallant avatar wassasin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

nrfxlib's Issues

Add DTLS sockets

Adding DTLS sockets would allow us to add a Rust language implementation of CoAP.

Allow configuring init params

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.

Implement embedded-nal traits?

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.

Can't publish crate

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.

Should wait_for_lte fail on not finding an available network?

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?

Errors trying to connect

I was trying to use the nrf9160-demo application with the latest version of this repo, but I had some errors.

  1. I had to change the nrf9160-hal to use 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.
  2. I couldn't init nrfxlib with trace off, but it did work with trace on.
  3. Creating a TLS socket failed with 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.
  4. Creating a TLS socket worked if I made a TLS v1.2 socket with verification disabled, but connecting to it gave Err(Nrfxlib(Nordic("tls_connect", -1, 45)), which is NRF_EOPNOTSUPP.

PollEntry mutably borrows the Pollable

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.