Slave Control API > BS2_SetSlaveDevice
In case of CoreStation, Add/Modify/Delete a slave device from the master device.
#include "BS_API.h" int BS2_SetSlaveExDevice(void* context, uint32_t deviceId, uint32_t channelPort, BS2Rs485SlaveDeviceEX* slaveDevices, uint32_t slaveDeviceCount);
context
: ContextdeviceId
: Device IDchannelPort
: Channel portslaveDevices
: List of slave deviceslaveDeviceCount
: Number of slave device
If successfully done, BS_SDK_SUCCESS will be returned.
If there is an error, the corresponding error code will be returned.