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

Adds support for producer/consumer identified message in the CallbackEventHandler #743

Merged
merged 2 commits into from
Nov 12, 2023

Conversation

balazsracz
Copy link
Collaborator

When the user registers this callback, we proxy the producer and consumer identified messages to it. This is useful for a node that needs to discover remote state and sends out identify producer / consumer queries for doing so.

…EventHandler.

When the user registers this callback, we proxy the producer and consumer identified
messages to it. This is useful for a node that needs to discover remote state and sends
out identify producer / consumer queries for doing so.
@balazsracz balazsracz requested a review from bakerstu October 1, 2023 18:49
* master:
  Fix test makefiles and test target (#736)
  Moves the bootloader hook so that the hook implementation gets a chance to look at incoming frames.
  Fixes missing includes.
  Fixes missing symbol error.
  Adds stm32f072 HAL drivers to bare.armv6m compilation target.
  Update HASSERT and DIE to use ets_printf() on ESP32 (#744)
  Adds a useful command to generate release notes.
  Fix MultiConfiguredPC.hxx compilation with C++20 (#737)
  Esp32 TWAI updates based on comments (#720)
  Fork spiffs/stm32f7/Stm32SPIFFS.cxx to st/Stm32Flash.hxx step 4
  Fork spiffs/stm32f7/Stm32SPIFFS.cxx to st/Stm32Flash.hxx step 2
  Fork spiffs/stm32f7/Stm32SPIFFS.cxx to st/Stm32Flash.hxx
  Fix compile error in railcom board definitions.
  Stm32 pwm f7xx update (#735)
  Add L4xx HAL include for Stm32PWM (#734)
  Fix missing ifdef for reboot because macos build is broken.
/// message arrives.
///
/// @param mti MTI_PRODUCER_IDENTIFIED_UNKNOWN or
/// MTI_CONSUMER_IDENTIFIED_UNKNOWN. The state bits can be read from
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we not pass in the correct MTI based on pre-decoding the state of the report?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we don't want to. This way you can test for producer / consumer with a single ==. Otherwise the test is much more complicated.

@balazsracz balazsracz merged commit 7dd3c46 into master Nov 12, 2023
8 checks passed
balazsracz added a commit that referenced this pull request Nov 12, 2023
* master:
  Unaligned read/write support in TivaEEPROM storage (#741)
  Adds support for producer/consumer identified message in the CallbackEventHandler. (#743)
  Improve error handling in BroadcastTimeDefs::string_to_date() (#745)
  Fix test makefiles and test target (#736)
  Moves the bootloader hook so that the hook implementation gets a chance to look at incoming frames.
  Fixes missing includes.
  Fixes missing symbol error.
  Adds stm32f072 HAL drivers to bare.armv6m compilation target.
  Update HASSERT and DIE to use ets_printf() on ESP32 (#744)
  Adds a useful command to generate release notes.
balazsracz added a commit that referenced this pull request Dec 23, 2023
…t-hub-router

* 'master' of github.com:bakerstu/openmrn: (152 commits)
  Switches over make tests at toplevel to use the tests target instead of the cov target.
  Ensures that openmrn and application directory builds can run in parallel. (#754)
  Ensures that 'make clean' empties lib directory of symlinks. (#753)
  Add an input/output GPIO type. This helps support bit banged I2C. (#752)
  Adds TinyUsb based CDC virtual Com port driver with an STM32 port. (#748)
  Limit the amount of input we read into memory in arduino sketches. (#746)
  Updates to send_datagram cmdline utility (#740)
  Adds lflash command to the bracz-railcom board support makefile.
  Do not crash on an incoming message with 0 alias. (#751)
  Add common app test coverage rules. (#750)
  Fix symlinking of library files to the lib directory. (#747)
  Refactors the SPIFFS flash driver for the F7 into a generic stm32 flash driver. (#742)
  Unaligned read/write support in TivaEEPROM storage (#741)
  Adds support for producer/consumer identified message in the CallbackEventHandler. (#743)
  Improve error handling in BroadcastTimeDefs::string_to_date() (#745)
  Fix test makefiles and test target (#736)
  Moves the bootloader hook so that the hook implementation gets a chance to look at incoming frames.
  Fixes missing includes.
  Fixes missing symbol error.
  Adds stm32f072 HAL drivers to bare.armv6m compilation target.
  ...
@balazsracz balazsracz deleted the bracz-callback-event-identified branch August 20, 2024 16:27
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

Successfully merging this pull request may close these issues.

2 participants