BESS (formerly known as SoftNIC) is a modular framework for software switches. BESS itself is not a virtual switch; it is neither pre-configured nor hard-coded to provide particular functionality, ...
Abstract: An inertial switch with bi-directional adjustable threshold function is designed, and the adjustable threshold is achieved by electrostatic force. Based on Micro-Electro-Mechanical System ...
You can set/get the state with the API, and you can also monite the state switch events by listening the 'active' and 'inactive' events.