ferrous-systems / rust-exercises

Exercises for learning Rust, by Ferrous Systems
Creative Commons Attribution Share Alike 4.0 International
127 stars 15 forks source link

Adds a new `send_recv` method to the dk crate. #87

Closed jonathanpallant closed 2 months ago

jonathanpallant commented 2 months ago

This puts the given data into a packet, along with a random device address, and then waits for a reply containing a matching device address. This allows the function to reject packets that were intended for another device, and makes it somewhat robust when multiple devices are running on the same channel at the same time.

miguelraz commented 2 months ago

Alright, for some reason my old/puzzle-fw kept flashing in the loopback-fw and I had to run cargo run on the nrf52-code/puzzle-fw which would flash my dongle appropriately for all code and solutions to run (which I've now verified).

Added notes so that others don't get tripped in the same place.

jonathanpallant commented 2 months ago

Actually that's a good point - I need to delete the old firmware because it won't work any more.