Black Lives Matter - Action and Equality.
0

AirLift FeatherWing ESP32 not working with 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.

AirLift FeatherWing ESP32 not working with Adafruit IO

by Systembolaget on Wed Apr 22, 2020 6:19 pm

Restart with Arduino re-install and more fresh parts (European vendor that had stock). The entire journey step-by-step:

1. I went to https://learn.adafruit.com/adafruit-air ... ng/arduino

I installed Adafruit’s version of WiFiNINA

I opened the ScanNetworks example and, for lack of the Feather M0 RFM69HCW defined in the code, replaced the #if #endif statement with

#define SPIWIFI SPI
#define SPIWIFI_SS 13
#define ESP32_RESETN 12
#define SPIWIFI_ACK 11
#define ESP32_GPIO0 -1

I disabled the RFM69HCW radio on internal pin #8 in setup() with digitalWrite(8, HIGH);

Result: the ScanNetworks example works


2. I opened the WiFiWebClient example and, for lack of the Feather M0 RFM69HCW defined in the code, replaced the #if #endif statement with

#define SPIWIFI SPI
#define SPIWIFI_SS 13
#define ESP32_RESETN 12
#define SPIWIFI_ACK 11
#define ESP32_GPIO0 -1

I entered my SSID and PASS in arduino_secrets.h

I disabled the RFM69HCW radio on internal pin #8 in setup() with digitalWrite(8, HIGH);

Result: the WiFiWebClient example works, likewise the JSONdemo and all other WiFiNINA examples

I conclude from 1. and 2. that the combination of Feather M0 RFM69HCW with AirLift FeatherWing ESP32 can establish proper Internet access


3. I went to https://learn.adafruit.com/adafruit-io-basics-airlift Arduino IO library section

I installed the latest versions of Adafruit IO, Adafruit MQTT, and ArduinoHttpClient as advised

I opened adafruitio_00_publish and entered my WiFi and Adafruit IO credentials in config.h

I uncommented #define USE_AIRLIFT as advised

I changed SPIWIFI_SS to 13, NINA_ACK to 11, NINA_RESETN to 12 as in the WiFi examples before, without changing the macro names of the pins as advised

I disabled the RFM69HCW radio on internal pin #8 in setup() with digitalWrite(8, HIGH);

I compiled and uploaded the code

I opened the serial monitor

Result:: always “Connecting to Adafruit IO………..” and after several minutes of dots I ended the procedure


4. I coded a publishing example using the marked as outdated (2015) MQTT tutorial https://learn.adafruit.com/adafruit-io/mqtt-api

Result: the three outputs published show up in Adafruit IO test feeds and a test dashboard


Now, what can be done so the AirLift FeatherWing can perform with the Adafruit IO library as advertised?

I purchased many Feathers and Feather wings for an educational project and need to get this working.

Thanks again in advance!

Systembolaget
 
Posts: 227
Joined: Wed Mar 08, 2017 1:01 pm

Re: AirLift FeatherWing ESP32 not working with Adafruit IO

by Systembolaget on Thu Apr 23, 2020 7:36 am

I went through the exact same procedure with an Adafruit Metro Mini instead of an Adafruit Feather M0 RFM69HCW, changing the pins accordingly. With the Metro Mini, no RFM69HCW radio module can interfere (although I had disabled it).

AirLift FeatherWing ESP32 firmware shown to be 1.2.2 as before

1. and 2. do work as before
3. does not work, with the exact same symptom as above
4. does work as before

I suspect that contrary to https://learn.adafruit.com/adafruit-io-basics-airlift the AirLift FeatherWing does not work with the Adafruit IO library.

Systembolaget
 
Posts: 227
Joined: Wed Mar 08, 2017 1:01 pm

Re: AirLift FeatherWing ESP32 not working with Adafruit IO

by Systembolaget on Wed Apr 29, 2020 4:14 pm

I have been spending much time for nearly a month now, with many brand new Adafruit parts, but received no constructive feedback regarding the above issue, despite detailed demonstrations as posted above.

I can still not use the Adafruit IO library and any of its examples with the AirLift FeatherWing ESP32, not when used with a Metro or Feather M0 product.

It would be great if someone can look into the matter, also for the benefit of others with the same problem.

Thanks!

Systembolaget
 
Posts: 227
Joined: Wed Mar 08, 2017 1:01 pm

Re: AirLift FeatherWing ESP32 not working with Adafruit IO

by brubell on Fri May 08, 2020 9:58 am

I'm taking a look at this today, getting the same issue as you with an AirLift Featherwing and M4 updated to the latest AIO_Arduino libraries.

Re: RFM9x + AirLiftWing, there has been a reported issue between these two boards on the forums, I'd suggest moving to the M0 (sans RFM9x module).

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

Re: AirLift FeatherWing ESP32 not working with Adafruit IO

by brubell on Fri May 08, 2020 11:25 am

I just pushed a patch for this issue: https://github.com/adafruit/Adafruit_IO ... o/pull/118

Please let me know if it works for your hardware configuration - thanks!

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

Re: AirLift FeatherWing ESP32 not working with Adafruit IO

by Systembolaget on Fri May 08, 2020 11:30 am

Thanks for confirming the issue I and other users face, wanting to airlift Metro, Metro Mini, Feather M0 and Feather M4, the latter you tested.

I need to use the Adafruit Feather M0 RFM69HCW, however, as it is the gateway device in the set-up recommended by Adafruit in February https://forums.adafruit.com/viewtopic.php?f=56&t=161822#p797435

The final set-up: Many Adafruit Feather M0 RFM69HCW with 20,000 mAh battery and an ADXL345 each, affixed to remote tree top branches > One Adafruit Feather M0 RFM69HCW as base station with 40,000 mAh battery > One attached Adafruit AirLift FeatherWing ESP32 > lab hut with WiFi router > ISP > Internet > Adafruit IO > ...

I have the Adafruit Feather M0 RFM69HCW and Adafruit AirLift FeatherWing ESP32 working via MQTT all the way to Adafruit IO and IFTTT, as shown here https://forums.adafruit.com/viewtopic.php?f=56&t=165023#p810552 so I can use that approach to continue using the many parts I already bought.

I "only" have to work out how to enable/disable the RFM69HCW and ESP in some kind of well timed loop, as both can't be used together.

Systembolaget
 
Posts: 227
Joined: Wed Mar 08, 2017 1:01 pm

Re: AirLift FeatherWing ESP32 not working with Adafruit IO

by Systembolaget on Fri May 08, 2020 11:35 am

While I was posting, I just saw your latest message, much appreciated! I will try that as soon as I can get to it. The Adafruit MQTT library works, so if Adafruit IO library works now/soon, too, the better.

I "only" have to work out how to enable/disable the RFM69HCW and ESP in some kind of well timed loop, as both can't be used together. It'll have to be some kind of ping-pong code on the gateway.

Systembolaget
 
Posts: 227
Joined: Wed Mar 08, 2017 1:01 pm

Please be positive and constructive with your questions and comments.