๐ŸŽ„โ›„โ„๏ธ๐ŸŽ It's beginning to look a lot like ADABOX-mas! The next ADABOX from Adafruit ships soon! Get yours now, or give as a gift! ๐ŸŽ„โ›„โ„๏ธ๐ŸŽ
0

Connect Thunkable to adafruit IO
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.

Connect Thunkable to adafruit IO

by princhak on Fri Oct 11, 2019 10:13 am

Hey folks

I've been trying to read feeds from adafruit on a thunkable app, using that tutorial about mit app inventor and the ESP, he uses a .html file called "webviewstring_mqtt_00" to run a few java scripts, probably for auth, but some of the old src address that he uses don't work anymore, so i've hosted those same scripts on links to access by app. The thing is, he reads the JS but still can't read feeds from IO. Reading at the adafruit's tutorials, i saw that some sort of V1 authentication is not working anymore, so im thinking that maybe the problem is the old connnection process:

var url = 'wss://io.adafruit.com:443/mqtt/',
username = '(username)',
aio_key = '(key)',
topic = username + '/feeds/'+ suffix;
(removed username and key)

My question is if this URL will still work, i need to update it with a new one or the problem is somewhere else?

Thanks in advance!

princhak
 
Posts: 2
Joined: Fri Oct 11, 2019 2:08 am

Re: Connect Thunkable to adafruit IO

by brubell on Mon Oct 14, 2019 10:35 am

The URL looks correct, although you want to connect using SSL (port 8883) if your client allows it.

The latest documentation for connecting to Adafruit IO MQTT api is at this link: https://io.adafruit.com/api/docs/mqtt.h ... on-details

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

Re: Connect Thunkable to adafruit IO

by princhak on Mon Oct 14, 2019 2:26 pm

Thanks a lot! Will work on the rest of the project :D

princhak
 
Posts: 2
Joined: Fri Oct 11, 2019 2:08 am

Please be positive and constructive with your questions and comments.