0

is it working?
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.

is it working?

by Rcayot on Sat Feb 06, 2021 1:44 pm

Hi, new to IO.

Having installed and got my IO account, I have tried running the 'tests' suite.

here is the result, with my-key and my-username entered as real values. It appears that some tests worked, and some did not, How do I determine if these were really successful? There appears to be no activity on my IO page, and the console only returned the following messages. I cannot even find the test that resulted in the error.

ADAFRUIT_IO_KEY=my-key ADAFRUIT_IO_USERNAME=my-username python -m unittest discover
........................s.....Connected to Adafruit IO!
Disconnected from Adafruit IO!
.**THIS CONNECTION IS INSECURE** SSL/TLS not supported for this platform
Connected to Adafruit IO!
.Connected to Adafruit IO!
.Connected to Adafruit IO!
.
----------------------------------------------------------------------
Ran 34 tests in 158.734s

OK (skipped=1)

Rcayot
 
Posts: 148
Joined: Sat Feb 08, 2020 6:48 pm

Re: is it working?

by brubell on Mon Feb 08, 2021 11:50 am

Hi, these are continuous integration tests meant for testing (on our end) if all the library functions work as intended. They are not meant for public use.

Examples within the examples/ folder are meant as usage examples, try this one:

https://github.com/adafruit/Adafruit_IO ... t_class.py

brubell
 
Posts: 1383
Joined: Fri Jul 17, 2015 10:33 pm

Re: is it working?

by Rcayot on Thu Feb 11, 2021 1:23 pm

thanks. Looks promising.

I have a program that works now using a 'basic' type sketch 'environmental_monitor.py'

I used the adafruit bme280 library and got my IO working.

I was thinking that MQTT was a bit more complicated, but I will check it out.

Rcayot
 
Posts: 148
Joined: Sat Feb 08, 2020 6:48 pm

Re: is it working?

by brubell on Fri Feb 12, 2021 10:51 am

Rcayot wrote:thanks. Looks promising.

I have a program that works now using a 'basic' type sketch 'environmental_monitor.py'

I used the adafruit bme280 library and got my IO working.

I was thinking that MQTT was a bit more complicated, but I will check it out.

You'll need to adapt the sketch you're using to one of the examples I've linked above, shouldn't be too difficult. Let me know if you have any questions or need assistance!

brubell
 
Posts: 1383
Joined: Fri Jul 17, 2015 10:33 pm

Please be positive and constructive with your questions and comments.