libs/nixio: convert data to string in writeall(), this is required for numeric and...
[project/luci.git] / libs / nixio / lua / nixio / util.lua
index ecefb4c..bce4ce2 100644 (file)
@@ -79,6 +79,7 @@ end
 meta.recvall = meta.readall
 
 function meta.writeall(self, data)
+       data = tostring(data)
        local sent, code, msg = self:write(data)
 
        if not sent then