Skip to content

MiP_Weight

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

Class MiP_Weight

Manages reading weight data measured by MiP.

Table of Contents


Public Functions

read

Signature: int8_t read()

Summary: Reads the current weight on MiP's weight sensor.

Details:

Uses cached weight data from a recent Out-Of-Band status event if available; otherwise performs a direct query with automatic retries on communication error.

Returns: int8_t Current payload weight in grams (signed), or 0 on error.


Public Variables

MIP_CMD_GET_WEIGHT

Signature: constexpr uint8_t MIP_CMD_GET_WEIGHT

Summary: MiP protocol command byte used to request the current payload weight.

Details:

This value is placed in the first byte of requests sent to MiP (and appears in corresponding responses). See the official MiP BLE Protocol for the complete list.


Clone this wiki locally