AttributeError: module ‘tago’ has no attribute ‘Device’
Could you inform me which documentation did you follow?
I’m doing the first steps with a basic tutorial for sending temperature.
$ sudo pip3 install -U tago
MY_DEVICE_TOKEN = ‘add your device token here’
my_device = tago.Device(MY_DEVICE_TOKEN)
PIN_NUMBER = 18
MY_DEVICE_TOKEN = ‘### INSERT YOUR TOKEN HERE ###’ my_device = Tago(MY_DEVICE_TOKEN).device GPIO.setmode(GPIO.BOARD) GPIO.setup(PIN_NUMBER,GPIO.OUT,initial=0)
Logic_Port = data[‘value’] GPIO.output(PIN_NUMBER,Logic_Port) print(data[‘value’])
Thanks for answering me!
The documentation that you were following was overdated, I already informed our engineers to review the documentation.
I recommend following the Python documentation.
Python | Device | .insert
If you want to collect the data events from TagoIO, I must inform you that the best way to do it is by using MQTT.
Please, take a look at this documentation: