MCPcopy Create free account
hub / github.com/antirez/freakwan / send_sample

Method send_sample

sensor.py:58–60  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

56 self.fw.power_off(self.config['period'])
57
58 def send_sample(self):
59 if self.config['type'] == 'DHT22':
60 self.send_sample_dht22()
61
62 # This gets a dictionary of sensor data types and readings, and creates
63 # the payload for the media message. The format used is just of one

Callers 1

exec_state_machineMethod · 0.95

Calls 1

send_sample_dht22Method · 0.95

Tested by

no test coverage detected