sinricpro / esp8266-esp32-sdk

Library for https://sinric.pro - simple way to connect your device to Alexa, Google Home, SmartThings and cloud
https://sinric.pro
Other
231 stars 124 forks source link

Sinricpro with ESPAsyncWebServer without SDK library #176

Closed smartswitchsio closed 3 years ago

smartswitchsio commented 3 years ago

How to use sinricpro with ESPAsyncWebServer without SDK library

sivar2311 commented 3 years ago

To use SinricPro without this library, you would have to implement the whole protocol yourself, including the calculation of the digital signature.

See the sample messages for this.

sivar2311 commented 3 years ago

You are switching the topics between AsyncWebSocket and AsyncWebServer

Question: Is your issue about SERVER or SOCKET ?

Please provide detailed information.

smartswitchsio commented 3 years ago

Kindly provide details to use with AsyncWebSocket

sivar2311 commented 3 years ago

Kindly provide details to use with AsyncWebSocket

What details do you mean??

If you have an issue with WebSockets

  1. Share your code (create a git repository or use gist.github.com) so I will be able to reproduce the error you have
  2. Provide detailed informations (debug logs etc etc.)
smartswitchsio commented 3 years ago

Kindly find the link for my git repository https://github.com/smartswitchsio/testing

Problem

  1. Web page not loading if i use with Sinricpro, with out Sinricpro its working fine
sivar2311 commented 3 years ago

The code is much too large for an error analysis. Just from a source code I can't see the function the device should do.

Please provide me with a simple (as small as possible and easy to understand) example project to perform a bug analysis. Reduce your sketch to a minimum which shows the error and remove all other functions.

Then tell me what the function of the sketch should be and give me an instruction when / how the error happens and how I can trigger this.

smartswitchsio commented 3 years ago

please find the git repository link https://github.com/smartswitchsio/test1 If i removed the following librarys working fine #include and ESP8266mDNS.h Kindly check with this library and guide me how to use with this. Note : DNS lib currently not using

sivar2311 commented 3 years ago

Is the sketch from above the bare minimum to reproduce the problem? It still looks very complex and includes functions that do not help troubleshooting.

You still haven't told me what the sketch is about. I do not know the functionality!

I cannot check these libraries (because I am not the author of these libraries) nor can I tell you how to use them. Please contact the authors of the respective libraries for this.

smartswitchsio commented 3 years ago

I added with minimum only , this sketch is used to control three relays from web page

sivar2311 commented 3 years ago

"added with minimum" means you removed code and files, or did you create a new repository?

Question: Why do you use ICACHE_FLASH_ATTR so often?? Most of the functions doesn't look like ISR's to me... so why do you do this?

smartswitchsio commented 3 years ago

Code removed and created new repository, i have basic knowledge only.

sivar2311 commented 3 years ago

The code is way to much complex only for a simple web control of 3 relays. You should keep this simpler. ESPAsyncCould be used as webserver without any issues.

What does the AsyncWebSocket does? I can't see the function from the code.

And still the question about all those ICACHE_FLASH_ATTR !?

smartswitchsio commented 3 years ago

I gave you simplified sketch but we have more functions

sivar2311 commented 3 years ago

Please answer all my questions

smartswitchsio commented 3 years ago

hi bro, i want to control 3 relays from web page, sinricpro and traditional switch with store custom configuration in fs (Like ssid, password, mqtt server details and if have any ), that s all. this is the think i am trying to do

sivar2311 commented 3 years ago

Hi "Bro".

I think for this I have already given you a few days ago a detailed example!

If it's really just about a stupid web interface, why don't you take my suggestion? After all, I've already done all the work for you.

Why any other library doesn't work for you, I don't know. And I have neither the time nor the desire to analyze that. Ask the developer of the not working library, what the issue is.