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

MQTT not responding #7

Open
marcosacchetti opened this issue Mar 2, 2019 · 15 comments
Open

MQTT not responding #7

marcosacchetti opened this issue Mar 2, 2019 · 15 comments

Comments

@marcosacchetti
Copy link

marcosacchetti commented Mar 2, 2019

When I subscribe to debug channel the ESP send me, I suppose, the help message, but I don't receive anything on all status channels and when I send something to set values nothing happens. Even the service channel seems dead. I've tried with different brokers but nothing. Any idea?

@marcosacchetti marcosacchetti changed the title Not respondin Not responding MQTT Mar 2, 2019
@marcosacchetti marcosacchetti changed the title Not responding MQTT MQTT not responding Mar 2, 2019
@marcosacchetti
Copy link
Author

I solved.

@gamblor999
Copy link

how did you solve I have the same thing?

@Stephan296
Copy link

I have the same problem....

@marcosacchetti
Copy link
Author

I’ve tried different brokers and now it works.
I'm using this one: https://www.beebotte.com/

@Stephan296
Copy link

Thx @marcosacchetti . How did you set it up?

@Stephan296
Copy link

@marcosacchetti Do you know this error when compiling MHI-SPI2ESP:

`C:\Users\steph\Downloads\rjdekker-MHI2MQTT-v1.0.0-14-ge737f6e\rjdekker-MHI2MQTT-e737f6e\src\MHI-SPI2ESP\MHI-SPI2ESP.ino: In function 'void SPI_sync()':

C:\Users\steph\Downloads\rjdekker-MHI2MQTT-v1.0.0-14-ge737f6e\rjdekker-MHI2MQTT-e737f6e\src\MHI-SPI2ESP\MHI-SPI2ESP.ino:152:49: warning: invalid conversion from 'volatile void*' to 'void*' [-fpermissive]

memcpy(&tx_SPIframe[9], &frameVariant[0][0], 9); //Copy (part of) the next frame to the current frame for sending on the upcoming bitfield 18 clock cycle

                                             ^

In file included from C:\Users\steph\Downloads\arduino-1.8.7-windows\arduino-1.8.7\hardware\arduino\avr\cores\arduino/Arduino.h:25:0,

             from C:\Users\steph\AppData\Local\Temp\arduino_build_956662\sketch\MHI-SPI2ESP.ino.cpp:1:

c:\users\steph\downloads\arduino-1.8.7-windows\arduino-1.8.7\hardware\tools\avr\avr\include\string.h:191:14: note: initializing argument 1 of 'void* memcpy(void*, const void*, size_t)'

extern void *memcpy(void *, const void *, size_t);

          ^

C:\Users\steph\Downloads\rjdekker-MHI2MQTT-v1.0.0-14-ge737f6e\rjdekker-MHI2MQTT-e737f6e\src\MHI-SPI2ESP\MHI-SPI2ESP.ino: In function 'void loop()':

C:\Users\steph\Downloads\rjdekker-MHI2MQTT-v1.0.0-14-ge737f6e\rjdekker-MHI2MQTT-e737f6e\src\MHI-SPI2ESP\MHI-SPI2ESP.ino:275:67: warning: invalid conversion from 'volatile void*' to 'const void*' [-fpermissive]

                   memcpy(&toESP.currentMHI, &rx_SPIframe[3], 7);                                               //Copy bitfields 4-10 from the most recent MHI SPI frame to new array for sending to ESP

                                                               ^

In file included from C:\Users\steph\Downloads\arduino-1.8.7-windows\arduino-1.8.7\hardware\arduino\avr\cores\arduino/Arduino.h:25:0,

             from C:\Users\steph\AppData\Local\Temp\arduino_build_956662\sketch\MHI-SPI2ESP.ino.cpp:1:

c:\users\steph\downloads\arduino-1.8.7-windows\arduino-1.8.7\hardware\tools\avr\avr\include\string.h:191:14: note: initializing argument 2 of 'void* memcpy(void*, const void*, size_t)'

extern void *memcpy(void *, const void *, size_t);

          ^

C:\Users\steph\Downloads\rjdekker-MHI2MQTT-v1.0.0-14-ge737f6e\rjdekker-MHI2MQTT-e737f6e\src\MHI-SPI2ESP\MHI-SPI2ESP.ino:308:62: warning: invalid conversion from 'volatile void*' to 'const void*' [-fpermissive]

               memcpy(&rx_bitfield4_10, &rx_SPIframe[3], 7);                                                    //Get bitfields 4-10 from the last MHI SPI frame to use for the upcoming tx_SPIframe update

                                                          ^

In file included from C:\Users\steph\Downloads\arduino-1.8.7-windows\arduino-1.8.7\hardware\arduino\avr\cores\arduino/Arduino.h:25:0,

             from C:\Users\steph\AppData\Local\Temp\arduino_build_956662\sketch\MHI-SPI2ESP.ino.cpp:1:

c:\users\steph\downloads\arduino-1.8.7-windows\arduino-1.8.7\hardware\tools\avr\avr\include\string.h:191:14: note: initializing argument 2 of 'void* memcpy(void*, const void*, size_t)'

extern void *memcpy(void *, const void *, size_t);

          ^

C:\Users\steph\Downloads\rjdekker-MHI2MQTT-v1.0.0-14-ge737f6e\rjdekker-MHI2MQTT-e737f6e\src\MHI-SPI2ESP\MHI-SPI2ESP.ino:330:73: warning: invalid conversion from 'volatile void*' to 'void*' [-fpermissive]

           memcpy(&tx_SPIframe[9], &frameVariant[variantnumber][0], 9);                                         //Copy (part of) the next frame to the current frame for sending on the upcoming bitfield 18 clock cycle

                                                                     ^

In file included from C:\Users\steph\Downloads\arduino-1.8.7-windows\arduino-1.8.7\hardware\arduino\avr\cores\arduino/Arduino.h:25:0,

             from C:\Users\steph\AppData\Local\Temp\arduino_build_956662\sketch\MHI-SPI2ESP.ino.cpp:1:

c:\users\steph\downloads\arduino-1.8.7-windows\arduino-1.8.7\hardware\tools\avr\avr\include\string.h:191:14: note: initializing argument 1 of 'void* memcpy(void*, const void*, size_t)'

extern void *memcpy(void *, const void *, size_t);`

