PiInTheSky / lora-gateway

LoRa gateway to Habitat
96 stars 69 forks source link

Port to lgpio as a wiringPi replacement #78

Open tomwardill opened 4 months ago

tomwardill commented 4 months ago

wiringPi is deprecated and removed from the repos. Also, it is not usable on a Pi5 due to the new GPIO chip and interface.

Instead, remove the use of wiringPi and use lgpio http://abyz.me.uk/lg/lgpio.html. This allows use on bullseye, bookworm, and in theory, future releases.

Also, the paho mqtt library is now packaged in the repositories, so we can just install that and link against it, instead of building our own from source.

This has been lightly tested locally, and is recieving and parsing packets. Apologies for the whitespace changes, my IDE got a bit carried away.