Closed LinkIT3 closed 2 years ago
Hi @LinkIT3!
Do you use a http connection (WiFiClient) or https connection (WiFiClientSecure) ?
I use an https connection with WiFiClientSecure
Then the reason is found:
The ESP can unfortunately only handle one SSL/TLS encrypted connection at a time. SinricPro uses a persistent connection (by default SSL/TLS is enabled).
One possibility is to insert the line #define SINRICPRO_NOSSL
before #include <SinricPro.h>
.
Then only a normal (not encrypted) connection is used.
May I ask the reason or the service you use?
I am using an ESP8266 to detect the temperature and humidity of a room and then send them to a database. Now I'm trying to get the measurements via google assistant.
Okay, so the device is not to be controlled at all. Then there is another solution (But this requires more programming effort):
Using #define SINRICPRO_NOSSL
works.
Now I have another question, If I ask the google assistant about the temperature, he replies by saying "The air conditioning is set to one degree and the temperature is x degrees"; Is there a way to make me tell only the temperature?
The device is registered as a temperature sensor.
Unfortunately, Google Home does not natively support a temperature sensor, only a thermostat. If you create a SinricPro temperature sensor, a thermostat will be created on Google Home.
Ok, thanks for your help.
I'm trying to use the library ESP8266HTTPClient.h to send information to a web page but SinricPro cannot connect to the server. When I remove the ESP8266HTTPClient.h library SinricPro works again.