Source code for lpf2.alerts

"""Warnings a hub can show in a LEGO app, for :meth:`lpf2.hub_emulation.setAlert`."""

[docs] LOW_BATTERY: int = 0x01
"""Battery voltage below the configured minimum."""
[docs] HIGH_CURRENT: int = 0x02
"""Motor / port current above safe limit."""
[docs] LOW_SIGNAL_STRENGTH: int = 0x03
"""BLE RSSI below acceptable threshold."""
[docs] OVER_POWER_CONITION: int = 0x04
"""Sustained over-power condition on one or more ports."""