-
Notifications
You must be signed in to change notification settings - Fork 197
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problems running more than 1 instance of this code #51
Comments
Can you post the code, please to cross check. |
Answering my own question from a few months ago |
Thank U
…On Sun, Jul 8, 2018 at 8:23 AM Ynot1 ***@***.***> wrote:
Answering my own question from a few months ago
To run more than one instance of this code, at least the serial number in
switch.cpp needs to be unique, or Alexa loses touch with one of the devices
after a while.
I fiddled with the01-NLS line in the xml and made that unique as well. All
good now.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#51 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AX9rnGpEGrYvCpKFCksIz2C_nuNcFfCNks5uEXQdgaJpZM4UPI5w>
.
|
@Ynot1 can you upload the fixed code? |
I have hacked that code so much while customising it into a specific application that i hesitate to do that. I will upload the 3 changed lines as pseudo code in a day or to. |
I have made more discoveries with having multiple instances of this code running in a single network, there are several places in the code that values have to be unique in the same LAN. In the main sketch make this unique: local Port numbers in the command that defines each switch Alexa wont discover devices whereduplicate port numbers are used in switch.cpp make all these unique: sprintf_P(uuid, PSTR("38323636-4558-4dda-9188-cda0e6%02x%02x%02x"), // as released by kakopappa Although Alexa will initially discover the devices if these arent unique, she will only maintain control of the last device found. And, to save him the trouble of adding the comment himself, kakopappa would say "Use Sinric skill instead to solve all these issues" |
I was trying to run 2 instances of this code, on seperate esp-01's so I could test the garage door controller I was building for a friend, whilst keeping my own garage door control going.
The esp-01's were doing dhcp so had unique ip addrees's, I renamed the Alexa invocation words so they were unique , and set the web ports so there was no overlap on the two devices , but I still couldn't make Alexa happy with both of them at the same time.
Eventually had to switch one of them off to get it stable.
Anyone hazard a guess why?
The text was updated successfully, but these errors were encountered: