Write data to socket for EmonHub
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user