arduino-esp8266-alexa-wemo-switch icon indicating copy to clipboard operation
arduino-esp8266-alexa-wemo-switch copied to clipboard

Pin help

Open civicbynature opened this issue 7 years ago • 2 comments

I must be missing something super simple.

                    Format: Alexa invocation name, local port no, on callback, off callback

on line " office = new Switch("office lights", 80, officeLightsOn, officeLightsOff);"

What pin is "80" ?

I can seem to figure out which pin is toggling high/low.

I have tried replacing "80" with "1", "D1" etc but can not seem to figure out how to set which pin this line in toggling.

its completely recognized by the network and alexa is saying it's turning it on and off but i can't figure out which pin is actually toggling.

Please and thank you for your great work here.

civicbynature avatar Jan 24 '18 19:01 civicbynature

Hi

80 is the port -> https://en.m.wikipedia.org/wiki/Port_(computer_networking)

All best...

Am 24.01.2018 um 20:33 schrieb Nathan Sobieck <[email protected]mailto:[email protected]>:

I must be missing something super simple.

                Format: Alexa invocation name, local port no, on callback, off callback

on line " office = new Switch("office lights", 80, officeLightsOn, officeLightsOff);"

What pin is "80" ?

I can seem to figure out which pin is toggling high/low.

I have tried replacing "80" with "1", "D1" etc but can not seem to figure out how to set which pin this line in toggling.

its completely recognized by the network and alexa is saying it's turning it on and off but i can't figure out which pin is actually toggling.

Please and thank you for your great work here.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/kakopappa/arduino-esp8266-alexa-wemo-switch/issues/28, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AKwM-wQ4UcIWEwyq4q6ZGpQQwdRMXcQuks5tN4VsgaJpZM4Rry-g.

samazw avatar Jan 24 '18 20:01 samazw

At top of the file is the definition. const int relayPin = 5; // D1 pin. More info: https://github.com/esp8266/Arduino/blob/master/variants/d1_mini/pins_arduino.h#L49-L61 Regards

MadMaxDallas avatar Apr 03 '18 19:04 MadMaxDallas