Adds new AttachRequest message for "attaching" a PWM pin and requesting a specific frequency/resolution (ESP32-Only)
Removes redundant handling code for tone/analogWrite to also check for an empty channel/pin and attach, AttachRequest is performed first by clicking the "Create New Component" button instead.
Adds AttachResponse message for handling a PWM Pin attachment, failure if ledc channels are all in-use or requested PWM/resolution is too high.
Renames all message within pwm.proto to request or response, matching work done elsewhere in the API.
these changes are breaking, however, we do not have pwm hooked up in broker or device yet.
Updates
pwm.proto
:AttachRequest
message for "attaching" a PWM pin and requesting a specific frequency/resolution (ESP32-Only)AttachRequest
is performed first by clicking the "Create New Component" button instead.AttachResponse
message for handling a PWM Pin attachment, failure if ledc channels are all in-use or requested PWM/resolution is too high.pwm.proto
to request or response, matching work done elsewhere in the API.these changes are breaking, however, we do not have pwm hooked up in broker or device yet.