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

SinricPro not connected and i cant get the status or an error msg #154

Closed
gommez1991 opened this issue Mar 7, 2021 · 13 comments
Closed

Comments

@gommez1991
Copy link

i have follow all the steps of doc.
i try to run the relay example .
i use this tow lines to gate sinric status

SinricPro.onConnected([]() { Serial.printf("Connected to SinricPro\r\n"); });
SinricPro.onDisconnected([]() { Serial.printf("Disconnected from SinricPro\r\n"); });

but i dont any of the tow lines .

but my switch on sinric pro always offline

@kakopappa
Copy link
Contributor

kakopappa commented Mar 7, 2021

  1. Make sure you are connected to WiFi and does not have connectivity issues. Try connecting from a mobile hotspot and check whether it gets connected.
  2. Make sure device ids/ appkey secret are correct.
  3. Make sure your public ip is not in blocked list Blocked IPs non-sdk-issues#15

@gommez1991
Copy link
Author

i'm connected to WIFI and i try with mobile hotspot and with my home wifi
also my device id and appkey secret are correct
and my ip not in blocked list

@kakopappa
Copy link
Contributor

kakopappa commented Mar 7, 2021 via email

@sivar2311
Copy link
Collaborator

@gommez1991 please let me know

  • Which kind of ESP do you use (ESP8266 / ESP32)
  • ArduinoCore Version (form Boards Manager)
  • WebSockets Library Version (from Libraries Manager)
  • Serial DEBUG output

@gommez1991
Copy link
Author

hi i use ESP32
Arduino ide 1.8.13
WebSockets Lib : https://github.com/Links2004/arduinoWebSockets
Serial debug

15:15:30.628 -> [Wifi]: Connecting........connected!
15:15:32.807 -> [WiFi]: IP-Address is 192.168.1.100

@kakopappa
Copy link
Contributor

kakopappa commented Mar 7, 2021 via email

@sivar2311
Copy link
Collaborator

@Gomez What's the ArduinoCore version (not ArduinoIDE version)
Please check it in Board / BoardsManager

Which version do WebSockets Library do you have installed currently?
Check it under Tools / Manage Libraries

@gommez1991
Copy link
Author

@kakopappa
no i have the loop() function

void loop() {
  // handle SinricPro commands

  if (WiFi.status() != WL_CONNECTED)
  {
    digitalWrite(wifiLed, LOW);
  }
  else
  {
    digitalWrite(wifiLed, HIGH);
  }

  SinricPro.handle();
  
}

the wifi led is On

@sivar2311
Copy link
Collaborator

The issue is about something complete different!
I have a precise guess - but i need to know the versions i asked for.

@sivar2311
Copy link
Collaborator

In ArduinoIDE click on Tools / Board... / Boards Manager.
Search for "ESP32"
image
This will show you the ArduinoCore version

Then click on Tools / Manage Libraries
Choose "Installed" and search for WebSocktes:
image
This will show the WebSockets version

@gommez1991
Copy link
Author

@sivar2311 the web sockets version is 2.3.4
and esp32 1.0.5

@sivar2311
Copy link
Collaborator

Okay, that's the issue!
ESP32 ArduinoCore 1.0.5 changed a bit.
For this you need WebSockets in it's latest Version 2.3.5 (which is not available via Libraries Manager yet).
Uninstall WebSockets 2.3.4
Download latest version (2.3.5) from github page
Install Library from ZIP:
image

@gommez1991
Copy link
Author

Yess it work :) good job and thx for the support

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

No branches or pull requests

3 participants