Skip to content

Firmware, GPAD_API, Frequent Client.connect(), Blocking Status LED, Rev 0.48 #421

@ForrestErickson

Description

@ForrestErickson

Describe the bug
A clear and concise description of what the bug is.
Short Summary of the expected behavior:
On MQTT loss of client expect smooth fast reconnect

Short Summary of the buggy behavior:
Long periods of time spent failed connection and trying to reconnect.

Image

I observed that the status LED is frequently blocked.

Once the client reconnects there is a burst of activity on the serial monitor.

Test with "i" command

I sent the I command through MQTT from the PMD_PROCESSING_MQTT sketch.
Once the Krake reconnected there were two bursts of I information in the PMD console.

I observed that on the Serial Monitor there were also two instances of "i" command reported.

public.cloud.shiftr.io lost MQTT at: 33574387
Attempting MQTT connection at: 33574387..... failed, rc=-4Attempting MQTT connection at: 33590669..... failed, rc=-4Attempting MQTT connection at: 33607260..... success669..... failed, rc=-4Attempting MQTT connection at: 33607260..... success at33617224
connected!
Topic arrived [F4650BBB3ED8_ALM] |i|
Received MQTT Msg.
Command: i
Firmware Version: 0.48
GPAD API Version: 0.1.0
System up time (mills): 33910965
Mute Status: NOT MUTED
Current alarm Level: 3
Current alarm message: a3
IP Address: (0,0,0,0)
currentlyMuted : 0
interpret Done
a3
dfPlayer.play
3
PlayNotBusyLevel
HIGH .next called! =================
Number:4 Play Finished!
Topic arrived [F4650BBB3ED8_ALM] |i|
Received MQTT Msg.
Command: i
Firmware Version: 0.48
GPAD API Version: 0.1.0
System up time (mills): 33927299
Mute Status: NOT MUTED
Current alarm Level: 3
Current alarm message: a3
IP Address: (0,0,0,0)
currentlyMuted : 0
interpret Done
a3
dfPlayer.play
3
PlayNotBusyLevel
HIGH .next called! =================
Number:4 Play Finished!
public.cloud.shiftr.io lost MQTT at: 33957296
Attempting MQTT connection at: 33957296..... success at33966961
connected!


To Reproduce
Steps to reproduce the behavior:
Desk top shot showing the VSCode, the PMD console and the PMD control window.

Image

Hardware description
Model: Krake
Serial Number: US0009
Other: GPAD_API set for broker "public.cloud.shiftr.io"

Test Equipment
PMD Sketch at:
https://github.com/PubInv/krake/tree/main/PMD/PMD_Processing_MQTT

Additional context
Add any other context about the problem here.

CC:
@TheBakedPotato

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions