Overview Clamps Packages CM Dictionary Clamps Dictionary Fomus
Next: add-trigger-fn , Previous: add-sfz-preset , Up: A , Home: Overview

Clamps Dictionary

add-ssensor

Function

(add-ssensor id port &key mac)

Add a serial sensor with numeric id to port and register it. In receiver mode this is called automatically on MAC-announce or on the first data packet from an unregistered sensor. In direct mode call this manually after open-ssensor-port.

Returns id.

Arguments

id Integer in the range [1..127] denoting the numeric id of the sensor.
port Keyword or Symbol denoting the id of a registered port.
:mac Optional 6-element octet vector with the sensor's WiFi MAC address.

Example

(open-ssensor-port :sensor-1 "/dev/ttyACM0")
(add-ssensor 1 :sensor-1)

Author: Orm Finnendahl

Created: 2026-07-31 Fr 13:00

Validate