French is a cool idiom, you know.
Well, yep of course: no compilation problems.
Readin the send.py file, i wrote a little python send and receive script to check comm'..... ant it works fine:
Code: Select all
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import socket, re, sys
UDPSock = socket.socket(socket.AF_INET,socket.SOCK_DGRAM)
UDPSock.setsockopt(socket.SOL_SOCKET,socket.SO_BROADCAST,1)
UDPSock.setblocking(1)
UDPSock.settimeout(3)
UDPSock.bind( ('', 42314) )
ip="192.168.0.20"
p=30303
UDPSock.sendto("D", (ip,p))
(test, (ip, p)) = UDPSock.recvfrom(2048)
print "coucou"
print test
But i do not understand how listening on telldus events. For example, when i press a chacon switch, i can see telldus blinking. What happens ? I dont know and i do not understand how listening events. Is there a method to do that in documentation ?coucou
TellStickNet:ACCA540004A6:2K3KEXAU9V:X