Closed FKral closed 2 months ago
I don't see anything wrong with the code.
Try connecting without discovery, by adding device using the baud rate and address. Add logging to see if there are any errors.
Ok, I probably found the issue
working build: dotnet publish proj.csproj --runtime linux-arm64 --self-contained true
Try adding -p:IncludeNativeLibrariesForSelfExtract=true parameter when running -p:PublishSingleFile=true. I had to use it in the CI build scripts. There are native libraries for accessing the serial port.
Thats it, thank you very much
Hello, I have tried to connect from RPI on Debian 12 aarch64 without any success.
Discovery and connection works from Console, so I copied all values that worked directly into code:
dotnet publish proj.csproj --runtime linux-arm64 -p:PublishSingleFile=true --self-contained true
So I have to use library in the wrong way, any ideas how to make it work? Output Console