I try to read out a value from a http command with sent it over a port.
This script i use to sent the value over IP (this is working, tested by another server device).
it is sent it by to adres of my domoticz RPI with port 19928
Code: Select all
data = tostring(tarief_1)
sock = require('socket').udp()
sock:sendto(tarief_1, '192.168.11.231', 19928)
sock:close()
It looks very easy to make it, but i really don't know how.