Skip to content

MiP_Shake

github-actions[bot] edited this page Aug 10, 2026 · 9 revisions

Class MiP_Shake

Manages whether MiP has been shaken.

Public Elements

MIP_CMD_SHAKE_RESPONSE

Signature: constexpr uint8_t MIP_CMD_SHAKE_RESPONSE

Summary: MiP protocol command bytes used by the shake-detection subsystem.

Details:

These values are placed in the first byte of requests sent to the MiP (and appear in the corresponding responses). See the official MiP BLE Protocol for the complete list.


MiP_Shake

Signature: MiP_Shake(MiP &mip)

Summary: Constructs the shake manager.

Parameters:

Parameter Description
mip A reference to the main MiP object to access core services.

read

Signature: bool read()

Summary: Checks whether the MiP has been shaken since the last call.

Details:

Uses cached data from status events. The shake flag is cleared after returning true (one-shot detection).

Returns: true if a shake was detected since the last call to this function.


Clone this wiki locally