0

Not Authorised to connect to IO
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Not Authorised to connect to IO

by Lesliev on Sun Oct 07, 2018 11:08 pm

Can anyone advise why I get a "Not Authorised to connect" message when connecting my Arduino Yun to IO when I have these two line in the code
humidity.publish(humidityValue);
temperature.publish(temperatureValue);
If I comment out either of these lines I can connect and send the appropriate data but when both lines are present I get the Not Authorised response.

I am assuming it is probably something else in my code that is causing the failure but am not sure where it is or where to look although I have read and re-read the code many times. If anyone can suggest a place to look and check that would be very much appreciated.

Lesliev
 
Posts: 8
Joined: Tue Jun 12, 2018 5:35 am

Re: Not Authorised to connect to IO

by AnchorageTechSolutions on Sun Mar 03, 2019 3:17 pm

Am using the Arduino Yun Rev 2 and the files/example/Adafruit IO Arduino/adafruitio_15_temp_humidity sketch but am currently unable to connect to the Adafruit IO API

The sketch includes a config.h file that includes the AdafruitIO_WiFi.h library

https://github.com/adafruit/Adafruit_IO_Arduino/blob/master/src/AdafruitIO_WiFi.h

A review of that library reveals that the following boards are supported/have wifi libraries
    AdafruitIO_MKR1000 AdafruitIO_WiFi

    AdafruitIO_WINC1500 AdafruitIO_WiFi
    AdafruitIO_ESP32 AdafruitIO_WiFi
    dafruitIO_ESP8266 AdafruitIO_WiFi
    AdafruitIO_WICED AdafruitIO_WiFi

Found the GitHub for the MKR1000 wifi library here
https://github.com/adafruit/Adafruit_IO_Arduino/blob/master/src/wifi/AdafruitIO_MKR1000.h

Perhaps the MKR1000 wifi library can be adapted to work for the Arduino Yun Rev 2 ...

AnchorageTechSolutions
 
Posts: 1
Joined: Sun Mar 03, 2019 3:00 pm

Please be positive and constructive with your questions and comments.