Closed smartswitchsio closed 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.
You are switching the topics between AsyncWebSocket and AsyncWebServer
Question: Is your issue about SERVER or SOCKET ?
Please provide detailed information.
Kindly provide details to use with AsyncWebSocket
Kindly provide details to use with AsyncWebSocket
What details do you mean??
If you have an issue with WebSockets
Kindly find the link for my git repository https://github.com/smartswitchsio/testing
Problem
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.
please find the git repository link https://github.com/smartswitchsio/test1
If i removed the following librarys working fine #include
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.
I added with minimum only , this sketch is used to control three relays from web page
"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?
Code removed and created new repository, i have basic knowledge only.
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
!?
I gave you simplified sketch but we have more functions
Please answer all my questions
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
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.
How to use sinricpro with ESPAsyncWebServer without SDK library