ChanServ changed the topic of #rust-embedded to: Welcome to the Rust Embedded IRC channel! Bridged to #rust-embedded:matrix.org and logged at https://libera.irclog.whitequark.org/rust-embedded, code of conduct at https://www.rust-lang.org/conduct.html
IlPalazzo-ojiisa has quit [Quit: Leaving.]
<M9names[m]> <ragarnoy[m]> "well, a lot of it is lack of..." <- i don't suppose you tried linking the clang built version of the library instead of the gcc one?
<M9names[m]> M9names[m]: i'm assuming here that keil isn't using it's own libc with clang, which might be a mistake
<M9names[m]> <ragarnoy[m]> "if i remove the gcc linker i..." <- > <@ragarnoy:matrix.org> if i remove the gcc linker i start with this small error:... (full message at <https://catircservices.org/_matrix/media/v3/download/catircservices.org/VqNxQwbRzvdvdVSIVKxwxeVn>)
sashin has joined #rust-embedded
bpye has quit [Quit: Ping timeout (120 seconds)]
bpye has joined #rust-embedded
bpye has quit [Quit: Ping timeout (120 seconds)]
bpye has joined #rust-embedded
bpye has quit [Quit: Ping timeout (120 seconds)]
bpye has joined #rust-embedded
rjmp[m] has quit [Quit: Idle timeout reached: 172800s]
pbsds has quit [Quit: The Lounge - https://thelounge.chat]
pbsds has joined #rust-embedded
notgull has joined #rust-embedded
notgull has quit [Ping timeout: 256 seconds]
bpye2 has joined #rust-embedded
bpye has quit [Ping timeout: 264 seconds]
bpye2 is now known as bpye
sashin has quit [Remote host closed the connection]
notgull has joined #rust-embedded
notgull has quit [Ping timeout: 268 seconds]
bibble235[m] has joined #rust-embedded
<bibble235[m]> Hi folks thanks for doing this
<bibble235[m]> I am a beginner looking for pointers (no pun intended)
<bibble235[m]> I moved to embedded-hal 1.0.0 and want to understand how to make a spiDev for an STM32
<bibble235[m]> Ideally I need to learn a bit more about rust I know and looking at the letsgetrusty youtube... (full message at <https://catircservices.org/_matrix/media/v3/download/catircservices.org/lGLNfcpQQZMjZWSYwjLYHMoQ>)
<bibble235[m]> * Ideally I need to learn a bit more about rust I know and looking at the letsgetrusty youtube... (full message at <https://catircservices.org/_matrix/media/v3/download/catircservices.org/RmrDMuEVYlhfIgKRbmBvqrqB>)
<bibble235[m]> New to Matrix I will move my question to stm32-rs
emerent has quit [Ping timeout: 260 seconds]
Noah[m]1 has quit [Quit: Idle timeout reached: 172800s]
IlPalazzo-ojiisa has joined #rust-embedded
jessebraham[m] has quit [Quit: Idle timeout reached: 172800s]
limpkin has quit [Quit: limpkin]
ryan-summers[m] has quit [Quit: Idle timeout reached: 172800s]
limpkin has joined #rust-embedded
AdamHott[m] has quit [Quit: Idle timeout reached: 172800s]
firefrommoonligh has quit [Quit: Idle timeout reached: 172800s]
notgull has joined #rust-embedded
notgull has quit [Ping timeout: 252 seconds]
<thejpster[m]> (it's a big one because this is merging all the recent changes into main. You can ignore most of the commits as they were already reviewed - just check I updated Cargo.toml and the changelog correctly)
<holo[m]> Hey, im playing with MQTT and basically its working but im getting errors after some time of not publishing any informations: https://github.com/holotrack/switch-embassy-rs/blob/main/src/main.rs... (full message at <https://catircservices.org/_matrix/media/v3/download/catircservices.org/oVuIKXlXRcFRfhCjdjcliHRh>)
<holo[m]> * Hey, im playing with MQTT and basically its working but im getting errors after some time of not publishing any informations: https://github.com/holotrack/switch-embassy-rs/blob/main/src/main.rs... (full message at <https://catircservices.org/_matrix/media/v3/download/catircservices.org/GbVEZoNNNpEjfUzRRoiIvdpW>)
<thejpster[m]> you might need a keepalive - stateful routers between you and the server (especially Network Address Translating routers) will forget the connection if they don't see an IP packet related to that TCP Stream for some period of time.
<thejpster[m]> also I guess the server might time you out
<thejpster[m]> which is one reason to prefer CoAP, because that runs over UDP.
<holo[m]> so i should set it up on mqtt server or on router? BAsically my mqtt server is setup on router itself
<holo[m]> becasue i have just x86 small pc as router
<thejpster[m]> oh, both devices are on the same IP subnet?
<holo[m]> yes
<thejpster[m]> then not a router issue - probably a "server timing out clients" issue
<thejpster[m]> because if they didn't do that, the number of open TCP connections would tend to infinity
<holo[m]> so i should handle it somehow in code?
<holo[m]> disconnect after each message recive and reconect again after some time?
blueluna[m] has joined #rust-embedded
<blueluna[m]> I had a similar problem with rust-mqtt, i resorted to mqtt_client.send_ping(). But I also wondering if it might be better to establish connection for each transfer.
<blueluna[m]> * I had a similar problem with rust-mqtt, i resorted to mqtt_client.send_ping(). But I also wondering if it might be better to establish a new connection for each transfer.
<holo[m]> blueluna[m]: how to send that ping if it will be waiting for message here: https://github.com/holotrack/switch-embassy-rs/blob/main/src/main.rs#L181
<holo[m]> shoud i have some additional emassy task which will be doing it in same time when eg main thread will be waiting for message?
<blueluna[m]> Not sure, a select with a timer? I am only publishing so I ping while waiting for the next publish.
<holo[m]> oo select, will check this one, never use it before so will see how its working 🙂
<holo[m]> s/see/learn/
<blueluna[m]> Have a look at keep_alive also, https://docs.rs/rust-mqtt/0.3.0/rust_mqtt/client/client_config/struct.ClientConfig.html#structfield.keep_alive, I coulnd't figure out how that worked though.
<holo[m]> <blueluna[m]> "Have a look at keep_alive also..." <- ```How long can the MQTT Keep Alive interval be? The value for the keepalive parameter is an integer representing time in seconds. For example, keepalive=300 means that a client shall send a message, e.g., PUBLISH, to the MQTT broker every 300 seconds. After another 150 seconds, the broker closes the connection.``` its for publisher
dirbaio[m] has quit [Quit: Idle timeout reached: 172800s]
notgull has joined #rust-embedded
lulf[m] has quit [Quit: Idle timeout reached: 172800s]
<StephenD[m]> I'm using RTIC on an rp2040. Is there a way I can use monotonics and also have the ability to delay? Right now both the Timer and the Rp2040Monotonic both want the pac.TIMER
<ithinuel[m]> StephenD[m]: rp2040-hal implements RTIC’s monotonic on the Timer type.
<ithinuel[m]> This type is `Clone` (and maybe even `Copy`).
<ithinuel[m]> s/This type is `Clone` (and maybe even `Copy`)./This type is both `Clone` and `Copy`./
<ithinuel[m]> * rp2040-hal implements RTIC’s monotonic on the Timer type. This type is both Clone and Copy.
<ithinuel[m]> * rp2040-hal implements RTIC’s monotonic on the Timer type. This type is both Clone and Copy.
<StephenD[m]> ithinuel[m]: Oh awesome. I didn't even think to check that
<ithinuel[m]> ithinuel[m]: You only need to enable the `rtic-monotonic` feature.
<StephenD[m]> ithinuel[m]: Thank you (:
notgull has quit [Ping timeout: 246 seconds]