@marcosacchetti
Copy link
Author

my configuration:
char mqtt_server[25] = "mqtt.beebotte.com";
char mqtt_port[9] = "1883";
char mqtt_user[40] = "[YOUR_BEEBOTTE_SECRET_KEY]";
char mqtt_pass[20] = "";
char wifiTimeout[3] = "5"; //Timeout in minutes (max. 99) before WiFi configuration portal is turned off and the ESP tries to connect again to the previously configured AP (if any)
char Room[20] = "Roomname";
char Thing[20] = "Aircon";
char Setpoint[60] = "Setpoint";
char statusSetpoint[60] = "statusSetpoint";
char State[60] = "State";
char statusState[60] = "statusState";
char statusRoomtemp[60] = "statusRoomtemp";
char Vanes[60] = "Vanes";
char statusVanes[60] = "statusVanes";
char Fanspeed[60] = "Fanspeed";
char statusFanspeed[60] = "statusFanspeed";
char debug[60] = "debug"; //Send only
char service[60] = "service";

@marcosacchetti
Copy link
Author

I've never found that error compiling... I'm sorry, I can't help you.

@Stephan296
Copy link

I looks like there something wrong with the script. Also with beebotte i don't get any updates.... it looks like that the spi doesn't work right.

@marcosacchetti
Copy link
Author

But I remember that I had a problem with the last version of ArduinoJson library and I needed to do download an old one.

@Stephan296
Copy link

I know that problem, i have used a 5.1 version, can try to download another older one...

@marcosacchetti
Copy link
Author

sometimes it disconnects from the broker but I have a bad connection to the internet, so in my case, the cause could be this

@marcosacchetti
Copy link
Author

I'm trying to do the same with an esp32 without Arduino; if I will succeed, I will let you know.

@Stephan296
Copy link

that would be perfect!!

@Stephan296
Copy link

@marcosacchetti could you only compile the file for me please? To see where the problem is....

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