
:breadcrumbs: <a href="../../index.html">Home</a> / <a href="../../index.html#starter-kits">Starter Kits</a> / <a href="../../Kits/HardwareHacking/HardwareHacking.html">Starter Kit: Hardware Hacking</a> / Control Remote Mains Switches using C

.. |ref_set_monoflop| replace:: :c:func:`industrial_quad_relay_set_monoflop <industrial_quad_relay_set_monoflop>`
.. |bitmask_02| replace:: ``(1 << 0) | (1 << 2)``

.. _starter_kit_hardware_hacking_remote_switch_c:

Control Remote Mains Switches using C
=====================================

.. include:: CCommon.substitutions
   :start-after: >>>intro
   :end-before: <<<intro

.. include:: RemoteSwitch.substitutions
   :start-after: >>>intro
   :end-before: <<<intro

Goals
-----

.. include:: RemoteSwitch.substitutions
   :start-after: >>>goals
   :end-before: <<<goals

Source Code
-----------

`Download <https://raw.githubusercontent.com/Tinkerforge/hardware-hacking/master/remote_switch/c/remote_switch.c>`__

.. literalinclude:: ../../../../../hardware-hacking/remote_switch/c/remote_switch.c
 :language: c
 :tab-width: 4
