"Hey im trying to use enums to..." <- > <@holo:matrix.org> Hey im trying to use enums to handle multiple actions on my pico w. On pico W it looks its sendting everything like it should https://pastebin.com/cQiv2yY7 and this is handle by this code: https://github.com/holotrack/switch-embassy-rs/blob/main/src/main.rs#L187 > > But on controller side im getting: > > ``` > ERROR of_controller > Pin remote status read error: Os { code: 104, kind: ConnectionReset, message: "Connection reset by peer" } > ``` > > In this line: https://github.com/holotrack/of-controller/blob/master/src/main.rs#L90 > > I tried to add this reciving in loop but still im getting first same error and on next run im getting "empty" buffer with only '0" inside. Any idea what im missing here? > I resolve it by handling it on one connection and adding variant Ok(0) for reading on controller + loop for reciving/answers (code pushed) but still not understamd why previous solution didnt work