Skip to content

Commit cf4fb50

Browse files
Juliana MashonJuliana Mashon
Juliana Mashon
authored and
Juliana Mashon
committed
Fixed test_read_sensor
1 parent 48cc86b commit cf4fb50

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

broker_functions.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def read_sensor(self, id):
6262
peripheral_str = self.api.get_info('peripherals', id)
6363
mode = peripheral_str['mode']
6464

65-
read_sensor_message = {
65+
message = {
6666
**RPC_REQUEST,
6767
"body": [{
6868
"kind": "read_pin",
@@ -80,9 +80,10 @@ def read_sensor(self, id):
8080
}]
8181
}
8282

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

85-
def message(self, message, type=None, channel="ticker"):
86+
def message(self, message, type="info", channel="ticker"):
8687
message = {
8788
"kind": "rpc_request",
8889
"args": {

0 commit comments

Comments
 (0)