StreamSwitchSmoothSettings.onSwitchError property

Callback which will be called if a switch request cannot be fulfilled

Signature:

onSwitchError?: (message: string, inputPin?: Pins) => void;