-
Notifications
You must be signed in to change notification settings - Fork 0
MiP_Weight
Manages reading weight data measured by MiP.
Signature: void processEvent(int8_t weightValue)
Summary: Handles an incoming weight event notification from the transport layer.
Details:
Called by MiP::dispatchEvent() when a MIP_CMD_GET_WEIGHT notification arrives over UART. Caches the weight value and marks the weight data as valid.
Parameters:
| Parameter | Description |
|---|---|
weightValue |
Raw payload weight value in grams reported by MiP. |
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.
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.
🔗 Quick Links: Main Repository • Report an Issue • Wiki Home
An open-source API for the WowWee MiP Robot. Licensed under Apache-2.0.
- MiP
- MiPChestLED
- MiPClapSettings
- MiPDebug
- MiPHardwareInfo
- MiPHeadLEDs
- MiPIRDongleCode
- MiPSoftwareVersion
- MiPStatus
- MiP_Battery
- MiP_ChestLED
- MiP_Clap
- MiP_EEPROM
- MiP_Gesture
- MiP_HeadLEDs
- MiP_Infrared
- MiP_Mode
- MiP_Motion
- MiP_Odometer
- MiP_Position
- MiP_Radar
- MiP_Serial
- MiP_Shake
- MiP_Sound
- MiP_Version
- MiP_Weight
- MiP_WiFi