Skip to content

Conversation

@draxaris1010
Copy link
Contributor

@draxaris1010 draxaris1010 commented Sep 11, 2024

TODO:

  • buzzer
    • find a buzzer
    • cool beep
  • better idle animation?
  • leddy integration
  • scan cooldown

@draxaris1010 draxaris1010 added the vinscant Hardware related issues label Sep 11, 2024
@draxaris1010 draxaris1010 marked this pull request as ready for review July 3, 2025 15:49
@draxaris1010 draxaris1010 requested a review from hannes-dev July 3, 2025 17:14
Copy link
Member

@hannes-dev hannes-dev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! Most of your code seems really good and you show a good understanding of most Rust syntax, but some slight tweaks can be made!

@draxaris1010 draxaris1010 requested a review from hannes-dev July 25, 2025 19:47
@draxaris1010 draxaris1010 requested a review from hannes-dev August 8, 2025 17:35
Copy link
Member

@hannes-dev hannes-dev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks really nice overall :)

leds: 8,
idle_effect: Box::new(PingPong::new(8, vec![Srgb::new(0xff, 0x7f, 0x00)])),
buzzer,
mqtt_client: EspMqttClient::new("mqtt://192.168.0.12:1883", &MqttClientConfiguration{
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably not a big deal, but would it be better for this to be a XXX.kelder.local instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dns does not work correctly for some reason

Comment on lines +123 to +125
if let Ok(answer) = scanner.reqa() {
if let Ok(uid) = scanner.select(&answer) {
if uid.as_bytes() == last_uid.as_bytes() && get_time() - last_time <= 15 {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if let Ok(answer) = scanner.reqa() {
if let Ok(uid) = scanner.select(&answer) {
if uid.as_bytes() == last_uid.as_bytes() && get_time() - last_time <= 15 {
if let Ok(answer) = scanner.reqa()
&& let Ok(uid) = scanner.select(&answer)
&& uid.as_bytes() == last_uid.as_bytes() && get_time() - last_time <= 15 {

also definitely not necessary, but if you want you could update to rust 1.88 and edition 2024 and use if let chains :D

@draxaris1010 draxaris1010 merged commit 36911c7 into main Aug 22, 2025
@draxaris1010 draxaris1010 deleted the rust branch August 22, 2025 19:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

vinscant Hardware related issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants