# Switch

## {{@264#bkmrk-open-iot-and-iiot-ga}}


Link to repositories:

- [C](https://github.com/Redisage/STM32_Open_IoT_and_IIoT_Gateways_examples/tree/main/Button_example)

Simple tactile switch example intended for the Open IoT Gateway. After flash, connect device to a PC and open port in Console Terminal. The information about the switch pressed state will be displayed in the console as shown below.

[![image.png](https://doc.redisage.com/uploads/images/gallery/2025-01/scaled-1680-/v4Aimage.png)](https://doc.redisage.com/uploads/images/gallery/2025-01/v4Aimage.png)