#whats your mqtt backend adafruit io In

1 messages ยท Page 1 of 1 (latest)

azure pagoda
#

It is adafruit.io. But I do not get a catchable exception

night badge
#

can you upload your code to here?

#

#welcome channel has some tips about how to paste it as formatted text

azure pagoda
#

1 sec

#

its about as basic as I can make it

#

can i see your implementation? even if I just try to catch it as an exception... it chokes quietly and dies

night badge
#

it is amongst some unrelated badge things. The bottom of the file is the loop and except blocks that handle the mqtt. Honestly most the code is ripped out of that 'non-blocking' example script that I linked before

azure pagoda
#

Thats what I am saying... I am using this code for a MarixPortalM4... and ripped all that out

night badge
#

(I mean my code is amongst unrelated badge things, sorry haven't looked at yours yet)

#

I've not used it on a matrix portal. One thing that has tripped me on with that device in the past on other projects is power. Make sure whatever is powering the matrix portal has enough amperage or it can lead to really weird results if the power dips when it tries to use the matrix.

azure pagoda
#

hmmmm.ok. I will take that in.

#

the code i sent you IS the reference implementation

#

and it still hangs in 60 seconds

night badge
#

I see. Yep that 60 hang is what I'm seeing on my end as well. I'm not entirely sure if that is a bug in the library or a limitation of MQTT with the ESP32SPI.

#

I was under the impression it could work without being fully blocking like that, but I don't know if I've ever done it on ESP32SPI before. Definitely on other ports I have.

azure pagoda
#

Last messages I get are: 4841.871: DEBUG - Loop timed out, message queue not empty after 10s
4846.873: DEBUG - waiting for messages for 0 seconds

#

Take a look at this please:

#

4820.059: DEBUG - Loop timed out, message queue not empty after 10s
4825.061: DEBUG - waiting for messages for 0 seconds
4825.063: DEBUG - KeepAlive period elapsed - requesting a PINGRESP from the server...
4825.063: DEBUG - Sending PINGREQ
4825.162: DEBUG - Got PINGRESP
4830.166: DEBUG - waiting for messages for 0 seconds
4841.867: DEBUG - Receiving PUBLISH
Topic: [USER]/groups/scroller
Msg: bytearray(b'{"feeds":{"instant":"\"Linger\" by The Cranberries at April 9, 2023 at 02:55PM"}}')

New message on topic [USER]/groups/scroller: {"feeds":{"instant":""Linger" by The Cranberries at April 9, 2023 at 02:55PM"}}
4841.871: DEBUG - Loop timed out, message queue not empty after 10s
4846.873: DEBUG - waiting for messages for 0 seconds

#

Sometimes I get those two messages and it is still listening... but sometime soon after I get them and it is NOT listening

#

๐Ÿ˜ฉ

azure pagoda
#

Question: Did you update the firmware on your ESP32SPI?

night badge