Switch STM32 Open IoT and IIoT Gateways (P10 - P12) Link to repositories: C 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.