Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make sure the embedded-nal implementations only makes use of error-ty… #53

Merged
merged 2 commits into from
Nov 5, 2021

Conversation

MathiasKoch
Copy link
Member

…pes from ublox-sockets

@MathiasKoch MathiasKoch force-pushed the fix/ublox-sockets-error branch from 09e8baa to ce8b816 Compare September 30, 2021 08:52
@codecov-commenter
Copy link

Codecov Report

Merging #53 (ce8b816) into master (7a448d8) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@          Coverage Diff           @@
##           master     #53   +/-   ##
======================================
  Coverage    9.98%   9.98%           
======================================
  Files          54      54           
  Lines        1513    1513           
  Branches      347     348    +1     
======================================
  Hits          151     151           
  Misses       1332    1332           
  Partials       30      30           
Impacted Files Coverage Δ
ublox-cellular/src/lib.rs 100.00% <ø> (ø)
ublox-cellular/src/services/data/error.rs 0.00% <ø> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7a448d8...ce8b816. Read the comment docs.

@MathiasKoch MathiasKoch marked this pull request as ready for review November 5, 2021 09:10
@MathiasKoch MathiasKoch merged commit feeeae6 into master Nov 5, 2021
@MathiasKoch MathiasKoch deleted the fix/ublox-sockets-error branch November 5, 2021 09:12
andresv pushed a commit to andresv/ublox-cellular-rs that referenced this pull request Nov 5, 2021
FactbirdHQ#53)

* Make sure the embedded-nal implementations only makes use of error-types from ublox-sockets

* Add embedded-hal-driver keyword to crates.io
# Conflicts:
#	ublox-cellular/Cargo.toml
#	ublox-cellular/src/services/data/tcp_stack.rs
#	ublox-cellular/src/services/data/udp_stack.rs
MathiasKoch added a commit that referenced this pull request Jan 28, 2022
* Cargo.toml: replace embedded-time with fugit

And use ublox-sockets that support fugit time crate.

* lib: introduce new Clock trait and Instant alias

* replace embedded-time with fugit

`embedded-time` has some serious issues and moves too slowly and tries to do too much in single lib. Fugit is a time library that was built because some people were not happy to use embedded-time on embedded systems.
Fugit only deals with time conversions and those conversions are done using const generics. So most of the stuff is  happening during compilation.
This is very light weight compared to embedded-time.

* rename FREQ_HZ to TIMER_HZ

the same is used in rtic and it is more clear what it is

* lib: export Clock from atat

* use Clock trait from atat lib

* examples: update common_lib to latest

* examples: linux wip

* Make sure the embedded-nal implementations only makes use of error-ty… (#53)

* Make sure the embedded-nal implementations only makes use of error-types from ublox-sockets

* Add embedded-hal-driver keyword to crates.io
# Conflicts:
#	ublox-cellular/Cargo.toml
#	ublox-cellular/src/services/data/tcp_stack.rs
#	ublox-cellular/src/services/data/udp_stack.rs

* test_helpers: update to WouldBlock based Clock

* error: add helper to convert Clock error to Error::Generic

From trait cannot be used here because Clock error is associated type

* client: use nb::block to wait for timer

* import atat from blackbirdhq master

* use fugit defmt feature to get Format impl

* linux: set_socket_storage

* add IpAddr, Ipv4Addr, Ipv6Addr, SocketAddr to prelude

* linux example: add socket read/write

* reexport fugit

fugit is needed for implementing Clock trait therefore it makes sense to reexport it here

* add some general documentation about the crate

* make first examples buildable also on macos

on macos dummy gpio support is used

* rename linux example to sockets, add args support

* power: add nb::block! for blocking timer.waits

without those it returns immediately without blocking in place

* use atat and ublox-sockets from crates.io

* use fmt.rs to support log or defmt

* examples: add better logging

* update to embedded-hal 1.0.0-alpha.6

* add .DS_Store to .gitignore

macOS creates those nasty files

* update atat and ublox-sockets

* Update ublox-cellular/Cargo.toml

* Replace CharVec with Bytes, following deprecation warning in ATAT

* Fix tests & add defmt-impl feature

Co-authored-by: Andres Vahter <[email protected]>
Co-authored-by: Andres Vahter <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants