kakopappa / sinric

Amazon Alexa Smart home skill / Google Home Action for ESP8266 / ESP32 / Arduino
https://sinric.com
285 stars 166 forks source link

sinric en esp wroom 32 #306

Open Eugeniobcn opened 5 years ago

Eugeniobcn commented 5 years ago

Como puedo hacer correr sinric en el esp wroom 32, he probado cientos de librerias modificado alguna, siempre consigo errores websocet, hay algo que funcione?

How can I run synric in the "esp wroom 32", I've tried hundreds of modified libraries, I always get websocet errors, is there anything that works?

saludos

thegoliathgeek commented 5 years ago

@Eugeniobcn what is the websocket error you are getting?

Eugeniobcn commented 5 years ago

programa_2:54: error: variable or field 'webSocketEvent' declared void

void webSocketEvent(WStype_t type, uint8_t * payload, size_t length) {

                 ^

programa_2:54: error: 'WStype_t' was not declared in this scope

programa_2:54: error: expected primary-expression before '*' token

void webSocketEvent(WStype_t type, uint8_t * payload, size_t length) {

                                        ^

programa_2:54: error: 'payload' was not declared in this scope

void webSocketEvent(WStype_t type, uint8_t * payload, size_t length) {

                                          ^

programa_2:54: error: expected primary-expression before 'length'

void webSocketEvent(WStype_t type, uint8_t * payload, size_t length) {

                                                          ^

programa_2:54: error: variable or field 'webSocketEvent' declared void

void webSocketEvent(WStype_t type, uint8_t * payload, size_t length) {

                 ^

programa_2:54: error: 'WStype_t' was not declared in this scope

programa_2:54: error: expected primary-expression before '*' token

void webSocketEvent(WStype_t type, uint8_t * payload, size_t length) {

                                        ^

programa_2:54: error: 'payload' was not declared in this scope

void webSocketEvent(WStype_t type, uint8_t * payload, size_t length) {

                                          ^

programa_2:54: error: expected primary-expression before 'length'

void webSocketEvent(WStype_t type, uint8_t * payload, size_t length) {

thegoliathgeek commented 5 years ago

Try downgrading your websocket library. Link

kakopappa commented 5 years ago

I think Arduino support for ESP32 is still lacking and buggy. Have you tried the esp-idf's websocket example?

https://github.com/espressif/esp-idf/blob/beaefd3359973dcf8bba4e1d4462aa7f5d67be6a/examples/protocols/websocket/main/websocket_example.c