Old revisions Add to book Export to PDF Book Creator Add this page to your book Book Creator Remove this page from your book Manage book (0 page(s)) Help Configuration API > BS2_SetRelayActionConfig BS2_SetRelayActionConfig [+ 2.8.1] IM-120 Save RelayAction Settings. Declaration #include "BS_API.h" int BS2_SetRelayActionConfig(void* context, uint32_t deviceId, const BS2RelayActionConfig* config); BS2RelayActionConfig Structure Parameters [In] context : Context [In] deviceId : Device Identifier [In] config : RelayAction Setting Information Pointer Return Values Return BS_SDK_SUCCESS when successful, and return an appropriate error code when an error occurs.