I have some devices (i.e. leds) that I need to control on a Raspberry Pi, but I was thinking if there is a way in which I can put the code in a server, and then when the raspberry Pi receives a certain command to turn on a led, it takes the command from the server. I need to achieve this thing as I dont need to show the code to the client on the raspberry pi. I am using .net core. This is for educational purpose not for business.
My pigpio library lets you control the GPIO of one or more Pis from another machine on the network. The other machine may be a Windows, Linux, Mac, or Android machine. It's simplest if the other machine can run Python.
I am not familiar with .NET.
Have a look at this .NET interface to pigpio provided by unosquare.