Hi Digi Team,
I have a problem with the socket of zigbee, I set the socket in this form because I saw this confiuration in others examples:
Zigbee_Socket = socket(socket.AF_ZIGBEE, socket.SOCK_DGRAM, socket.ZBS_PROT_TRANSPORT)
Zigbee_Socket.bind((“”, 0xE8, 0, 0))
Zigbee_Socket.setblocking(0)
Zigbee_Socket.listen(1)
but on the DigiPython ESP software application when I set the run the python file, this show me the following error:
Configuracion del sokect ZIGBEE
Traceback (most recent call last):
File “WEB/python/dpdsrv.py”, line 14, in ?
execfile(os.path.join(os.path.abspath(‘.’), ‘SensorWiFi.py’))
File “WEB/python/SensorWiFi.py”, line 197, in ?
main()
File “WEB/python/SensorWiFi.py”, line 41, in main
Zigbee_Socket = socket(socket.AF_ZIGBEE, socket.SOCK_DGRAM, socket.ZBS_PROT_TRANSPOR
T)
AttributeError: type object ‘_socketobject’ has no attribute ‘AF_ZIGBEE’
but I don’t understand because, I imported the zigbee library in the begin of the file.
Can you help me with this problem? :s
Thanks Team!