Haptics
Check device capability, set left and right strengths from 0 to 100, and clear them safely.
Current version · 1.0.0
Haptics
Set and clear
from qnbot_sdk.exo import ExoHaptics
if device.get_device_info().capabilities.haptics:
exo.start()
haptics = device.haptics()
haptics.set(ExoHaptics(left=60, right=40))
# ...
haptics.clear()left and right range from 0 to 100. Either side may be omitted, but set() requires at least one value. haptics.latest() returns the latest confirmed state.
The retained state becomes invalid when the device stops, disconnects, or closes and is not replayed after recovery. Call clear() before normal shutdown.