Add switching hub controller example code