Skip to content

Commit

Permalink
Fixed test_read_sensor
Browse files Browse the repository at this point in the history
  • Loading branch information
Juliana Mashon authored and Juliana Mashon committed Aug 6, 2024
1 parent 48cc86b commit cf4fb50
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions broker_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def read_sensor(self, id):
peripheral_str = self.api.get_info('peripherals', id)
mode = peripheral_str['mode']

read_sensor_message = {
message = {
**RPC_REQUEST,
"body": [{
"kind": "read_pin",
Expand All @@ -80,9 +80,10 @@ def read_sensor(self, id):
}]
}

self.broker_connect.publish(message)
# Return sensor as json object: sensor[""]

def message(self, message, type=None, channel="ticker"):
def message(self, message, type="info", channel="ticker"):
message = {
"kind": "rpc_request",
"args": {
Expand Down

0 comments on commit cf4fb50

Please sign in to comment.