Clamps Dictionary
ssensor-set-receiver-mac-wireless
Function
(ssensor-set-receiver-mac-wireless id mac-vector)
Set the receiver MAC address on sensor id via ESP-NOW. Sends the 6-byte MAC as two 4-byte parameter commands (param 0x10 = bytes 0-3, param 0x11 = bytes 4-5). The sensor acknowledges by sending a MAC announce via the old receiver, then reboots automatically. Retries up to 5 times if not acknowledged within 5 seconds. Returns a ref-cell – call (set-val stop-ref t) to abort retries.
Arguments
id |
Integer in the range [1..127] denoting the id of the sensor. |
mac-vector |
A 6-element (unsigned-byte 8) vector e.g. #(88 230 197 21 162 32). |