Espalexa icon indicating copy to clipboard operation
Espalexa copied to clipboard

PULSE BUTTON

Open MullerEsposito opened this issue 4 years ago • 1 comments

Hello, I'm trying create a pulse button on Alexa. I already got it for half. In my code it looks like this:

void pulsePortao(uint8_t brightness) { digitalWrite(PIN_PORTAO, HIGH); delay(1000); digitalWrite(PIN_PORTAO, LOW); }

It's working, but on the Alexa interface the button not return to state off. How can I do to control the state of device on interface of Alexa?

MullerEsposito avatar Nov 19 '20 17:11 MullerEsposito

I am not sure to fully understand your question. If it is related to the state of a device, I would use geState() rather than brightness. You can use setState() to change the state.

alka79 avatar Nov 24 '20 18:11 alka79