|
@@ -5,7 +5,7 @@ import config
|
5
|
5
|
import logging
|
6
|
6
|
import socket_protocol
|
7
|
7
|
|
8
|
|
-import envsens
|
|
8
|
+import rpi_envsens as envsens
|
9
|
9
|
|
10
|
10
|
logger = logging.getLogger('APP')
|
11
|
11
|
|
|
@@ -46,6 +46,7 @@ class my_client_protocol_tcp(my_base_protocol_tcp):
|
46
|
46
|
env_data = msg.get_data()
|
47
|
47
|
print("Temperature: %6.1f °C" % env_data[envsens.KEY_TEMPERATURE])
|
48
|
48
|
print("Humidity: %6.1f %%" % env_data[envsens.KEY_HUMIDITY])
|
|
49
|
+ print("Pressure: %6.1f mbar" % env_data[envsens.KEY_PRESSURE])
|
49
|
50
|
return self.STATUS_OKAY, None
|
50
|
51
|
else:
|
51
|
52
|
print('No environmental data received!')
|