Hi every one , i tries to call the generic_onoff_client_set function to send a message from the client to the server but this ain't working. Can someone please help me?
Here is the code:

When i call the function, this is the error i get in the Logs:

Please help! Thank you all