kakopappa / arduino-esp8266-alexa-wemo-switch

Amazon Alexa + WeMos switch made with Arduino D1 Mini
https://sinric.pro
MIT License
282 stars 252 forks source link

Pin help #28

Open civicbynature opened 6 years ago

civicbynature commented 6 years ago

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.

samazw commented 6 years ago

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 notifications@github.com<mailto:notifications@github.com>:

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.

MadMaxDallas commented 6 years ago

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