Skip to content

Commit

Permalink
Merge pull request #28 from CSU-ITC303-ITC309-2023-Team8/feature/mqtt…
Browse files Browse the repository at this point in the history
…_front_end_processors

MQTT Processors Fixes UAT Round 1
  • Loading branch information
Heroj04 authored Oct 8, 2023
2 parents a193610 + bff404a commit 8170b8b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion doc/mqtt_processor_plugins.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ The `on_message` function will be passed the following parameters.
| Parameter name | Type | Description |
|:---:|:---:|:---:|
| message | <kbd>string</kbd> | The MQTT message received as a string. |
| properties | <kbd>dictionary</kbd> | An dictionary containing the original pikamq callback parameters. `channel`, `method`, `properties`, `body` |
| properties | <kbd>dictionary</kbd> | A dictionary containing the following pikamq callback parameters. `channel`, `method`, `properties` |

### `on_message` return

Expand Down
2 changes: 1 addition & 1 deletion src/python/mqtt_processors/MQTTProcessors.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def on_message(channel, method, properties, body, plugin_name):
std_logger.info(f"{channel}")
std_logger.info(f"Message Received for {plugin_name}")
messages_received.inc()
processed_message = plugin_modules[plugin_name].on_message(body, { 'channel': channel, 'method': method, 'properties': properties, 'body': body })
processed_message = plugin_modules[plugin_name].on_message(body, { 'channel': channel, 'method': method, 'properties': properties })

# Publish Messages to Physical Timeseries
for message in processed_message['messages']:
Expand Down

0 comments on commit 8170b8b

Please sign in to comment.