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

Update Firmware "Krake_MQTT" for GPAD API and topics "_ALM" and "_ACK" #64

Open
ForrestErickson opened this issue Nov 1, 2024 · 6 comments
Assignees

Comments

@ForrestErickson
Copy link
Collaborator

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Modify the MQTT development , proof of concept, firmware for GPAD API and topics "_ALM" and "_ACK"

Describe the solution you'd like
A clear and concise description of what you want to happen.
Modify the firmware file at: https://github.com/PubInv/krake/blob/main/Firmware/Krake_MQTT/Krake_MQTT.ino

The Krake must subscribe to topic ending with "_ALM"
The Krake must publish to topic ending with "_ACK"
The Krake must some what react to messages of the form "anALPHANUM" where "a" is an "a", "n" is 0-5 inclusive and "ALPHANUM" is text up to TBD length.

Bump version.

cc: @RobertLRead

@ForrestErickson
Copy link
Collaborator Author

Note the sketchs Krake_MQTT and FT_PMD_MQTT stem from different example code and use different libraries
image

Not sure if this is an important difference but must be kept in mind if we have troubleshooting to do

@ForrestErickson
Copy link
Collaborator Author

File modified and committed.

$ git log
commit a1c4f26 (HEAD -> main, origin/main, origin/HEAD, Krake_MQTT_GPAD_API_and_topics)
Author: Forrest Erickson [email protected]
Date: Fri Nov 1 06:51:02 2024 -0400

Update  Krake_MQTT.ino for on line message publish.

commit bd96204
Author: Forrest Erickson [email protected]
Date: Fri Nov 1 06:43:55 2024 -0400

Update  Krake_MQTT.ino for wink of builtin LED.

commit b7eae24
Author: Forrest Erickson [email protected]
Date: Fri Nov 1 06:39:28 2024 -0400

Update  Krake_MQTT.ino to proccess LED commands from PMD.

commit 89c7a07
Author: Forrest Erickson [email protected]
Date: Fri Nov 1 06:13:03 2024 -0400

Update  Krake_MQTT.ino for topics like "KRAKE_20240421_USA4_ALM" .

@ForrestErickson
Copy link
Collaborator Author

I have also added a Processing based PMD which is sending messages that are like the GPAD API.
See: https://github.com/PubInv/krake/tree/main/PMD/PMD_Processing_MQTT

At compile time the device serial number must be set on line 12
image

CC: @RobertLRead

@ForrestErickson
Copy link
Collaborator Author

Nagham and Lee worked where Nagham updated a Homework2 assemblie LEB1 with the Krake_MQTT firmware and we have the device LEB1 on line both from PMD in USA and PMD in Lebanon.

image

@RobertLRead will need to load the Krake_MQTT firmware, Modified for his device serial number, into his Homework2 assembly.

@ForrestErickson
Copy link
Collaborator Author

Summary of 20241103 changes to Krake_MQTT.ino.

Update to version V0.0.2
Update serial splash for company name, MAC address, mDNS address and RSSI.
Move Serial Splash into a function

Report on boot

image

Note

That mDNS is not actually implemented.

CC: @RobertLRead

@ForrestErickson
Copy link
Collaborator Author

Screen shot showing some of the "diff" of recent commits.
image

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