MBLMechanicalSwitch Class Reference

Inherits from MBLModule : NSObject
Declared in MBLMechanicalSwitch.h

Overview

Interface to on-board switch (pushbutton)

  switchValue

Data representing the current state of the switch. Event callbacks will be provided an MBLNumericData object, where a bool value of YES means pressed, and NO means released.

@property (nonatomic, readonly) MBLData<MBLNumericData*> *switchValue

Declared In

MBLMechanicalSwitch.h

  switchUpdateEvent

Event representing a change in the push button state (pressed/depressed). Event callbacks will be provided an MBLNumericData object, where a bool value of YES means pressed, and NO means released.

@property (nonatomic, readonly) MBLEvent<MBLNumericData*> *switchUpdateEvent

Declared In

MBLMechanicalSwitch.h