Adafruit Industries, Essential service and business: NYC – Executive Order 202.6 - Read more.
0

Metro Airlift wont work with adafruit IO: Digital out Exampl
Moderators: adafruit_support_bill, adafruit

Forum rules
If you're posting code, please make sure your code does not include your Adafruit IO Active Key or WiFi network credentials.
Please be positive and constructive with your questions and comments.

Metro Airlift wont work with adafruit IO: Digital out Exampl

by silver232 on Sun Mar 08, 2020 2:01 am

Hi,

I have success on connecting my Metro Airlift to the wifi using circuitpython tutorial and received signals on my feed, However when i tried the example on adafruit IO: digital out CicuitPython code it wont work and i dont get any response.

Any help will be appreciated

silver232
 
Posts: 6
Joined: Sat Jun 29, 2013 1:38 pm

Re: Metro Airlift wont work with adafruit IO: Digital out Ex

by adafruit_support_carter on Mon Mar 09, 2020 2:52 pm

Which specific example are you running?

Does the code run without any errors? If you are getting errors, please post full text of error message.

adafruit_support_carter
 
Posts: 14872
Joined: Tue Nov 29, 2016 2:45 pm

Re: Metro Airlift wont work with adafruit IO: Digital out Ex

by silver232 on Mon Mar 09, 2020 4:47 pm

I'm running the Adafriut IO Basics : Digital OUTPUT (Example #4 with Python Code).

Below is the error that I get in the MU editor:

Auto-reload is on. Simply save files over USB to run them or enter REPL to disable.

Press any key to enter the REPL. Use CTRL-D to reload.soft reboot

Auto-reload is on. Simply save files over USB to run them or enter REPL to disable.
code.py output:
Traceback (most recent call last):
File "code.py", line 17, in <module>
File "/lib/Adafruit_IO/__init__.py", line 21, in <module>
File "/lib/Adafruit_IO/client.py", line 23, in <module>
ImportError: no module named 'platform'[/color]

silver232
 
Posts: 6
Joined: Sat Jun 29, 2013 1:38 pm

Re: Metro Airlift wont work with adafruit IO: Digital out Ex

by adafruit_support_carter on Mon Mar 09, 2020 5:28 pm

For using Adafruit IO with the Airlift running CircuitPython, use the CircuitPython version of the library:
https://learn.adafruit.com/welcome-to-a ... dafruit-io
https://github.com/adafruit/Adafruit_Ci ... dafruitIO/

Here's the CircuitPython version of the Digital Out example:
https://github.com/adafruit/Adafruit_Ci ... tal_out.py

adafruit_support_carter
 
Posts: 14872
Joined: Tue Nov 29, 2016 2:45 pm

Re: Metro Airlift wont work with adafruit IO: Digital out Ex

by silver232 on Tue Mar 10, 2020 4:09 pm

Thank you very much for your help and support

silver232
 
Posts: 6
Joined: Sat Jun 29, 2013 1:38 pm

Please be positive and constructive with your questions and comments.