Write data to socket for EmonHub

This commit is contained in:
PCOG sites
2014-07-15 23:35:41 +02:00
parent 5dc8ffb24d
commit 619107a303
3 changed files with 23 additions and 2 deletions

View File

@@ -34,6 +34,7 @@ def read_from(source)
end
if __FILE__ == $0
# open serial port and read first bytes
source = open_device
buffer = []
buffer = read_from(source)