PubInv / krake

A wireless alarm device which makes loud noises and flashes lights to alert a human
GNU Affero General Public License v3.0
0 stars 2 forks source link

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

Open ForrestErickson opened 3 weeks ago

ForrestErickson commented 3 weeks ago

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 commented 3 weeks ago

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 commented 3 weeks ago

File modified and committed.

$ git log commit a1c4f26851b5d444bd7688400f202ff46e4474c3 (HEAD -> main, origin/main, origin/HEAD, Krake_MQTT_GPAD_API_and_topics) Author: Forrest Erickson forresterickson@comcast.net Date: Fri Nov 1 06:51:02 2024 -0400

Update  Krake_MQTT.ino for on line message publish.

commit bd96204d6e817c992778e44e9315467edf2d6417 Author: Forrest Erickson forresterickson@comcast.net Date: Fri Nov 1 06:43:55 2024 -0400

Update  Krake_MQTT.ino for wink of builtin LED.

commit b7eae24d3b276dffb12015c31f39d334ea01acae Author: Forrest Erickson forresterickson@comcast.net Date: Fri Nov 1 06:39:28 2024 -0400

Update  Krake_MQTT.ino to proccess LED commands from PMD.

commit 89c7a0777332b2865509c1bba2ff67333983e061 Author: Forrest Erickson forresterickson@comcast.net Date: Fri Nov 1 06:13:03 2024 -0400

Update  Krake_MQTT.ino for topics like "KRAKE_20240421_USA4_ALM" .
ForrestErickson commented 3 weeks ago

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 commented 3 weeks ago

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 commented 3 weeks ago

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 commented 3 weeks ago

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