I need to know how to create functions that can activate various relays. How do I do that using the existing library? Is it possible to use the relayCommand function within another function? If so, I would greatly appreciate it if someone could point me in the right directions.
You should be able to instantiate the object and then call that objects functions like in this example: https://github.com/ControlEverythingCom/NCD8Relay/blob/master/firmware/examples/CloudControl.cpp
So if you instantiated the object as relayController you would later call relayController.turnOffRelay(1).
That being said, .relayCommand() isn’t a method inside of the NCDxRelay libraries so its not possible to call it.