Do you have experience with a UniPi connected to a Pi?
http://unipi.technology
https://github.com/UniPiTechnology/evok
Do you have experience with a UniPi connected to a Pi?
http://unipi.technology
https://github.com/UniPiTechnology/evok
See here for more info:
https://github.com/UniPiTechnology/evok/tree/master/pigpio
Those c files show you how unipi uses the pigpio interface, you could recreate this in xojo. Or stay with the http api.