Skip to content
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

Blocked IPs #15

Open
kakopappa opened this issue Feb 28, 2021 · 14 comments
Open

Blocked IPs #15

kakopappa opened this issue Feb 28, 2021 · 14 comments
Labels

Comments

@kakopappa
Copy link
Contributor

kakopappa commented Feb 28, 2021

Following Is are were blocked due to sending excessive traffic/ automation scripts / bots / too many reconnections. If you are on one of these IPs, contact us

87.20.141.176
151.63.198.226

@kakopappa kakopappa pinned this issue Feb 28, 2021
@stale stale bot added wontfix This will not be worked on and removed wontfix This will not be worked on labels Mar 29, 2021
@sinricpro sinricpro deleted a comment from stale bot Apr 3, 2021
@stale stale bot added the wontfix This will not be worked on label Apr 17, 2021
@sinricpro sinricpro deleted a comment from stale bot Apr 18, 2021
@stale stale bot removed the wontfix This will not be worked on label Apr 18, 2021
@stale stale bot added the wontfix This will not be worked on label May 8, 2021
@sivar2311 sivar2311 added pinned and removed wontfix This will not be worked on labels May 8, 2021
@sinricpro sinricpro deleted a comment from stale bot May 8, 2021
@felipeparente
Copy link

I think that my IP is blocked 201.20.78.24
😔

@kakopappa
Copy link
Contributor Author

@felipeparente why do you think so?

@felipeparente
Copy link

A few days ago, I was integrating a product of mine with SinricPro.
I had put a delay of 1s at the end of the loop, I noticed that it was connecting and disconnecting all the time, it took me a long time to realize that this was due to this delay.
After corrected, everything was OK, but in a few minutes, my program did not connect anymore, even today it does not connect anymore.

@kakopappa
Copy link
Contributor Author

@felipeparente checked the server and your IP is not banned. try connecting to server via mobile hotspot.

@sivar2311
Copy link
Contributor

A 1s delay in loop should not result in disconnects / reconnects.
The reason must be something else.
Mobile hotspot is a good point to clearify if there are some other wifi issues.

@felipeparente
Copy link

I just tested on the smartphone hotspot, it doesn't connect.
I used the Switch example, and everything was OK, but now it doesn't connect anymore.
DEBUG doesn't show much.

[SinricPro]: Device "61e03ae2d7ffa945f32059d3" does not exist. creating new device
[SinricPro:add()]: Adding device with id "61e03ae2d7ffa945f32059d3".

But the device mentioned is registered in my account.

@sivar2311
Copy link
Contributor

This debug message means that a device with this id is created inside the sdk on your esp. it does not check the existance in your account.

@sivar2311
Copy link
Contributor

can you share the rest of the log and post your sketch (without your credentials)?

@felipeparente
Copy link

It's my code to connect..

SinricProSwitch& mySwitch = SinricPro[sinricProSwitchId.c_str()];
mySwitch.onPowerState(onPowerState);    // set callback function to device

// setup SinricPro
SinricPro.onConnected([](){ 
  Serial.print(F(":) Connected to SinricPro\r\n"));
  sinricProConnected = true;
});
SinricPro.onDisconnected([](){ 
  Serial.print(F(":( Disconnected from SinricPro\r\n")); 
  sinricProConnected = false;
});
SinricPro.begin(sinricProAppKey.c_str(), sinricProAppSecret.c_str());

@sivar2311
Copy link
Contributor

please share the full sketch. there are some points unclear to me.

@felipeparente
Copy link

The connection part is just that.
The variables: sinricProSwitchId, sinricProAppKey and sinricProAppSecret come from the settings, saved in file.

I call setupSinricPro() method after checking if internet connected.

@sivar2311
Copy link
Contributor

Do you check the variable sinricProConnected somewhere?
You don't need this. You can use SinricPro.isConnected()
Anyway, for a detailed analyse, the full code would be helpful (to see where the error might happen).
If the switch example is working, something else must be wrong in your sketch.

@felipeparente
Copy link

I found the error.
I was only calling SinricPro.handle() if SinricPro was connected.

I fixed it and it worked.

@sivar2311
Copy link
Contributor

I'm glad you found the reason!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants